:root {
  --bg0: #0e0816;
  --bg1: #241848;
  --panel: rgba(22, 14, 40, 0.9);
  --stroke: #7a52c8;
  --text: #efe8ff;
  --muted: #a898c4;
  --accent: #b86bff;
  --accent2: #6a3dff;
  --field: rgba(10, 6, 20, 0.7);
  --ok: #6dff9a;
  --warn: #ffcc3e;
  --err: #ff4d6a;
  --radius: 12px;
  --font: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --topbar-h: 61px;
  --wrap-pad-y: 20px;
  --sheet-pad: 18px;
  --pin-stick: calc(var(--topbar-h) + var(--wrap-pad-y) + var(--sheet-pad));
  --scroll-track: color-mix(in srgb, var(--bg0) 72%, #000);
  --scroll-thumb: color-mix(in srgb, var(--accent) 38%, var(--panel));
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid var(--scroll-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 55%, var(--panel));
}

html.booting body {
  opacity: 0;
}

html:not(.booting) body {
  opacity: 1;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at 90% 80%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 45%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
}

a {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: var(--field);
  border-radius: 8px;
  padding: 8px 12px;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

button.primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #000), color-mix(in srgb, var(--accent2) 45%, #000));
  border-color: transparent;
  color: #fff;
}

button.danger {
  border-color: var(--err);
  color: var(--err);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  height: 20px;
}

.brand-lockup:hover {
  border-color: transparent;
  color: inherit;
}

.brand-dots {
  height: 18px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
  transform: translateY(-3px);
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  --stamp-glow: 12px;
  --stamp-glow-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.header-brand:hover {
  border-color: transparent;
  color: inherit;
}

.header-brand::selection,
.header-brand *::selection,
.currency-coin::selection,
.currency-coin *::selection,
.denny-coin::selection,
.denny-coin *::selection,
.brand-lockup::selection,
.brand-lockup *::selection {
  background: transparent;
}

.stamp-hover {
  display: block;
  transition: transform 0.18s ease, filter 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 var(--stamp-glow) color-mix(in srgb, var(--stamp-glow-color) 85%, transparent))
    drop-shadow(0 0 calc(var(--stamp-glow) * 1.7) color-mix(in srgb, var(--stamp-glow-color) 45%, transparent));
}

.header-brand:hover .stamp-hover {
  transform: scale(1.12);
}

.brand-mark.stamp {
  height: 78px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.92;
  transform: rotate(var(--stamp-rot, -14deg));
  transform-origin: center;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.topbar h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

.btn-short {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.status.is-saving {
  color: var(--warn);
}

.status.is-ok {
  color: var(--ok);
}

.status.is-err {
  color: var(--err);
}

.wrap {
  --wrap-pad-y: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--wrap-pad-y) 16px 48px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-av {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg0);
  overflow: hidden;
  flex-shrink: 0;
}

.card-av img {
  position: absolute;
  max-width: none;
  object-fit: unset;
  opacity: 0;
  pointer-events: none;
}

.card-av img.is-ready {
  opacity: 1;
}

.card h2 {
  margin: 0;
  font-size: 16px;
}

.card .meta {
  color: var(--muted);
  font-size: 12px;
}

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

.sheet-page {
  max-width: 920px;
}

.sheet-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abil-rail {
  min-width: 0;
  background: color-mix(in srgb, var(--field) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--stroke) 75%, transparent);
  border-radius: 14px;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.abil-rail::-webkit-scrollbar {
  width: 7px;
}

.abil-rail::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bg0) 80%, #000);
  border-radius: 999px;
}

.abil-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 42%, #1a1028);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--bg0) 80%, #000);
}

.abil-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

.abil-rail-head h3 {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pin-abil {
  padding: 5px 8px;
  font-size: 11px;
}

.pb-box {
  margin-bottom: 12px;
}

.pb-box input {
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

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

.abil-card {
  min-width: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 88%, #000);
  border: 1px solid color-mix(in srgb, var(--stroke) 80%, transparent);
  border-radius: 12px;
  padding: 10px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 10%, transparent);
}

.abil-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 45%, transparent);
}

