/* Kalypse - account panel and login screens (Ink & Seal). Loaded after ink.css. */

/* ---------- panel header ---------- */
.pn-head {
  position: relative;
  z-index: 30;
  background: var(--brushline) left bottom / 100% 6px no-repeat;
}
.pn-head-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 84px;
  max-width: calc(1480px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.pn-label {
  padding-left: 1.25rem;
  border-left: 1.5px solid rgba(20,18,16,.35);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--wash-text);
  white-space: nowrap;
}
.pn-site { display: flex; gap: 1.6rem; margin-left: auto; }
.pn-site a {
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .4rem;
  background: linear-gradient(var(--cinnabar), var(--cinnabar)) left 100% / 0 1.5px no-repeat;
  transition: background-size .25s;
}
.pn-site a:hover, .pn-site a:focus-visible { background-size: 100% 1.5px; }
.pn-site--m { display: none; }
.pn-head .menu-btn { display: none; }

/* ---------- shell: nav | page | characters ---------- */
.pn-shell {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr) 19rem;
  gap: clamp(32px, 3.6vw, 64px);
  align-items: start;
  max-width: calc(1480px + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(36px, 4vw, 56px) var(--gutter) 96px;
}

/* ---------- side navigation ---------- */
.pn-nav { position: sticky; top: 24px; }
.pn-user {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .9rem;
  row-gap: .7rem;
  align-items: center;
  padding-bottom: 1.3rem;
  margin-bottom: .4rem;
  background: var(--brushline) left bottom / 100% 4px no-repeat;
}
.pn-user .seal { --s: 2.75rem; --r: -3deg; }
.pn-user .who { display: grid; line-height: 1.25; min-width: 0; }
.pn-user .who small { font-size: .9rem; color: var(--wash-text); }
.pn-user .who b { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.pn-user .kp-inline { grid-column: 1 / -1; }
.pn-logout {
  appearance: none;
  border: 0;
  background: none;
  padding: .2rem 0;
  font: 600 .95rem var(--serif);
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.pn-logout:hover { color: var(--cinnabar); }

.pn-grp { margin-top: 1.5rem; }
.pn-grp h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wash-text);
  margin-bottom: .35rem;
}
.pn-grp li a {
  position: relative;
  display: block;
  padding: .32rem 0 .32rem 1.15rem;
  font-size: 1.02rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink-soft);
}
.pn-grp li a:hover { color: var(--cinnabar); }
.pn-grp li.active a { color: var(--ink); font-weight: 700; }
.pn-grp li.active a::before {
  content: "";
  position: absolute;
  left: .1rem; top: .92em;
  width: .45rem; height: .45rem;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

/* the staff tools sit on an ink plate so nobody mistakes them for player pages */
.pn-grp--staff {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  color: #DED6C6;
}
.pn-grp--staff::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 30% 20%, #2a2521, var(--ink) 70%);
  filter: url(#rough);
}
.pn-grp--staff h2 { color: #CFC7B7; }
.pn-grp--staff li a { color: #D2C9B8; }
.pn-grp--staff li a:hover { color: #E9E2D4; text-decoration: underline; text-decoration-color: var(--cinnabar); text-underline-offset: .25em; }
.pn-grp--staff li.active a { color: #E9E2D4; }
.pn-grp--staff li.active a::before { background: #E9483A; }
.pn-grp--staff a:focus-visible { outline-color: #E0D9CA; }

/* ---------- page area ---------- */
.pn-main { position: relative; min-width: 0; }
.pn-glyph {
  position: absolute;
  z-index: 0;
  right: 0;
  top: -2rem;
  font-family: var(--brush);
  font-size: clamp(9rem, 14vw, 14rem);
  line-height: 1;
  color: var(--wash);
  opacity: .15;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.pn-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}
.pn-title .seal { margin-top: .2rem; }
.pn-title h1 {
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.12;
}

/* ---------- page body (markup comes from includes/kp/pages/*.php) ---------- */
.kp-body {
  position: relative;
  z-index: 1;
  margin-top: 2.25rem;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.pn--staff .kp-body { max-width: none; }
.kp-body > * + * { margin-top: 1.15rem; }
.kp-body p { color: var(--ink-soft); }
.kp-body b { color: var(--ink); }
.kp-body a:not(.button):not(.kp-card) { font-weight: 600; text-decoration-color: var(--cinnabar); text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.kp-body a:not(.button):not(.kp-card):hover { color: var(--cinnabar); }
.kp-body h3 { font-size: 1.55rem; font-weight: 700; margin-top: 2rem; }
.kp-body h3:first-child { margin-top: 0; }
.kp-body h4 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  background: var(--brushline) left top / 100% 5px no-repeat;
}
.kp-body h4:first-child { margin-top: 0; padding-top: 0; background: none; }
.kp-body hr {
  border: 0;
  height: 5px;
  margin-block: 2.2rem;
  background: var(--brushline) left center / 100% 5px no-repeat;
}
.kp-body code {
  font-family: var(--serif);
  font-weight: 700;
  padding: .1rem .4rem;
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1px rgba(20,18,16,.25);
}
.kp-note { font-size: .96rem; line-height: 1.6; color: var(--wash-text) !important; }
.kp-body .kp-note { margin-top: .9rem; }
.kp-empty { font-size: 1rem; color: var(--wash-text); }

/* lists */
.kp-list li, .kp-body ol li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
}
.kp-list li + li, .kp-body ol li + li { margin-top: .4rem; }
.kp-list li::before {
  content: "";
  position: absolute; left: .1rem; top: .68em;
  width: .42rem; height: .42rem; background: var(--cinnabar);
  transform: rotate(45deg);
}
.kp-body ol { counter-reset: kp; }
.kp-body ol li { counter-increment: kp; padding-left: 1.8rem; }
.kp-body ol li::before { content: counter(kp); position: absolute; left: 0; font-weight: 800; color: var(--cinnabar); }

/* ---------- messages ---------- */
.msg-ok, .msg-error, .login-ok, .login-err {
  position: relative;
  padding: .85rem 1.1rem .9rem 2.6rem;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}
.msg-ok::before, .msg-error::before, .login-ok::before, .login-err::before {
  content: "";
  position: absolute; left: 1.05rem; top: 1.3rem;
  width: .55rem; height: .55rem;
  transform: rotate(45deg);
}
.msg-error, .login-err {
  color: var(--blood);
  background: #E5D4C6;
  box-shadow: inset 3px 0 0 var(--cinnabar);
}
.msg-error::before, .login-err::before { background: var(--cinnabar); }
.msg-ok, .login-ok {
  color: var(--ink);
  background: var(--paper-hi);
  box-shadow: inset 3px 0 0 var(--ink), inset 0 0 0 1px rgba(20,18,16,.12);
}
.msg-ok::before, .login-ok::before { background: var(--ink); }
.kp-body > .msg-ok + .msg-ok, .kp-body > .msg-error + .msg-error { margin-top: .6rem; }

/* ---------- forms ---------- */
.kp-body form > label, .login-label {
  display: block;
  margin-top: 1.25rem;
  margin-bottom: .4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.kp-body form > label:first-of-type { margin-top: 0; }
.kp-body input[type=text], .kp-body input[type=password], .kp-body input[type=number], .kp-body input[type=email],
.kp-body select, .kp-body textarea, .login-input {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 3rem;
  padding: .6rem .85rem;
  font: 500 1.0625rem/1.4 var(--serif);
  color: var(--ink);
  background: rgba(224,217,202,.75);
  border: 1.5px solid rgba(20,18,16,.5);
  border-radius: 2px;
  transition: border-color .15s, background-color .15s;
}
.kp-body select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}
.kp-body input:hover, .kp-body select:hover, .login-input:hover { border-color: var(--ink); }
.kp-body input:focus-visible, .kp-body select:focus-visible, .login-input:focus-visible {
  border-color: var(--ink);
  background-color: var(--paper-hi);
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}
.kp-body input::placeholder, .login-input::placeholder { color: #8A8478; opacity: 1; }
.kp-body input:disabled {
  background: transparent;
  border-style: dashed;
  border-color: rgba(20,18,16,.35);
  color: var(--wash-text);
}

/* buttons: the seal button from the homepage */
.kp-body button, .kp-body input[type=submit], .kp-body a.button, .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .75rem 1.5rem .8rem;
  font: 700 1.0625rem/1.2 var(--serif);
  letter-spacing: .01em;
  color: #E9E2D4;
  background: var(--cinnabar);
  border: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--cinnabar), inset 0 0 0 4px rgba(233,226,212,.7);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.kp-body button:hover, .kp-body input[type=submit]:hover, .login-btn:hover {
  background: var(--blood);
  box-shadow: inset 0 0 0 3px var(--blood), inset 0 0 0 4px rgba(233,226,212,.7);
}
.kp-body form > button, .kp-body form > input[type=submit] { margin-top: 1.5rem; margin-right: .6rem; }
.kp-body .kp-pick + button, .kp-body .kp-note + button { margin-top: 1.25rem; }
/* secondary actions: outlined ink */
.kp-body a.button, .kp-body button[name=vc_check] {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.kp-body a.button:hover, .kp-body button[name=vc_check]:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* inline search / filter rows */
.kp-body form.kp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .7rem;
}
.kp-body form.kp-row input, .kp-body form.kp-row select { flex: 1 1 11rem; width: auto; max-width: 20rem; }
.kp-body form.kp-row button { margin: 0; }

/* tabs (accinfo uses div.kp-row, other pages p.kp-tabs) */
.kp-body div.kp-row, .kp-body .kp-tabs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  font-size: 0; /* hides the dot separators between the links */
  background: var(--brushline) left bottom / 100% 4px no-repeat;
}
.kp-body div.kp-row a, .kp-body .kp-tabs a {
  display: inline-block;
  padding: .45rem 0 .7rem;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  box-shadow: inset 0 -3px 0 transparent;
}
.kp-body div.kp-row a:hover, .kp-body .kp-tabs a:hover { color: var(--cinnabar); }
.kp-body div.kp-row a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--cinnabar); }
.kp-body div.kp-row + *, .kp-body .kp-tabs + * { margin-top: 1.75rem; }
.kp-body .kp-tabs + h4 { padding-top: 0; background: none; }

/* character picker (radio) and the change-name list */
.kp-pick { border: 0; margin: 0; padding: 0; min-width: 0; max-width: 34rem; }
.kp-body .kp-pick { margin-top: 1rem; }
.kp-pick label, .kp-pick a.kp-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: .85rem .5rem .9rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  background: var(--brushline) left bottom / 100% 4px no-repeat;
  transition: background-color .15s;
}
.kp-pick label:hover, .kp-pick a.kp-card:hover { background-color: rgba(224,217,202,.8); }
.kp-pick label:has(input:checked) { background-color: rgba(184,35,27,.07); }
.kp-pick input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: var(--cinnabar); }
.kp-pick .nm { font-weight: 700; }
.kp-pick .kp-lv, .kp-pick .kp-note { margin: 0 0 0 auto !important; font-size: .98rem; color: var(--wash-text); }
.kp-pick a.kp-card { display: flex; }

/* dashboard shortcuts: a book index, like the Kalypedia on the homepage */
.kp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin-top: 1.75rem !important;
}
.kp-grid .kp-card {
  display: grid;
  padding: 1.15rem 0 1.15rem;
  text-decoration: none;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
}
.kp-grid .kp-card b {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color .2s;
}
.kp-grid .kp-card b::after { content: ""; flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--wash); }
.kp-grid .kp-card .kp-note { margin-top: .3rem; font-size: .98rem; }
.kp-grid .kp-card:hover b, .kp-grid .kp-card:focus-visible b { color: var(--cinnabar); }

