:root {
  --paper: #f8f7f2;
  --pocket-ink: #211d2b;
  --pocket-mute: #565061;
  --pocket-rule: #d9d4cb;
  --violet: #c5afff;
  --lavender: #eae1ff;
  --green: #e2f878;
  --ink: var(--pocket-ink);
  --muted: var(--pocket-mute);
  --blue: #56389b;
  --line: var(--pocket-rule);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--pocket-ink);
  font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #6740b5; outline-offset: 4px; }
.pocket-skip {
  position: absolute; z-index: 10; top: 10px; left: 10px;
  padding: 10px 16px; background: white; transform: translateY(-150%);
}
.pocket-skip:focus { transform: none; }
.pocket-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.pocket-wrap { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.pocket-local-preview { margin-block: 14px 0; color: var(--pocket-mute); font-size: 14px; }
.pocket-header { border-bottom: 1px solid var(--pocket-rule); }
.pocket-header-row, .pocket-footer-row {
  min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pocket-brand {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: inherit; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.055em;
}
.pocket-brand span { color: #7051b2; margin-left: -7px; }
.pocket-nav, .pocket-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 3vw, 32px); }
.pocket-nav a, .pocket-footer nav a { font-weight: 650; text-decoration: none; }
.pocket-nav a:hover, .pocket-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pocket-nav .pocket-saved { display: flex; align-items: center; gap: 5px; min-height: 44px; }
.pocket-nav svg, .pocket-button svg, .pocket-small svg, .pocket-modes svg, .pocket-more svg,
.pocket-quick-links svg, .pocket-support svg {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pocket-hero {
  display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(42px, 5vw, 77px);
}
.pocket-kicker {
  display: flex; align-items: center; gap: 9px; margin: 0 0 15px;
  font: 750 12px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .115em;
}
.pocket-kicker > span { width: 8px; height: 8px; background: #8059cc; border-radius: 50%; }
.pocket-intro h1, .pocket-station h2, .pocket-quick h2 {
  margin: 0; font-weight: 800; letter-spacing: -.075em; line-height: .98;
}
.pocket-intro h1 { font-size: clamp(54px, 6.35vw, 94px); }
.pocket-intro h1 em {
  position: relative; display: inline-block; isolation: isolate; font-style: normal; white-space: nowrap;
}
.pocket-intro h1 em::before {
  content: ""; position: absolute; z-index: -1; inset: 70% -.05em 1% -.04em;
  border-radius: 3px 14px 4px 9px; transform: rotate(-2deg); background: var(--green);
}
.pocket-lede { max-width: 35ch; margin: 24px 0; color: var(--pocket-mute); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.pocket-button {
  display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 17px; border: 1px solid var(--pocket-ink); border-radius: 9px;
  color: var(--pocket-ink); background: transparent; text-decoration: none; font-weight: 750; line-height: 1.25;
}
.pocket-primary { background: var(--pocket-ink); color: #fff; }
.pocket-primary:hover { background: #493669; border-color: #493669; }
.pocket-outline:hover { background: #f0e9ff; }
.pocket-button:disabled { cursor: default; opacity: .55; }
.pocket-text-button { border-color: transparent; }
.pocket-text-button:hover { background: var(--lavender); }
.pocket-small { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--pocket-mute); font-size: 14px; }
.pocket-small svg { width: 16px; height: 16px; color: #4b6821; stroke-width: 2.3; }

.pocket-art {
  position: relative; min-width: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 49% 42%, #d8c8ff 3%, #b99cf8 76%);
  border: 1px solid #8f72ce; border-radius: 20px; isolation: isolate;
}
.pocket-art::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: radial-gradient(#38205b45 .8px, transparent .8px) 0 0 / 9px 9px;
  mask-image: linear-gradient(135deg, black, transparent 80%);
}
.pocket-art img { display: block; width: 100%; height: auto; }
.art-label, .art-edition {
  position: absolute; font: 750 clamp(9px, 1vw, 11px)/1 ui-monospace, Consolas, monospace; letter-spacing: .1em;
}
.art-label {
  top: 16px; left: 16px; display: flex; align-items: center; gap: 6px;
  padding: 8px 9px; border-radius: 5px; background: #eee5ff; border: 1px solid #35284c55;
}
.art-label span { width: 7px; height: 7px; border-radius: 50%; background: #6740b5; }
.art-edition { bottom: 19px; right: 18px; }
.art-edition span { margin-left: 4px; font-size: 17px; vertical-align: middle; }

.pocket-station { background: var(--lavender); border-block: 1px solid #d8caee; scroll-margin-top: 14px; }
.pocket-station-inner {
  display: grid; grid-template-columns: .72fr 1.55fr; gap: clamp(22px, 5vw, 70px);
  align-items: start; padding-block: clamp(34px, 5vw, 65px);
}
.pocket-station-aside { padding-top: 13px; }
.pocket-station h2, .pocket-quick h2 { font-size: clamp(37px, 4.3vw, 59px); }
.pocket-station-aside > p:last-child { margin: 14px 0 0; max-width: 26ch; color: var(--pocket-mute); font-size: 17px; }
.pocket-console {
  min-width: 0; padding: clamp(18px, 3vw, 31px); border: 1px solid #a893c1; border-radius: 16px;
  background: #fffefa; box-shadow: 4px 4px 0 #b6a3d5;
}
.pocket-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pocket-modes button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 7px 12px;
  border: 1px solid var(--pocket-rule); border-radius: 7px; background: transparent;
  color: var(--pocket-ink); font-weight: 700; line-height: 1.15;
}
.pocket-modes svg { width: 17px; height: 17px; }
.pocket-modes button:hover { border-color: var(--pocket-ink); }
.pocket-modes button[aria-pressed="true"] { border-color: var(--pocket-ink); background: var(--green); }
.pocket-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 14px; }
.pocket-field-head label { font-weight: 750; }
.pocket-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent;
  color: #573594; font-weight: 750; text-decoration: underline; text-underline-offset: 3px;
}
.pocket-field-head .pocket-link { min-height: 32px; font-size: 14px; }
.pocket-link:hover { color: #38205d; }
.pocket-console textarea {
  display: block; width: 100%; min-height: 98px; resize: vertical; padding: 13px;
  border: 1px solid #aaa0b6; border-radius: 8px; background: #fcfbf7; color: var(--pocket-ink);
  font-size: 16px; line-height: 1.5;
}
.pocket-console textarea::placeholder { color: #696373; opacity: 1; }
.pocket-form-actions, .pocket-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-top: 13px; }
.pocket-form-actions p, .pocket-result-help { margin: 0; color: var(--pocket-mute); font-size: 14px; }
.pocket-result { border-top: 1px solid var(--pocket-rule); margin-top: 24px; padding-top: 22px; scroll-margin-top: 20px; }
.pocket-result h3 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
.pocket-result h3 + p { margin: 5px 0 12px; }
.pocket-result textarea { background: #f1edfa; min-height: 133px; }
.pocket-status { margin: 9px 0 0; font-size: 14px; color: #4f337c; font-weight: 700; }
.pocket-status:empty { margin: 0; }
.pocket-result-help { margin-top: 10px; }
.pocket-result-help a { color: #573594; }

.pocket-quick { padding-block: clamp(42px, 6vw, 80px); }
.pocket-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 13px 24px; align-items: end; margin-bottom: 26px; }
.pocket-more { min-height: 44px; white-space: nowrap; }
.pocket-quick-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--pocket-rule);
}
.pocket-quick-links a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 16px 12px; color: inherit; text-decoration: none;
}
.pocket-quick-links a + a { border-left: 1px solid var(--pocket-rule); }
.pocket-quick-links a:hover { background: #eeebe4; }
.pocket-quick-links strong, .pocket-quick-links small { display: block; }
.pocket-quick-links small { color: var(--pocket-mute); font-size: 14px; }
.pocket-tool-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 9px; }
.pocket-tool-icon.lime { background: var(--green); }
.pocket-tool-icon.lilac { background: #e1d2ff; }
.pocket-tool-icon.peach { background: #ffd7c4; }

.pocket-support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 22px; border-top: 1px solid var(--pocket-rule); padding-block: 18px 24px;
}
.pocket-support p { margin: 0; color: var(--pocket-mute); }
.pocket-support .pocket-button { min-height: 44px; }
.pocket-footer { background: var(--pocket-ink); color: #fffefa; }
.pocket-footer-row { padding-block: 23px; }
.pocket-footer .pocket-brand { font-size: 18px; }
.pocket-footer .pocket-brand span { color: var(--violet); }
.pocket-footer nav a { font-size: 14px; }
.pocket-footer :focus-visible { outline-color: var(--green); }

.pocket-route .wrap { width: min(1180px, calc(100% - 88px)); padding-inline: 0; }
.pocket-route .page-head { padding-block: 37px 27px; }
.pocket-route .page-head h1 {
  font-size: clamp(41px, 5.4vw, 72px); letter-spacing: -.075em; line-height: 1;
}
.pocket-route .page-head .lead { margin: 12px 0 0; font-size: 18px; }
.pocket-route .breadcrumb { margin: 0 0 13px; }
.pocket-route .button:not(.secondary, .danger, .quiet) { background: var(--pocket-ink); }
.pocket-route .button:not(.secondary, .danger, .quiet):hover { background: #493669; }
.pocket-route .panel { border-color: var(--pocket-rule); }
.pocket-route a:focus-visible, .pocket-route button:focus-visible { outline-color: #6740b5; }
.pocket-free-tools { color: var(--pocket-mute); margin-top: 22px; }
.pocket-free-tools a, .buddy-upgrades a, .buddy-kit a:not(.pocket-button) { color: #56389b; }
.buddy-launch-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.buddy-launch-bar .pocket-button { min-height: 44px; padding-inline: 13px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--pocket-ink); color: #fffefa; border-radius: 9px; max-width: 90vw; width: max-content; font-size: 14px; z-index: 30; }
#toast:not(:empty) { padding: 13px 22px; }
.buddy-inline-check { margin: 18px 0; border: 1px solid var(--pocket-rule); border-radius: 10px; padding: 0 13px; background: #fffefa; }
.buddy-inline-check summary, .restore-panel summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.buddy-inline-check label { display: block; margin: 8px 0 4px; font-weight: 650; font-size: 14px; }
.buddy-inline-check textarea { min-height: 90px; width: 100%; margin-bottom: 7px; }
.buddy-inline-findings { overflow-wrap: anywhere; max-height: 25rem; overflow: auto; }
.buddy-inline-findings:focus { outline: 2px solid #6740b5; }
.buddy-inline-findings h4 { margin: 12px 0 4px; }
.buddy-inline-findings ul { margin: 0 0 12px; padding-left: 20px; }
.buddy-inline-findings li { margin-bottom: 8px; }
.buddy-upgrades, .buddy-kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.buddy-upgrades { margin-top: 28px; }
.buddy-upgrade-card { background: #fffefa; border: 1px solid var(--pocket-rule); border-radius: 12px; padding: 16px; }
.buddy-upgrade-card p { margin: 0 0 6px; }
.buddy-upgrade-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.buddy-kit-grid { align-items: start; margin-bottom: 20px; }
.buddy-kit .buddy-kit-price { font-size: 19px; font-weight: 750; }
.buddy-kit > p:last-child { margin: 12px 0 0; }
.buddy-kit-unlock { max-width: 45rem; }
.buddy-kit .pocket-button { min-height: 44px; }
.buddy-kit .pocket-button:disabled { opacity: .6; cursor: default; }
.buddy-kit-preview { margin-top: 12px; border-top: 1px solid var(--pocket-rule); }
.buddy-kit-preview summary { cursor: pointer; font-weight: 700; min-height: 44px; padding-block: 10px; }
.buddy-kit-preview ul { padding-left: 22px; }
.buddy-kit-preview .result-output { margin: 0; max-height: 15rem; }
.workbench-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 10px; max-width: 42rem; margin-bottom: 10px; }
.workbench-controls .field { margin: 0; }
.workbench-draft { max-width: 50rem; margin-bottom: 20px; }
.workbench-draft textarea { min-height: 16rem; }
.pocket-directory { max-width: 900px; }
.pocket-directory .field { max-width: 550px; margin: 0 0 8px; }
.pocket-directory .field label { font-size: 16px; }
.pocket-directory .field input { min-height: 48px; font-size: 16px; }
.pocket-directory .pocket-status { min-height: 22px; margin-bottom: 18px; }
.pocket-directory details { border-top: 1px solid var(--pocket-rule); scroll-margin-top: 15px; }
.pocket-directory details:last-child { border-bottom: 1px solid var(--pocket-rule); }
.pocket-directory summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 65px; cursor: pointer; padding: 10px 7px; font-weight: 760; font-size: 20px; list-style: none;
}
.pocket-directory summary::-webkit-details-marker { display: none; }
.pocket-directory summary::after { content: "+"; color: #573594; font-size: 25px; font-weight: 500; }
.pocket-directory details[open] summary::after { content: "−"; }
.pocket-directory-list { list-style: none; padding: 0 7px 10px; margin: 0; }
.pocket-directory-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; min-height: 49px;
  padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 7px;
}
.pocket-directory-list a:hover { background: var(--lavender); }
.pocket-directory-list strong { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.pocket-directory-list small { color: var(--pocket-mute); font-size: 14px; }
.pocket-directory-list .pocket-row-arrow { grid-column: 2; grid-row: 1 / span 2; color: #573594; }

@media (max-width: 920px) {
  .pocket-wrap, .pocket-route .wrap { width: calc(100% - 48px); }
  .pocket-intro h1 { font-size: clamp(50px, 6.65vw, 68px); }
  .pocket-quick-links a { gap: 8px; padding-inline: 9px; }
}
@media (max-width: 690px) {
  .pocket-wrap, .pocket-route .wrap { width: calc(100% - 36px); }
  .pocket-header-row { min-height: 65px; }
  .pocket-brand { font-size: 18px; gap: 6px; }
  .pocket-brand span { margin-left: -5px; }
  .pocket-brand img { width: 30px; height: 30px; }
  .pocket-nav { font-size: 14px; gap: 12px; }
  .pocket-nav svg { width: 16px; height: 16px; }
  .pocket-hero { display: block; padding-block: 32px 27px; }
  .pocket-intro h1 { font-size: clamp(44px, 9.8vw, 66px); }
  .pocket-lede { margin: 16px 0 17px; }
  .pocket-art { max-width: 460px; margin-top: 24px; }
  .pocket-art img { width: 81%; }
  .pocket-station-inner { grid-template-columns: 1fr; gap: 19px; padding-block: 29px 35px; }
  .pocket-station-aside { padding-top: 0; }
  .pocket-station-aside > p:last-child { max-width: none; margin-top: 8px; }
  .desk-break { display: none; }
  .pocket-modes { gap: 5px; margin-bottom: 13px; }
  .pocket-modes button { gap: 5px; padding: 7px 8px; font-size: 14px; }
  .pocket-modes svg { width: 15px; height: 15px; }
  .pocket-quick-links { grid-template-columns: 1fr; }
  .pocket-quick-links a + a { border-left: 0; border-top: 1px solid var(--pocket-rule); }
  .pocket-section-head { margin-bottom: 11px; }
  .pocket-footer-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 390px) {
  .pocket-header-row { flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-block: 8px; }
}
@media print {
  .pocket-header, .pocket-footer { display: none; }
}