.abil-card-top .name {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.abil-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.abil-score-wrap {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: stretch;
  width: 62px;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--field);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.abil-score-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.abil-step {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-width: 0;
}

.abil-step:first-child {
  border-right: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
}

.abil-step:last-child {
  border-left: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
}

.abil-step:hover {
  background: color-mix(in srgb, var(--accent) 38%, #000);
  color: #fff;
  border-color: transparent;
}

.abil-card-top .abil-score {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  text-align-last: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  overflow: hidden;
  outline: none;
  color-scheme: dark;
}

.abil-card-top .abil-score:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

.abil-card-top .abil-score::-webkit-outer-spin-button,
.abil-card-top .abil-score::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  display: none;
  width: 0;
  height: 0;
}

.abil-card-top .abil-score::selection {
  background: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--text);
}

.abil-card-top .mod {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--stroke));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--field));
  font-variant-numeric: tabular-nums;
}

.skill-line {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 5px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.skill-line.is-save {
  background: color-mix(in srgb, var(--accent) 12%, var(--field));
  border: 1px solid color-mix(in srgb, var(--stroke) 65%, transparent);
  padding: 7px 8px;
}

.abil-skills {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--stroke) 50%, transparent);
}

.abil-skills-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 6px 6px;
}

.skill-line input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}

.round-box {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 80%, #fff);
  background: var(--field);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent);
}

.skill-line:has(input:checked) .round-box {
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, #fff 55%, var(--accent)), var(--accent) 42%, var(--accent2));
  border-color: color-mix(in srgb, var(--accent) 80%, #fff);
}

.skill-name {
  min-width: 0;
  line-height: 1.25;
}

.skill-val {
  min-width: 2.6em;
  padding: 2px 7px;
  border-radius: 7px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--stroke) 55%, transparent);
}

