.portal {
  --band-a: #e1faf0;
  --band-b: #b1eed5;
  --band-ink: #00271b;
  --band-ink-2: #2e5d4c;
  --band-chip: rgb(255 255 255 / 0.62);
  --band-chip-hover: rgb(255 255 255 / 0.92);
  --band-ring: rgb(0 39 27 / 0.1);
  --ok-bg: #dcf5e4;
  --ok-ink: #14532d;
  --bad-bg: #fee2e2;
  --bad-ink: #991b1b;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--ground);
}

@media (prefers-color-scheme: dark) {
  .portal {
    --band-a: #187459;
    --band-b: #02553f;
    --band-ink: #ffffff;
    --band-ink-2: rgb(255 255 255 / 0.86);
    --band-chip: rgb(255 255 255 / 0.14);
    --band-chip-hover: rgb(255 255 255 / 0.24);
    --band-ring: rgb(255 255 255 / 0.16);
    --ok-bg: rgb(74 222 128 / 0.14);
    --ok-ink: #86efac;
    --bad-bg: rgb(248 113 113 / 0.14);
    --bad-ink: #fca5a5;
  }
}

.psr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pwrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.pwrap-list {
  max-width: 960px;
}

.pband {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(72px, 10vw, 96px);
  border-radius: 0 0 50% 50% / 0 0 64px 64px;
  background: linear-gradient(180deg, var(--band-a), var(--band-b));
  color: var(--band-ink);
  text-align: center;
}

.pband-enter {
  animation: drop-in 0.7s var(--ease) both;
}

.pband-hero {
  padding-bottom: clamp(64px, 9vw, 84px);
}

.pband-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.pband-orbit::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 144px;
  height: 144px;
  border: 1px solid var(--band-ring);
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.pband-title {
  max-width: 20ch;
  margin: 0 auto;
  color: var(--band-ink);
  font-size: clamp(34px, 6.5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.pband-detail .pband-title {
  max-width: 24ch;
  font-size: clamp(30px, 5vw, 46px);
}

.pband-title:focus {
  outline: none;
}

.pband-sub {
  margin-top: 14px;
  color: var(--band-ink-2);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.pband-tile {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translate(-50%, 50%);
}

.pmark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 22.5%;
  background: var(--mint);
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pmark-logo {
  background: #fff;
}

.pmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pmark-lg {
  width: 92px;
  height: 92px;
  border: 7px solid var(--ground);
  font-size: 30px;
  box-shadow: 0 14px 26px -16px rgb(2 132 100 / 0.6);
}

.pmark-sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.pbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: left;
}

.pback {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--band-chip);
  color: var(--band-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.pback:hover {
  background: var(--band-chip-hover);
}

.pbar-co {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--band-ink);
  font-size: 15px;
  font-weight: 600;
}

.pbar-co > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pchips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--band-chip);
  color: var(--band-ink);
  font-size: 15px;
  font-weight: 500;
}

.pmain {
  flex: 1;
  padding: 72px 0 48px;
}

.pmain-detail {
  padding-top: 0;
}

