/* ==========================================================================
   OzPDF
   --------------------------------------------------------------------------
   Design brief — read before editing, or this drifts back to a generic theme.

   Light only. No dark mode, no gradients anywhere, no decorative colour.
   The register is Apple's: near-black type on white and a single soft grey
   ground, very generous spacing, one restrained accent, and depth expressed
   through layered shadow rather than borders.

   Rules that hold everything together:
     - System sans throughout (SF Pro on Apple hardware). No webfont request,
       no FOUT, and the exact face the OS renders best.
     - Tight negative tracking on large type, normal tracking on body. This is
       most of what makes big headlines read as premium rather than shouty.
     - Radii are large and consistent: 18px cards, 12px controls, 980px pills.
     - Shadows are wide and faint, never dark. Two levels only: at rest, and
       on hover. Anything heavier reads as a 2014 material card.
     - Colour is almost entirely greyscale. The teal accent appears on hover,
       links, focus and the privacy badge — nowhere else.

   No framework, no build step, no icon font.
   ========================================================================== */

:root {
  /* Brand, sampled from the logo artwork: green #00BF63, red #FF3131, and an
     off-white ground #F6F4F0. The ground is the logo's own background, which is
     why the wordmark sits on the page with no visible edge. */
  --bg:          #f6f4f0;
  --surface:     #ffffff;
  --surface-alt: #fbfaf8;

  --ink:         #16181a;
  --ink-2:       #3f4246;
  --ink-3:       #6b6f75;
  --ink-4:       #8b9097;

  --line:        #dedad3;
  --line-soft:   #ebe8e2;

  /* CONTRAST NOTE, do not "fix" these into one value.
     Brand green #00BF63 is only 2.1:1 on white — fine as a FILL with dark text
     on top (which is how the logo uses it), and unreadable as text. So:
       --brand        fills, chips, progress bars. Never carries text colour.
       --brand-ink    what sits ON --brand. Near-black, 7.9:1.
       --accent       links, icons, small UI. Darkened to 4.6:1 on white.
     Same applies to the red. */
  --brand:        #00bf63;
  --brand-ink:    #0b2a19;
  --accent:       #00794a;
  --accent-soft:  #e8f7ef;

  --red:          #ff3131;
  --red-ink:      #2a0b0b;
  --red-strong:   #c81d1d;
  --red-soft:     #ffeceb;

  --good:        #00794a;
  --good-soft:   #e8f7ef;
  --warn:        #8a5a12;
  --warn-soft:   #fdf3e4;

  --r-card:  18px;
  --r-ctrl:  12px;
  --r-pill:  980px;

  --shadow:    0 1px 2px rgb(22 24 26 / .04), 0 6px 20px rgb(22 24 26 / .06);
  --shadow-up: 0 2px 6px rgb(22 24 26 / .06), 0 18px 40px rgb(22 24 26 / .10);

  --shell:  1280px;
  --narrow: 720px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Opt out of the browser's dark rendering entirely — this design is light. */
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.07;
  /* The single biggest lever on how expensive large type looks. */
  letter-spacing: -0.028em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p  { margin: 0 0 1.15em; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg);
  border-radius: 6px;
  padding: .15em .4em;
}

.pk-skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--r-ctrl) 0; z-index: 100;
}
.pk-skip:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.pk-shell {
  width: min(100% - 3rem, var(--shell));
  margin-inline: auto;
  padding-block: 4rem 6rem;
}
.pk-shell--narrow { width: min(100% - 3rem, var(--narrow)); }
.pk-shell--tool   { width: min(100% - 3rem, 900px); }

/* --------------------------------------------------------------------------
   Header — thin, translucent, quiet
   -------------------------------------------------------------------------- */

.pk-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.pk-header__inner {
  width: min(100% - 3rem, var(--shell));
  margin-inline: auto;
  min-height: 56px;
  display: flex; align-items: center; gap: 2rem;
}