@media (min-width: 721px) {
  body:not(.is-abil-pinned) .abil-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  body.is-abil-pinned .wrap,
  body.is-abil-pinned .sheet-page {
    max-width: 1240px;
  }

  body.is-press-pinned:not(.is-abil-pinned) .wrap,
  body.is-press-pinned:not(.is-abil-pinned) .sheet-page {
    max-width: 1180px;
  }

  body.is-abil-pinned.is-press-pinned .wrap,
  body.is-abil-pinned.is-press-pinned .sheet-page {
    max-width: 1540px;
  }

  body.is-abil-pinned .sheet-layout {
    display: grid;
    grid-template-columns: minmax(290px, 330px) minmax(0, 1fr);
    grid-template-areas:
      "rail header"
      "rail main";
    align-items: start;
    gap: 18px;
  }

  body.is-press-pinned:not(.is-abil-pinned) .sheet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 248px);
    grid-template-areas:
      "header press"
      "rail press"
      "main press";
    align-items: start;
    gap: 18px;
  }

  body.is-abil-pinned.is-press-pinned .sheet-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(210px, 248px);
    grid-template-areas:
      "rail header press"
      "rail main press";
  }

  body.is-abil-pinned .sheet-header,
  body.is-press-pinned .sheet-header {
    grid-area: header;
    margin-bottom: 0;
  }

  body.is-abil-pinned .abil-rail {
    grid-area: rail;
    position: sticky;
    top: var(--pin-stick);
    max-height: calc(100dvh - var(--pin-stick) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.is-press-pinned:not(.is-abil-pinned) .abil-rail {
    grid-area: rail;
  }

  body.is-abil-pinned .sheet-main,
  body.is-press-pinned .sheet-main {
    grid-area: main;
    min-width: 0;
  }

  body.is-abil-pinned .abil-col {
    grid-template-columns: 1fr;
  }

  body.is-press-pinned .press-rail {
    grid-area: press;
    position: sticky;
    top: var(--pin-stick);
    max-height: calc(100dvh - var(--pin-stick) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.sheet {
  --sheet-pad: 18px;
  --pin-stick: calc(var(--topbar-h) + var(--wrap-pad-y) + var(--sheet-pad));
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: var(--sheet-pad);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sheet-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}

.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.avatar-circle {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  background: var(--bg0);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.avatar-circle img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: unset;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  opacity: 0;
}

.avatar-circle img.is-ready {
  opacity: 1;
}

.avatar-actions {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: flex;
  gap: 4px;
}

.avatar-actions button {
  padding: 4px 8px;
  font-size: 11px;
}

.identity {
  display: grid;
  gap: 8px;
}

.identity .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.lbl {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field,
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 10px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  color-scheme: dark;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent;
}

.num-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--field);
  overflow: hidden;
}

.num-step:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.num-step input,
.num-step input[type="number"] {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.num-step input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.num-step-btn {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  min-width: 0;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.num-step-btn:first-child {
  border-right: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
}

.num-step-btn:last-child {
  border-left: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
}

.num-step-btn:hover {
  background: color-mix(in srgb, var(--accent) 38%, #000);
  color: #fff;
  border-color: transparent;
}

.field:focus,
input:focus,
textarea:focus,
select:focus,
.fmt-editor:focus,
.z-select-btn:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.z-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.z-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  appearance: none;
}

.z-select-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  flex-shrink: 0;
}

.z-select.is-open .z-select-btn {
  border-color: var(--accent);
}

.z-select-menu {
  box-sizing: border-box;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

.z-select-opt {
  display: block;
  width: 100%;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
}

.z-select-opt:hover,
.z-select-opt.is-on {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text);
  border-color: transparent;
}

.path-head .z-select {
  width: 118px;
  flex: none;
}

.fmt-box {
  display: grid;
  gap: 6px;
}

.fmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fmt-btn {
  min-width: 28px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.fmt-btn[data-fmt="normal"] {
  min-width: auto;
  font-weight: 600;
}

.fmt-editor {
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--field);
  line-height: 1.45;
  outline: none;
  overflow: auto;
}

.fmt-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.fmt-editor h1,
.skill-preview h1 {
  font-size: 1.28em;
  margin: 0.35em 0;
}

.fmt-editor h2,
.skill-preview h2 {
  font-size: 1.14em;
  margin: 0.3em 0;
}

.fmt-editor h3,
.skill-preview h3 {
  font-size: 1.05em;
  margin: 0.25em 0;
}

.fmt-editor blockquote,
.skill-preview blockquote {
  margin: 0.4em 0;
  padding: 0.15em 0.8em;
  border-left: 3px solid var(--accent);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.fmt-editor pre,
.skill-preview pre {
  margin: 0.4em 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, #000);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.fmt-editor code,
.skill-preview code,
.path-preview code {
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, #000);
  font-size: 12px;
}

.fmt-editor pre code {
  padding: 0;
  background: none;
}

.fmt-editor ul,
.fmt-editor ol,
.skill-preview ul,
.skill-preview ol {
  margin: 0.3em 0;
  padding-left: 1.35em;
}

.fmt-editor a {
  color: var(--accent);
}

.section {
  margin-top: 16px;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.subh {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.currency-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.currency-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.currency-coin,
.denny-coin {
  position: relative;
  background: transparent;
  border: none;
  padding: 4px;
  perspective: 220px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.currency-coin:hover,
.denny-coin:hover {
  border-color: transparent;
  color: inherit;
}

.currency-flip,
.denny-flip {
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.18, 0.8, 0.2, 1);
}

.currency-coin img,
.denny-coin img {
  display: block;
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.currency-coin.is-hop .currency-flip,
.denny-coin.is-hop .denny-flip,
.denny-coin.is-hop .currency-flip {
  animation: denny-hop 0.7s ease;
}

.currency-coin.is-spark::after,
.denny-coin.is-spark::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 10px 3px rgba(255, 255, 255, 0.92),
    0 0 22px 8px rgba(210, 225, 245, 0.7),
    0 0 36px 12px rgba(170, 190, 220, 0.35);
  animation: denny-spark 0.5s ease forwards;
}

.gearlings-coin.is-spark::after {
  inset: -12px;
  box-shadow:
    0 0 8px 2px rgba(255, 230, 140, 0.95),
    0 0 20px 7px rgba(255, 170, 40, 0.7),
    0 0 34px 12px rgba(255, 110, 20, 0.4);
  animation: gearlings-spark 0.55s ease forwards;
}

@keyframes denny-hop {
  0% {
    translate: 0 0;
  }
  32% {
    translate: 0 -12px;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes denny-spark {
  0% {
    opacity: 1;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes gearlings-spark {
  0% {
    opacity: 1;
    transform: scale(0.5) rotate(0deg);
  }
  40% {
    opacity: 0.95;
    transform: scale(1.05) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(40deg);
  }
}

.abil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .abil-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.abil {
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.abil .name {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abil input {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: none;
  background: transparent;
  padding: 4px;
}

.abil .mod {
  font-size: 14px;
  color: var(--accent2);
  font-weight: 600;
}

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

.stats-row.vitals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-row.vitals .stat-box.pressure {
  display: none;
}

.stats-row.vitals .stat-box.speed {
  min-width: 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}

.stat-box input[type="text"] {
  min-width: 0;
}

.stat-box .lbl {
  display: block;
  margin-bottom: 6px;
}

.gear-total {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.hp-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-pair .num-step {
  flex: 1;
}

.hp-pair input {
  flex: 1;
}

.press-rail {
  display: none;
  min-width: 0;
  background: color-mix(in srgb, var(--field) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--stroke) 75%, transparent);
  border-radius: 14px;
  padding: 12px;
}

body.has-ether:not(.is-press-pinned) .stat-box.pressure {
  display: flex;
}

body.has-ether.is-press-pinned .press-rail {
  display: block;
}

body:not(.has-ether) .stat-box.pressure,
body:not(.has-ether) .press-rail,
body.is-press-pinned .stat-box.pressure {
  display: none;
}

.press-rail-hint {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.press-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.press-stat-head .lbl {
  margin-bottom: 0;
}

.press-stat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.press-reset {
  padding: 5px 8px;
  font-size: 11px;
}

.press-rail .press-reset {
  width: 100%;
  margin-top: 10px;
}

.skill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-card {
  border: 1px solid color-mix(in srgb, var(--stroke) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, #000);
  overflow: hidden;
}

.skill-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 6px;
}

.skill-toggle {
  flex: 0 0 28px;
}

.skill-head-main {
  flex: 1 1 160px;
  min-width: 0;
}

.skill-uses {
  flex: 0 1 auto;
}

.skill-head > [data-rm] {
  flex: 0 0 auto;
}

.skill-toggle,
.path-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent);
}

.skill-card:not(.is-open) .skill-toggle,
.skill-path:not(.is-open) .path-toggle {
  transform: rotate(-90deg);
}

.skill-head-main {
  min-width: 0;
}

.skill-title {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-weight: 700;
}

.skill-title:hover {
  border-color: transparent;
  color: var(--accent);
}

.skill-name-in {
  font-weight: 700;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, var(--field));
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
}

.skill-badge.is-passive {
  background: color-mix(in srgb, var(--accent2) 22%, var(--field));
}

.skill-badge.is-active {
  background: color-mix(in srgb, var(--err) 22%, var(--field));
}

.skill-uses {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.skill-uses .num-step {
  width: 92px;
  flex: none;
}

.skill-uses-slash {
  color: var(--muted);
  font-weight: 700;
}

.skill-body {
  display: none;
  padding: 0 10px 12px;
  border-top: 1px solid color-mix(in srgb, var(--stroke) 45%, transparent);
}

.skill-card.is-open .skill-body,
.skill-path.is-open .path-body {
  display: block;
}

.skill-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.skill-hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
}

.skill-paths {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.skill-path {
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg0) 35%, transparent);
}

.path-head {
  display: grid;
  grid-template-columns: 28px 14px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 6px;
}

.path-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent);
}

.path-dot.is-red {
  background: #ff4d6a;
  box-shadow: 0 0 8px rgba(255, 77, 106, 0.55);
}

.path-dot.is-purple {
  background: #b86bff;
  box-shadow: 0 0 8px rgba(184, 107, 255, 0.55);
}

.path-dot.is-gold {
  background: #ffcc3e;
  box-shadow: 0 0 8px rgba(255, 204, 62, 0.5);
}

.path-body {
  display: none;
  padding: 0 10px 10px;
}

.path-color,
.skill-meta select,
.skill-meta input {
  font-size: 13px;
}

.btn-add-path {
  margin-top: 8px;
  font-size: 12px;
}

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

.list-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.4fr 0.8fr 1.2fr auto;
}

.list-row.skills {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.skill-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.skill-block textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
  overflow: hidden;
}

.notes-section h3 {
  margin-bottom: 8px;
}

.note-box {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--field);
  overflow: hidden;
}

.note-full {
  display: block;
  width: 100%;
  min-height: 160px;
  border: none;
  border-radius: 0;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
  background: transparent;
}

.list-row.gear {
  grid-template-columns: minmax(0, 1.4fr) 108px minmax(128px, 160px) auto auto;
  align-items: center;
}

.gear-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gear-item .num-step {
  height: 36px;
}

.weight-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.weight-cell .num-step {
  flex: 1;
  min-width: 0;
}

.gear-note-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}

.gear-note {
  display: none;
  width: 100%;
  min-height: 64px;
  resize: vertical;
}

.gear-item.is-open .gear-note {
  display: block;
}

.unit-kg {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
  user-select: none;
  pointer-events: none;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.check-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}

.ether-box {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 80%, #fff);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--field)), var(--field));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent2) 30%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 28%, transparent);
  position: relative;
}

.ether-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
}

.check-line input:checked + .ether-box {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent);
}

.check-line input:checked + .ether-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check-line input:focus-visible + .ether-box {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.sheet-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.footer-marks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer-word,
.footer-title {
  width: auto;
  mix-blend-mode: screen;
}

.footer-word,
.footer-title,
.sheet-footer img.hia-logo {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.footer-word {
  height: 18px;
}

.footer-title {
  height: 11px;
  max-width: 168px;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .topbar h1 {
    font-size: 12px;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar button {
    padding: 7px 9px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .btn-full {
    display: none;
  }

  .btn-short {
    display: inline;
  }

  .topbar-sheet {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .topbar-sheet h1 {
    flex: none;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .topbar-actions button {
    width: 100%;
  }

  .status {
    justify-self: end;
    font-size: 11px;
  }

  .wrap {
    --wrap-pad-y: 10px;
    padding: 10px 10px 28px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .sheet {
    --sheet-pad: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .sheet-header {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-right: 52px;
    position: relative;
    align-items: start;
  }

  .avatar-wrap {
    width: 76px;
    height: auto;
  }

  .avatar-circle {
    width: 76px;
    height: 76px;
  }

  .avatar-actions {
    position: static;
    margin-top: 6px;
    justify-content: center;
  }

  .avatar-actions button {
    width: 100%;
  }

  .identity .row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .header-brand {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    justify-content: center;
  }

  .brand-mark.stamp {
    height: 46px;
  }

  .header-brand:hover .stamp-hover {
    transform: none;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row.vitals {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hp press"
      "er ac"
      "jump init"
      "speed speed";
  }

  body:not(.has-ether) .stats-row.vitals {
    grid-template-areas:
      "hp er"
      "ac jump"
      "speed speed"
      "init init";
  }

  .stats-row.vitals .stat-box.hp { grid-area: hp; }
  .stats-row.vitals .stat-box.pressure { grid-area: press; }
  .stats-row.vitals .stat-box.er { grid-area: er; }
  .stats-row.vitals .stat-box.ac { grid-area: ac; }
  .stats-row.vitals .stat-box.speed { grid-area: speed; }
  .stats-row.vitals .stat-box.jump { grid-area: jump; }
  .stats-row.vitals .stat-box.init { grid-area: init; }

  .check-line {
    align-items: flex-start;
    font-size: 13px;
    margin-top: 10px;
  }

  .list-row {
    grid-template-columns: 1fr 1fr auto;
  }

  .list-row > :first-child {
    grid-column: 1 / -1;
  }

  .list-row.gear {
    grid-template-columns: minmax(0, 1fr) 84px minmax(108px, 128px) auto auto;
  }

  .list-row.gear > :first-child {
    grid-column: 1 / -1;
  }

  .sheet-footer {
    grid-template-columns: auto 1fr;
    gap: 8px;
    font-size: 10px;
  }

  .footer-marks {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .sheet-footer img.hia-logo {
    height: 44px;
  }

  .modal {
    padding: 16px;
    max-height: min(92dvh, 100%);
    overflow: auto;
  }

  .theme-grid-wrap {
    max-height: 42dvh;
    padding: 10px 8px 12px;
  }

  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .crop-stage {
    width: min(260px, calc(100vw - 72px));
    height: min(260px, calc(100vw - 72px));
  }

  input[type="text"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }

  .abil input,
  .abil-card-top .abil-score {
    font-size: 16px;
  }

  .sheet-header { order: 1; }
  .abil-rail { order: 2; }
  .sheet-main { order: 3; }
  .press-rail { order: 4; display: none !important; }

  .pin-abil,
  .js-pin-press {
    display: none;
  }

  body.has-ether .stat-box.pressure {
    display: flex !important;
  }

  body.is-abil-pinned .sheet-layout,
  body.is-press-pinned .sheet-layout,
  body.is-abil-pinned.is-press-pinned .sheet-layout {
    display: flex;
    flex-direction: column;
  }

  body.is-abil-pinned .sheet-header,
  body.is-abil-pinned .abil-rail,
  body.is-abil-pinned .sheet-main,
  body.is-press-pinned .sheet-header,
  body.is-press-pinned .abil-rail,
  body.is-press-pinned .sheet-main,
  body.is-press-pinned .press-rail {
    grid-area: auto;
  }

  body.is-abil-pinned .abil-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body:not(.is-abil-pinned) .abil-col,
  body.is-abil-pinned .abil-col {
    grid-template-columns: 1fr;
  }
}

.sheet-footer img.hia-logo {
  height: 64px;
  width: auto;
  opacity: 0.95;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px 22px 18px;
  overflow: visible;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.modal p {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.theme-grid-wrap {
  max-height: 360px;
  overflow: auto;
  padding: 16px 14px 18px;
  margin: 8px 0 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 4px;
  overflow: visible;
}

.theme-swatch {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  background: linear-gradient(135deg, var(--sw0), var(--sw1));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stroke) 40%, transparent);
}

.theme-swatch.is-active {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

.theme-swatch .tn {
  font-size: 12px;
  font-weight: 600;
}

.theme-swatch .tk {
  font-size: 10px;
  opacity: 0.75;
}

.crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 12px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: var(--bg0);
  cursor: grab;
  touch-action: none;
}

.crop-stage:active {
  cursor: grabbing;
}

.crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

.crop-stage img.is-ready {
  opacity: 1;
}

.crop-controls {
  display: grid;
  gap: 8px;
}

body.is-pdf-export,
body.is-pdf-export html {
  min-height: 0;
  height: auto;
  background: var(--panel);
}

body.is-pdf-export .sheet-page,
body.is-pdf-export.is-abil-pinned .sheet-page {
  max-width: 900px !important;
}

body.is-pdf-export .wrap {
  max-width: 900px;
  padding: 0;
}

body.is-pdf-export .sheet-layout,
body.is-pdf-export.is-abil-pinned .sheet-layout,
body.is-pdf-export.is-press-pinned .sheet-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

body.is-pdf-export .sheet-header,
body.is-pdf-export .abil-rail,
body.is-pdf-export .sheet-main,
body.is-pdf-export .press-rail,
body.is-pdf-export.is-abil-pinned .sheet-header,
body.is-pdf-export.is-abil-pinned .abil-rail,
body.is-pdf-export.is-abil-pinned .sheet-main,
body.is-pdf-export.is-press-pinned .press-rail {
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
  grid-area: auto !important;
}

body.is-pdf-export .press-rail {
  display: none !important;
}

body.is-pdf-export.has-ether .stat-box.pressure {
  display: flex !important;
}

body.is-pdf-export .abil-col,
body.is-pdf-export.is-abil-pinned .abil-col {
  grid-template-columns: 1fr 1fr !important;
}

body.is-pdf-export .fmt-toolbar,
body.is-pdf-export .z-select-menu,
body.is-pdf-export .z-select-btn::after {
  display: none !important;
}

body.is-pdf-export .fmt-editor {
  border: none;
  background: transparent;
  min-height: 0;
  padding: 0;
}

body.is-pdf-export .sheet {
  box-shadow: none;
  overflow: visible !important;
  padding: 12px;
}

body.is-pdf-export .sheet-footer {
  min-width: 0;
  overflow: visible;
}

body.is-pdf-export .sheet-footer > * {
  min-width: 0;
}

body.is-pdf-export .section {
  margin-top: 10px;
}

body.is-pdf-export .abil-card {
  padding: 8px;
}

body.is-pdf-export .abil-step,
body.is-pdf-export .num-step-btn,
body.is-pdf-export .skill-toggle,
body.is-pdf-export .path-toggle {
  display: none !important;
}

body.is-pdf-export .num-step {
  grid-template-columns: 1fr;
}

body.is-pdf-export .skill-card .skill-body,
body.is-pdf-export .skill-path .path-body,
body.is-pdf-export .gear-note {
  display: block !important;
}

body.is-pdf-export .abil-score-wrap {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 48px;
  height: 42px;
}

body.is-pdf-export .abil-score-frozen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding-right: 2px;
}

body.is-pdf-export .no-print,
body.is-pdf-export .modal-back {
  display: none !important;
}

body.is-pdf-export .brand-mark.stamp {
  transform: rotate(-14deg) !important;
}

body.is-pdf-export textarea {
  resize: none;
  overflow: hidden;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  .topbar,
  .toolbar-float,
  .avatar-actions,
  .no-print,
  .modal-back {
    display: none !important;
  }

  .header-brand {
    display: flex !important;
  }

  .sheet {
    box-shadow: none;
  }

  body.is-abil-pinned .sheet-layout {
    display: flex;
    flex-direction: column;
  }

  body.is-abil-pinned .abil-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