.pfilter {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.psel {
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b6058' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .psel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b5ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  }
}

.pjobs {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  list-style: none;
}

.pjobs li + li {
  border-top: 1px solid var(--line);
}

.pjob {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px 28px;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.pjob:hover {
  background: var(--ground);
}

.pjob:focus-visible {
  outline-offset: -4px;
  border-radius: 14px;
}

.pjob-title {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pjob-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.pjob-fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pjob-fact .icon,
.pchip .icon {
  color: var(--faint);
}

.pchip .icon {
  color: var(--band-ink-2);
}

.pjob-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.pjob-salary {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pjob-when {
  color: var(--muted);
  font-size: 14px;
}

.psoon {
  color: var(--warning-ink);
  font-weight: 600;
}

.pjob-go {
  color: var(--link);
  transition: transform 0.25s var(--ease);
}

.pjob:hover .pjob-go {
  transform: translateX(4px);
}

.pstate {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 56px 16px;
  color: var(--muted);
  text-align: center;
}

.pstate h1,
.pstate h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pstate p {
  max-width: 40ch;
  font-size: 17px;
}

.pstate-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--link);
}

.pmain-state {
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.pdetail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.psum {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
}

.pledger {
  display: grid;
  margin: 0;
}

.pledger > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.pledger > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.pledger dt {
  color: var(--muted);
  font-size: 14px;
}

.pledger dd {
  display: grid;
  gap: 2px;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pledger .psoon {
  font-size: 14px;
}

.psum .btn {
  margin-top: 8px;
}

.part {
  min-width: 0;
  max-width: 720px;
}

.psec + .psec {
  margin-top: 48px;
}

.psec h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ptext p {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
}

.ptext p + p {
  margin-top: 14px;
}

.plist,
.portal .checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plist li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.plist li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.portal .checks li {
  font-size: 17px;
  line-height: 1.55;
}

.pform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

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

.pf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pf-wide {
  grid-column: 1 / -1;
}

.pcell {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
}

.pf label,
.pf-label {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.pf em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.pf input,
.pf textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  caret-color: var(--mint);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.pf textarea {
  height: auto;
  min-height: 128px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.pf input::placeholder,
.pf textarea::placeholder {
  color: var(--faint);
}

.pf input:hover,
.pf textarea:hover {
  border-color: var(--faint);
}

.pf input:focus,
.pf textarea:focus {
  border-color: var(--mint);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 132 100 / 0.2);
}

.pf [aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.12);
}

.pf-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--bad-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pf-err[hidden] {
  display: none;
}

.pf-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  color: var(--warning-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pf-note[hidden] {
  display: none;
}

.pf-note .icon {
  margin-top: 1px;
  flex-shrink: 0;
}

.pf-note > span {
  min-width: 0;
  flex: 1 1 200px;
}

.pf-fix {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pf-err .icon {
  margin-top: 1px;
}

.paffix {
  position: relative;
  display: block;
}

.paffix-t {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  pointer-events: none;
  transform: translateY(-50%);
}

.paffix input {
  padding-left: 46px;
  font-variant-numeric: tabular-nums;
}

.pdrop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--ground);
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.pdrop:hover,
.pdrop.is-drag {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.pdrop:focus-within {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.pdrop.has-file {
  border-style: solid;
  border-color: var(--mint);
  background: var(--mint-soft);
}

.pdrop.is-bad {
  border-color: var(--danger);
}

.pdrop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  opacity: 0;
  cursor: pointer;
}

.pdrop-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--link);
}

.pdrop-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pdrop-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdrop-sub {
  color: var(--muted);
  font-size: 14px;
}

.pdrop-change {
  margin-left: auto;
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
}

.pdrop-change[hidden] {
  display: none;
}

.pconsent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ground);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.pconsent.is-bad {
  border-color: var(--danger);
}

.pconsent input {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  transition:
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pconsent input::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2.5px;
  width: 6px;
  height: 12px;
  border-right: 2.6px solid #fff;
  border-bottom: 2.6px solid #fff;
  border-radius: 1px;
  transform: rotate(45deg) scale(0);
  transform-origin: 60% 60%;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1) 40ms;
}

.pconsent input:hover {
  border-color: var(--ink-2);
}

.pconsent input:active {
  transform: scale(0.9);
}

.pconsent input:checked {
  border-color: var(--mint);
  background: var(--mint);
}

.pconsent input:checked::after {
  transform: rotate(45deg) scale(1);
}

.pconsent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(2 132 100 / 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .pconsent input,
  .pconsent input::after {
    transition: none;
  }
}

.pform-actions {
  flex-direction: row;
  justify-content: flex-end;
}

.pmsg {
  grid-column: 1 / -1;
  min-height: 0;
  font-size: 15px;
}

.pmsg:empty {
  display: none;
}

.pmsg.err {
  color: var(--bad-ink);
  font-weight: 500;
}

.portal .btn[aria-busy='true']::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pspin 0.7s linear infinite;
}

.pdone {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 64px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
}

.pdone h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.pdone p {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 17px;
}

.pdone-disc {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 10px var(--ok-bg);
  color: #fff;
  animation: sharpen 0.5s var(--ease) both;
}

.pdone-disc .icon {
  stroke-width: 2.25;
}

.pdone-disc path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: pdraw 0.6s 0.25s var(--ease) forwards;
}