.pk-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.pk-logo img { height: 26px; width: auto; display: block; }
/* Screen-reader name only; the wordmark carries the brand visually. */
.pk-logo span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pk-nav { flex: 1; min-width: 0; }
.pk-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }

.pk-nav__menu > summary {
  list-style: none; cursor: pointer;
  font-size: .9rem; color: var(--ink-3);
  padding: .45rem .75rem; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.pk-nav__menu > summary::-webkit-details-marker { display: none; }
.pk-nav__menu > summary:hover { color: var(--ink); background: rgb(0 0 0 / .045); }
.pk-nav__menu[open] > summary { color: var(--ink); background: rgb(0 0 0 / .055); }

.pk-nav__panel {
  position: absolute; margin-top: .55rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-up);
  padding: .5rem; min-width: 290px; z-index: 60;
}
.pk-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.pk-nav__panel a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem; border-radius: 10px;
  font-size: .95rem; color: var(--ink-2);
  transition: background .15s ease;
}
.pk-nav__panel a:hover { background: var(--bg); color: var(--ink); }
.pk-nav__panel svg { color: var(--ink-4); flex-shrink: 0; }

.pk-header__end { margin-left: auto; flex-shrink: 0; }
.pk-header__link {
  font-size: .9rem; color: var(--ink-3);
  padding: .45rem .95rem; border-radius: var(--r-pill);
  transition: background .2s ease, color .2s ease;
}
.pk-header__link:hover { color: var(--ink); background: rgb(0 0 0 / .045); }

@media (max-width: 940px) { .pk-nav { display: none; } }

/* --------------------------------------------------------------------------
   Hero — centred, big, calm
   -------------------------------------------------------------------------- */

.pk-hero { background: var(--surface); border-bottom: 1px solid var(--line-soft); }

.pk-hero__inner {
  width: min(100% - 3rem, 940px);
  margin-inline: auto;
  padding-block: 6.5rem 5rem;
  text-align: center;
}
@media (max-width: 820px) { .pk-hero__inner { padding-block: 4rem 3rem; } }

.pk-hero__title { margin: 0 0 1.1rem; text-wrap: balance; }

.pk-hero__sub {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  line-height: 1.45; letter-spacing: -.012em;
  color: var(--ink-3);
  max-width: 34ch; margin: 0 auto;
}

.pk-hero__points {
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .75rem;
}
.pk-hero__points li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .92rem; color: var(--ink-2);
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: .5rem 1.1rem .5rem .85rem;
}
.pk-hero__points svg { color: var(--good); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Tool cards — large, white, softly raised
   -------------------------------------------------------------------------- */

.pk-adminonly {
  display: inline-block; vertical-align: middle;
  margin-left: .65rem; padding: .2rem .6rem;
  border-radius: var(--r-pill);
  background: var(--red-soft); color: var(--red-strong);
  font-size: .7rem; font-weight: 600; letter-spacing: 0;
}

.pk-grid__section { margin-top: 4.5rem; }
.pk-grid__section:first-child { margin-top: 0; }

/* Section headers sit ABOVE their blurb, not beside it, and are deliberately
   smaller than the page h1. Baseline-aligning a 42px heading next to 16px body
   text makes the heading shout and the blurb look like an afterthought. */
.pk-grid__head {
  margin-bottom: 1.6rem; padding: 0 .25rem;
}
.pk-grid__head h2 {
  margin: 0 0 .3rem;
  font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem);
  letter-spacing: -.024em;
}
.pk-grid__head p { margin: 0; color: var(--ink-4); font-size: 1.02rem; }

/* The catalogue index and the section count belong to the old editorial
   direction. Kept in the markup, hidden here — an Apple-register card has no
   serial number on it. */
.pk-index,
.pk-grid__count { display: none; }

/* No panel. The grey page ground is the container; white cards sit on it. */
.pk-panel { background: none; border: 0; padding: 0; }