/* ---------- tables ---------- */
.kp-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.kp-body th, .kp-body td {
  padding: .7rem 1rem .75rem 0;
  text-align: left;
  vertical-align: middle;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
}
.kp-body tr:first-child th { padding-top: .2rem; }
.kp-body th { font-size: .94rem; font-weight: 600; color: var(--wash-text); }
.kp-body td { color: var(--ink); }
.kp-body tr > th:first-child:not(:only-child) + td { font-weight: 600; }
.kp-body td:last-child, .kp-body th:last-child { padding-right: 0; }
.kp-dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  margin-right: .55rem;
  vertical-align: .1em;
  box-shadow: inset 0 0 0 1.5px var(--wash);
  transform: rotate(45deg);
}
.kp-dot.on { background: var(--cinnabar); box-shadow: none; }
.kp-pages { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: 1rem; }
.kp-pages b { color: var(--cinnabar); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- staff pages: re-ink markup that carries old dark inline styles ---------- */
.kp-body div[style*="2c2c44"] {
  border: 0 !important;
  border-radius: 0 !important;
  padding: .3rem 0 .9rem !important;
  background: var(--brushline) left bottom / 100% 4px no-repeat;
}
.kp-body div[style*="2c2c44"] > div:last-child { font-size: 1.6rem !important; font-weight: 800 !important; line-height: 1.2; }
.kp-body .ki-ic {
  flex: none !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--ink) !important;
  box-shadow: 0 0 0 1px rgba(20,18,16,.25);
}
.kp-body .ki-ic b { color: #F3D68A; font-size: .7rem; }
.kp-body .ki-nm { font-weight: 700; }
.kp-body .ki-sub { font-size: .86rem; color: var(--wash-text); }
.kp-body .ki-tag {
  font-size: .82rem;
  font-weight: 600;
  padding: .05rem .45rem;
  border-radius: 1px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px currentColor;
}
.kp-body .ki-tag.b { background: transparent; color: var(--blood); }
.kp-body .ki-tag.l { background: transparent; color: var(--cinnabar); }
.kp-body .ki-tag.e { background: transparent; color: var(--ink); }
.kp-body .ki-act { gap: .35rem; }
.kp-body .ki-act form { gap: .3rem; }
.kp-body .ki-act button, .kp-body form[style] button, .kp-body form[style] + a.button, .kp-body div > a.button {
  min-height: 2.25rem;
  margin: 0;
  padding: .35rem .8rem .4rem;
  font-size: .9rem;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: transparent;
  color: var(--ink);
}
.kp-body .ki-act button:hover, .kp-body form[style] button:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.kp-body .ki-act .del { background: transparent; color: var(--blood); box-shadow: inset 0 0 0 1.5px var(--cinnabar); }
.kp-body .ki-act .del:hover { background: var(--cinnabar); color: #E9E2D4; }
.kp-body .ki-act input[type=number], .kp-body form[style] input[type=text] { min-height: 2.25rem; padding: .25rem .5rem; font-size: .92rem; width: 6rem; }
.kp-body form[style] input[type=text] { width: 9rem !important; }
.kp-body td[style*="font-size:12px"] { font-size: .86rem !important; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- characters column ---------- */
.pn-chars h2 {
  font-size: 1.45rem;
  font-weight: 700;
  padding-bottom: .8rem;
  background: var(--brushline) left bottom / 100% 5px no-repeat;
}
.kp-char { background: var(--brushline) left bottom / 100% 3px no-repeat; }
.kp-char[open] { padding-bottom: 1.1rem; }
.kp-char summary {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .7rem;
  padding: .95rem 0 .9rem;
  cursor: pointer;
  list-style: none;
}
.kp-char summary::-webkit-details-marker { display: none; }
.kp-char summary .g { font-family: var(--brush); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.kp-char[open] summary .g { color: var(--cinnabar); }
.kp-char summary .nm { display: grid; font-size: 1.15rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.kp-char summary small { font-size: .9rem; font-weight: 500; color: var(--wash-text); }
.kp-char summary .lv { font-size: 1.45rem; font-weight: 800; font-variant-numeric: lining-nums; }
.kp-char summary:hover .nm { color: var(--cinnabar); }
.kp-bar {
  position: relative;
  height: 6px;
  margin: 0 0 .9rem 3.3rem;
  background: linear-gradient(rgba(20,18,16,.14), rgba(20,18,16,.14)) left center / 100% 2px no-repeat;
}
.kp-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--ink);
  border-radius: 1px 3px 3px 1px;
  box-shadow: 2px 0 0 var(--cinnabar);
}
.kp-char table { width: calc(100% - 3.3rem); margin: 0 0 0 3.3rem; border-collapse: collapse; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.kp-char td { padding: .22rem 0; line-height: 1.45; }
.kp-char td:first-child { color: var(--wash-text); padding-right: .8rem; }
.kp-char td:last-child { text-align: right; font-weight: 600; }

/* ---------- login / reset screens ---------- */
.pn-head--auth .au-back { margin-left: auto; font-size: 1rem; }
.au-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  min-height: calc(100svh - 84px);
  overflow: clip;
}
.au-art {
  align-self: stretch;
  position: relative;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 52% 48%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 60% at 52% 48%, #000 48%, transparent 100%);
}
.au-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 14%;
  filter: brightness(1.1) contrast(1.1) sepia(.15) saturate(.9);
}
.login-wrap { position: relative; z-index: 1; padding: 56px var(--gutter) 72px clamp(16px, 2vw, 32px); }
.login-box { max-width: 27rem; }
.au-seal { --s: 4.25rem; --r: -5deg; margin-bottom: 1.6rem; animation: stamp .5s cubic-bezier(.3,1.6,.5,1) .2s both; }
.login-sub {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 1.8rem;
}
.login-box > .login-ok, .login-box > .login-err { margin-bottom: 1.2rem; }
.login-group { margin-top: 1.15rem; }
.login-group:first-of-type { margin-top: 0; }
.login-input { max-width: none; }
.login-captcha { display: flex; align-items: center; gap: 1rem; }
.login-captcha-q { font-size: 1.35rem; font-weight: 800; white-space: nowrap; font-variant-numeric: lining-nums; }
.login-captcha .login-input { width: 6.5rem; flex: none; text-align: center; }
.login-btn { width: 100%; margin-top: 1.7rem; min-height: 3.4rem; font-size: 1.1rem; }
a.login-btn { display: flex; }
.login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  background: var(--brushline) left top / 100% 4px no-repeat;
}
.login-links a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.login-links a:hover { color: var(--cinnabar); }
.login-box p, .login-text { margin-bottom: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.login-note { margin-top: 1.2rem; font-size: .95rem; color: var(--wash-text); }
.login-check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.login-check input { margin-top: .3rem; accent-color: var(--cinnabar); }
.login-box code { font-family: var(--serif); font-weight: 700; padding: .1rem .4rem; background: var(--paper-hi); box-shadow: inset 0 0 0 1px rgba(20,18,16,.25); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .pn-shell { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .pn-chars { grid-column: 2; max-width: 46rem; }
}
@media (min-width: 1241px) {
  .pn--staff .pn-shell { grid-template-columns: 14.5rem minmax(0, 1fr); }
  .pn--staff .pn-chars { grid-column: 2; max-width: 46rem; }
}
@media (max-width: 1100px) {
  .kp-body table { display: block; overflow-x: auto; }
}
@media (max-width: 1040px) {
  .pn-head .pn-site:not(.pn-site--m) { display: none; }
  .pn-head .menu-btn { display: inline-flex; margin-left: auto; }
  .pn-shell { display: block; padding-top: 0; }
  .pn-nav {
    position: static;
    display: none;
    margin: 0 calc(var(--gutter) * -1) 2rem;
    padding: 1.25rem var(--gutter) 1.6rem;
    background: var(--paper-hi);
    box-shadow: 0 18px 30px -18px rgba(20,18,16,.35);
  }
  .pn-nav.open { display: block; }
  .pn-nav .pn-grp ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
  .pn-site--m { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.6rem; padding-top: 1rem; background: var(--brushline) left top / 100% 4px no-repeat; }
  .pn-main { padding-top: clamp(28px, 5vw, 44px); }
  .pn-chars { margin-top: 4rem; max-width: 46rem; }
  .au-main { grid-template-columns: 1fr; min-height: 0; }
  .au-art { height: min(62vw, 440px); margin-inline: -4vw; }
  .login-wrap { padding: 0 var(--gutter) 64px; margin-top: -3rem; }
  .login-box { margin-inline: auto; }
}
@media (max-width: 700px) {
  .kp-grid { grid-template-columns: 1fr; }
  .pn-glyph { font-size: 13rem; top: -.5rem; right: -.5rem; }
}
@media (max-width: 560px) {
  .pn-head-in { height: 72px; gap: .9rem; }
  .pn-label { padding-left: .9rem; font-size: .92rem; }
  .pn-title .seal { --s: 2.6rem; }
  .pn-title { gap: .9rem; }
  .kp-body { font-size: 1.02rem; }
  .kp-body form.kp-row input, .kp-body form.kp-row select { max-width: none; flex-basis: 100%; }
  .kp-body button, .kp-body input[type=submit] { width: 100%; margin-right: 0 !important; }
  .kp-body .ki-act button, .kp-body form[style] button, .kp-body a.button { width: auto; }
  .au-main { min-height: 0; }
  .au-art { height: 70vw; }
  .au-seal { --s: 3.4rem; }
  .pn-head--auth .au-back { font-size: .95rem; }
}
@media (max-width: 380px) {
  .pn-label { display: none; }
}