.pletter {
  display: grid;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.pgreet {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.pnote {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
}

.pnote .icon {
  margin-top: 2px;
}

.pnote h2 {
  font-size: 18px;
  font-weight: 650;
}

.pnote p {
  margin-top: 4px;
  font-size: 16px;
}

.pnote-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.pnote-no {
  background: var(--ground-2);
  color: var(--ink);
}

.pnote-late {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.pfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.pfacts > div {
  min-width: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.pfacts > div:nth-child(-n + 2) {
  border-top: 0;
}

.pfacts > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.pfacts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.pfacts dt {
  color: var(--muted);
  font-size: 14px;
}

.pfacts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pterms p {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-line;
}

.pterms p + p {
  margin-top: 16px;
}

.pmoney {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  list-style: none;
}

.pmoney li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--ink-2);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.pmoney li + li {
  border-top: 1px solid var(--line);
}

.pmoney li span:last-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.pmoney .pmoney-total {
  background: var(--mint-soft);
  color: var(--on-mint-soft);
  font-size: 19px;
  font-weight: 700;
}

.pmoney .pmoney-total span:last-child {
  color: var(--on-mint-soft);
  font-weight: 700;
}

.pfine {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.pdoc {
  justify-self: start;
}

.pdecide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdecide .btn {
  min-height: 54px;
  height: auto;
  padding-block: 10px;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.pdecide-ask {
  grid-column: 1 / -1;
}

.btn-reject {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--bad-ink);
}

.btn-reject:hover {
  border-color: var(--danger);
  background: var(--bad-bg);
}

.pdialog {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

.pdialog[open] {
  animation: rise 0.35s var(--ease) both;
}

.pdialog::backdrop {
  background: rgb(7 32 23 / 0.5);
}

.pdialog h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pdialog p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.pdialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.pdialog .pf {
  margin-top: 16px;
}

@media (max-width: 420px) {
  .pdialog-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdialog-actions .btn-primary {
    order: -1;
  }
}

.pdialog-actions .btn {
  min-height: 48px;
  height: auto;
  padding-block: 8px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.pfoot {
  margin-top: auto;
  padding: 24px 16px 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pfoot a {
  color: var(--link);
  font-weight: 600;
}

.psk {
  display: block;
  border-radius: 12px;
  background: var(--line);
  animation: ppulse 1.4s ease-in-out infinite;
}

.pband .psk {
  background: rgb(255 255 255 / 0.5);
}

.psk-title {
  width: min(340px, 72%);
  height: 48px;
  margin: 0 auto;
}

.psk-sub {
  width: 170px;
  height: 22px;
  margin: 16px auto 0;
}

.pband .psk-tile {
  width: 92px;
  height: 92px;
  border-radius: 22.5%;
  background: var(--paper);
  box-shadow: 0 0 0 7px var(--ground);
}

.psk-row {
  height: 108px;
  padding: 22px 24px;
}

.psk-row .psk {
  width: 46%;
  height: 22px;
}

.psk-row .psk + .psk {
  width: 70%;
  height: 16px;
  margin-top: 14px;
}

.psk-panel {
  height: 168px;
  border-radius: 14px;
}

@keyframes pspin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pdraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ppulse {
  50% {
    opacity: 0.55;
  }
}

@media (min-width: 960px) {
  .pmain-detail {
    padding-top: 64px;
  }

  .pdetail {
    grid-template-columns: minmax(0, 1fr) 344px;
    column-gap: 72px;
  }

  .part {
    grid-column: 1;
    grid-row: 1;
  }

  .psum {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 24px;
    margin-top: -108px;
    padding: 26px;
  }
}

@media (max-width: 719px) {
  .pband-detail .pbar-co > span:last-child {
    max-width: 38vw;
  }

  .pjob {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding: 20px 18px;
  }

  .pjob-side {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    gap: 4px;
    margin-top: 6px;
    text-align: left;
  }

  .pjob-go {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 3px;
  }

  .pjob-meta {
    gap: 6px 14px;
    font-size: 14px;
  }

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

  .pform-actions .btn {
    width: 100%;
  }

  .pdecide .btn {
    padding: 0 10px;
    font-size: 15px;
  }

  .pfacts > div {
    padding: 14px 16px;
  }

  .pmoney li {
    padding: 14px 16px;
  }
}

.pnote-bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
}

.pfine-top {
  margin-top: 0;
  margin-bottom: 14px;
}

.pcode {
  display: grid;
  gap: 10px;
}

.pcode-label {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.pcode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.pinput {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  caret-color: var(--mint);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.pinput::placeholder {
  color: var(--faint);
}

.pinput:focus {
  border-color: var(--mint);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 132 100 / 0.2);
}

@media (max-width: 520px) {
  .pcode-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pdrop {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 28px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-2);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.pdrop strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.pdrop span {
  color: var(--muted);
  font-size: 14px;
}

.pdrop:hover,
.pdrop-over {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.pcheck-out {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pdoc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pviewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgb(7 32 23 / 0.94);
  animation: rise 0.3s var(--ease) both;
}

.pviewer[hidden] {
  display: none;
}

.pviewer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(12px, 3vw, 24px) 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.pviewer-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pviewer-scroll {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
  padding: 18px 12px calc(28px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.pviewer-pages {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.pviewer-page {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px -14px rgb(0 0 0 / 0.55);
}

.pviewer-msg {
  max-width: 420px;
  margin: 18vh auto 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.pviewer-msg p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .pviewer {
    animation: none;
  }
}