.pk-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1180px) { .pk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .pk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
@media (max-width: 580px)  { .pk-cards { grid-template-columns: 1fr; } }

.pk-card { display: flex; }

.pk-card__link {
  display: flex; flex-direction: column;
  width: 100%; min-height: 268px;
  padding: 1.9rem 1.75rem 1.65rem;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s cubic-bezier(.2,.7,.3,1);
}

a.pk-card__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-up);
}
a.pk-card__link:hover .pk-card__arrow { opacity: 1; transform: translateX(0); }

/* Meta row now carries only the icon — the index inside it is hidden above. */
.pk-card__meta { display: flex; margin-bottom: 1.5rem; }

.pk-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--accent);
}
.pk-card__icon svg { width: 27px; height: 27px; }

.pk-card__body { flex: 1; }

.pk-card__title {
  font-size: 1.3rem; font-weight: 600; letter-spacing: -.024em;
  line-height: 1.2; color: var(--ink); margin: 0 0 .5rem;
}

.pk-card__desc {
  font-size: 1rem; line-height: 1.48; color: var(--ink-3); margin: 0;
  letter-spacing: -.005em;
}

.pk-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-top: 1.5rem;
}

.pk-card__tag {
  display: inline-block;
  padding: .32rem .8rem;
  border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 500; letter-spacing: -.004em;
  color: var(--good); background: var(--good-soft);
}
.pk-card__tag--server { color: var(--warn); background: var(--warn-soft); }
.pk-card__tag--soon   { color: var(--ink-4); background: var(--bg); }

.pk-card__arrow {
  color: var(--accent);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.7,.3,1);
}

.pk-card--soon .pk-card__link {
  background: var(--surface-alt);
  box-shadow: none;
  border: 1px solid var(--line-soft);
}
.pk-card--soon .pk-card__title { color: var(--ink-3); }
.pk-card--soon .pk-card__desc  { color: var(--ink-4); }
.pk-card--soon .pk-card__icon  { background: #fff; color: var(--ink-4); }

/* --------------------------------------------------------------------------
   Tool page
   -------------------------------------------------------------------------- */

.pk-crumbs { margin-bottom: 1.75rem; font-size: .9rem; color: var(--ink-4); }
.pk-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.pk-crumbs li + li::before { content: "›"; margin-right: .45rem; color: var(--line); }
.pk-crumbs a:hover { color: var(--accent); }

.pk-toolhead { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 2.25rem; }
.pk-toolhead__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
  color: var(--accent); flex-shrink: 0;
}
.pk-toolhead__title { margin: 0 0 .2rem; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); }
.pk-toolhead__sub { color: var(--ink-3); margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }

.pk-tool {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.85rem;
  margin-bottom: 3.5rem;
}

.pk-badge {
  font-size: .92rem; line-height: 1.5;
  padding: .85rem 1.05rem; margin: 0 0 1.5rem;
  border-radius: var(--r-ctrl);
  letter-spacing: -.005em;
}
.pk-badge svg { display: inline-block; vertical-align: -.2em; margin-right: .5rem; }
.pk-badge strong { font-weight: 600; }
.pk-badge--local  { background: var(--good-soft); color: var(--good); }
.pk-badge--server { background: var(--warn-soft); color: var(--warn); }

.pk-drop {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  transition: border-color .2s ease, background .2s ease;
}
.pk-drop:hover, .pk-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.pk-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }

.pk-drop__label {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 3.5rem 1.5rem; cursor: pointer; text-align: center;
}
.pk-drop__label svg { color: var(--ink-4); margin-bottom: .3rem; }
.pk-drop__title { font-size: 1.15rem; font-weight: 500; color: var(--ink); letter-spacing: -.015em; }
.pk-drop__hint  { font-size: .9rem; color: var(--ink-4); }

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

.pk-files { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.pk-files li {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; font-size: .95rem;
  background: var(--surface-alt); border-radius: var(--r-ctrl);
}
.pk-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pk-files__size { font-size: .85rem; color: var(--ink-4); flex-shrink: 0; }
.pk-files__drop {
  background: none; border: 0; cursor: pointer; padding: .25rem;
  color: var(--ink-4); border-radius: 50%; display: flex;
  transition: background .15s ease, color .15s ease;
}
.pk-files__drop:hover { color: var(--accent); background: rgb(0 0 0 / .05); }

.pk-options {
  border: 0; margin: 1.75rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.pk-options__legend {
  padding: 0; float: left; width: 100%;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: .5rem;
}
.pk-option[hidden] { display: none; }
.pk-option__label {
  display: block; font-size: .88rem; font-weight: 500;
  color: var(--ink-3); margin-bottom: .45rem;
}
.pk-option input[type="text"],
.pk-option input[type="number"],
.pk-option input[type="password"],
.pk-option input[type="url"],
.pk-option select,
.pk-urlfield input {
  width: 100%; padding: .7rem .85rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .98rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pk-option input:focus, .pk-option select:focus, .pk-urlfield input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}
.pk-option__check { display: flex; align-items: center; gap: .6rem; font-size: .98rem; cursor: pointer; color: var(--ink-2); }
.pk-option__check input { width: 1.15em; height: 1.15em; accent-color: var(--accent); }

.pk-urlfield { margin-bottom: .5rem; }
.pk-urlfield label { display: block; font-size: .88rem; font-weight: 500; color: var(--ink-3); margin-bottom: .45rem; }

.pk-island { margin-top: 1.5rem; }

.pk-go {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; margin-top: 1.75rem; padding: 1.05rem 1.5rem;
  background: var(--brand); color: var(--brand-ink);
  border: 0; border-radius: var(--r-pill);
  font-size: 1.08rem; font-weight: 500; letter-spacing: -.012em;
  cursor: pointer;
  transition: filter .2s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}
.pk-go:hover:not(:disabled) { filter: brightness(1.06); transform: scale(1.012); }
.pk-go:active:not(:disabled) { transform: scale(.994); }
.pk-go:disabled { opacity: .45; cursor: not-allowed; }

.pk-nojs { font-size: .88rem; color: var(--warn); margin: .9rem 0 0; text-align: center; }
.js .pk-nojs { display: none; }

.pk-status { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-3); }
.pk-progress { height: 6px; border-radius: var(--r-pill); background: var(--bg); margin-top: .7rem; overflow: hidden; }
.pk-progress__bar { height: 100%; background: var(--brand); border-radius: var(--r-pill); transition: width .3s ease; }

.pk-result { margin-top: 1.4rem; display: grid; gap: .6rem; }
.pk-result__file {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.05rem 1.15rem;
  background: var(--good-soft); border-radius: var(--r-ctrl);
  color: var(--ink);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
}
.pk-result__file:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pk-result__file svg { color: var(--good); flex-shrink: 0; }
.pk-result__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.pk-result__size { font-size: .88rem; color: var(--ink-4); }

.pk-error {
  padding: 1rem 1.15rem; border-radius: var(--r-ctrl);
  background: var(--warn-soft); color: var(--warn);
  font-size: .95rem; white-space: pre-line;
}

.pk-usage { margin: 1.4rem 0 0; font-size: .88rem; color: var(--ink-4); text-align: center; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.pk-prose { font-size: 1.08rem; color: var(--ink-2); }
.pk-prose > p,
.pk-prose > h2,
.pk-prose > h3,
.pk-prose > ul,
.pk-prose > ol,
.pk-prose > .pk-faq { max-width: 42em; }
.pk-prose--home { margin-top: 5rem; }
.pk-prose--home > * { max-width: 42em; }
.pk-prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.pk-prose h3 { margin-top: 2rem; }
.pk-prose ol, .pk-prose ul { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.pk-prose li { margin-bottom: .7rem; }
.pk-prose li strong { font-weight: 600; color: var(--ink); }
.pk-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pk-prose ol { counter-reset: s; list-style: none; padding-left: 0; }
.pk-prose ol > li { counter-increment: s; padding-left: 2.9rem; position: relative; min-height: 1.9rem; }
.pk-prose ol > li::before {
  content: counter(s);
  position: absolute; left: 0; top: .1em;
  width: 1.95rem; height: 1.95rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600;
}

.pk-faq {
  background: var(--surface);
  border-radius: var(--r-ctrl);
  margin-bottom: .6rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.pk-faq > summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.3rem;
  font-size: 1.05rem; font-weight: 500; color: var(--ink);
  letter-spacing: -.015em; position: relative;
}
.pk-faq > summary::-webkit-details-marker { display: none; }
.pk-faq > summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 1.45rem;
  width: .5em; height: .5em;
  border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg); transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.pk-faq[open] > summary::after { transform: rotate(-135deg); top: 1.65rem; }
.pk-faq__a { padding: 0 3rem 1.3rem 1.3rem; color: var(--ink-3); font-size: 1rem; }
.pk-faq__a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Related
   -------------------------------------------------------------------------- */

.pk-related { margin-top: 4.5rem; }
.pk-related__h { font-size: 1.35rem; margin-bottom: 1.25rem; }
.pk-related__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}
.pk-related__item {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface); border-radius: var(--r-ctrl);
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.pk-related__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.pk-related__icon { color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.pk-related__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pk-related__text strong { font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -.018em; }
.pk-related__text span { font-size: .92rem; color: var(--ink-3); line-height: 1.45; }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */

.pk-stats {
  display: grid; gap: 1rem; margin: 2.25rem 0 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.pk-stat {
  padding: 1.6rem 1.5rem;
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.pk-stat__n { font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.pk-stat__l { font-size: .92rem; color: var(--ink-4); margin-top: .35rem; }

.pk-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pk-job {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--surface); border-radius: var(--r-ctrl);
  box-shadow: var(--shadow);
}
.pk-job__icon { color: var(--accent); flex-shrink: 0; }
.pk-job__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-job__tool { font-size: 1.05rem; font-weight: 500; color: var(--ink); letter-spacing: -.015em; }
.pk-job__meta { font-size: .88rem; color: var(--ink-4); }
.pk-job__state {
  font-size: .82rem; font-weight: 500;
  padding: .35rem .85rem; border-radius: var(--r-pill); flex-shrink: 0;
}
.pk-job__state[data-s="done"]    { color: var(--good); background: var(--good-soft); }
.pk-job__state[data-s="failed"]  { color: var(--warn); background: var(--warn-soft); }
.pk-job__state[data-s="queued"],
.pk-job__state[data-s="claimed"],
.pk-job__state[data-s="running"] { color: var(--warn); background: var(--warn-soft); }
.pk-job__state[data-s="expired"] { color: var(--ink-4); background: var(--bg); }
a.pk-job__state { background: var(--brand); color: var(--brand-ink); }
a.pk-job__state:hover { filter: brightness(1.12); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.pk-footer { background: var(--surface); border-top: 1px solid var(--line-soft); margin-top: 5rem; }
.pk-footer__inner {
  width: min(100% - 3rem, var(--shell));
  margin-inline: auto; padding-block: 3.5rem 2.5rem;
}
.pk-footer__tools {
  display: grid; gap: 2.25rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  margin-bottom: 3rem;
}
.pk-footer__col h2 {
  font-size: .9rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: .85rem;
}
.pk-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pk-footer__col a { font-size: .92rem; color: var(--ink-3); }
.pk-footer__col a:hover { color: var(--accent); }

.pk-footer__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  font-size: .88rem; color: var(--ink-4);
}
.pk-footer__mark { margin: 0; }

.pk-builtby {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink-4); font-size: .82rem;
  opacity: .8; transition: opacity .2s ease;
}
.pk-builtby:hover { opacity: 1; }
.pk-builtby img { height: 17px; width: auto; display: block; }
.pk-footer__legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.pk-footer__legal a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.pk-empty { padding: 4rem 0; color: var(--ink-3); max-width: 46ch; }
.pk-empty h1, .pk-empty h2 { color: var(--ink); }
.pk-empty a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

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