:root {
  color-scheme: light;
  --bg: #fff2c4;
  --surface: #fffaf0;
  --surface-2: #fff3c7;
  --text: #1b0d08;
  --muted: #6c3d22;
  --line: #1b0d08;
  --accent: #e11919;
  --accent-2: #ffbd12;
  --warning: #9a3b00;
  --danger: #b40000;
  --ink: #090504;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-soft: 4px 4px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 78%) 0 7%, transparent 18%),
    repeating-conic-gradient(from -18deg at 50% 18%, rgb(255 255 255 / 65%) 0deg 7deg, transparent 7deg 16deg),
    linear-gradient(135deg, #e11919 0 16%, #ffbd12 16% 36%, #ff8a00 36% 58%, #d71111 58% 72%, #ffd333 72% 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 9% 20%, #070707 0 5px, transparent 6px),
    radial-gradient(circle at 82% 16%, #070707 0 4px, transparent 5px),
    radial-gradient(circle at 15% 76%, #b40000 0 8px, transparent 9px),
    radial-gradient(circle at 92% 62%, #070707 0 7px, transparent 8px),
    linear-gradient(180deg, rgb(255 241 178 / 68%), rgb(255 241 178 / 82%));
  pointer-events: none;
}

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

button {
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  padding: 0 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

button.secondary {
  background: #fff8de;
  color: var(--ink);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--ink);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  padding: 8px 14px;
}

.button-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-link.secondary {
  background: #fff8de;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 4px solid var(--ink);
  background: rgb(255 211 51 / 94%);
  backdrop-filter: blur(12px);
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--accent-2);
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #4d170d;
  font-size: 12px;
  font-weight: 750;
}

.brand p {
  margin: 3px 0 0;
  color: #4d170d;
  font-size: 12px;
  font-weight: 750;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  padding: 8px 10px;
}

.nav a:hover {
  border-color: var(--ink);
  background: #fff8de;
  color: var(--accent);
}

.nav a[aria-current="page"] {
  border-color: var(--ink);
  background: #fff8de;
  color: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 54px;
}

body[data-page="twofa-token"] main {
  display: grid;
  min-height: calc(100dvh - 150px);
  place-items: center;
}

.overview,
.page-hero,
.section {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 32%, rgb(255 255 255 / 82%) 0 7%, transparent 20%),
    linear-gradient(135deg, #fffaf0 0 42%, #ffd333 42% 68%, #e11919 68% 100%);
}

.overview-side {
  display: grid;
  gap: 14px;
  align-items: center;
}

.hero-logo {
  width: min(100%, 310px);
  aspect-ratio: 1;
  justify-self: end;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--accent-2);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.overview h2 {
  max-width: 760px;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.08;
  text-shadow: 3px 3px 0 #ffd333;
}

.overview p {
  max-width: 680px;
  margin: 0;
  color: #3d1d12;
  font-size: 16px;
  font-weight: 650;
}

.page-hero {
  padding: 24px;
  background:
    radial-gradient(circle at 82% 26%, rgb(255 255 255 / 78%) 0 7%, transparent 18%),
    linear-gradient(135deg, #fffaf0 0 54%, #ffd333 54% 76%, #e11919 76% 100%);
}

.page-hero h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 3px 3px 0 #ffd333;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #3d1d12;
  font-size: 16px;
  font-weight: 650;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.status-strip div {
  min-height: 86px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.status-strip span,
.meta,
.eyebrow {
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 950;
  text-shadow: 2px 2px 0 #fff;
}

.section {
  margin-top: 24px;
  padding: 28px;
}

.section-heading,
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.resource-grid,
.entry-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.twofa-tool-panel {
  order: 3;
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 88% 8%, rgb(255 255 255 / 72%) 0 7%, transparent 18%),
    linear-gradient(135deg, var(--surface-2) 0 58%, #ffd333 58% 78%, #fffaf0 78% 100%);
}

.address-tool-panel,
.password-tool-panel,
.payment-tool-panel,
.jwt-tool-panel,
.gpt-session-tool-panel {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 88% 8%, rgb(255 255 255 / 72%) 0 7%, transparent 18%),
    linear-gradient(135deg, var(--surface-2) 0 58%, #ffd333 58% 78%, #fffaf0 78% 100%);
}

.address-tool-panel {
  order: 1;
}

.password-tool-panel {
  order: 2;
}

.payment-tool-panel {
  order: 4;
}

.gpt-session-tool-panel {
  order: 5;
}

.jwt-tool-panel {
  order: 6;
}

.address-tool-panel .split,
.password-tool-panel .split,
.twofa-tool-panel .split,
.payment-tool-panel .split,
.jwt-tool-panel .split,
.gpt-session-tool-panel > .split {
  border-bottom: 3px solid rgb(27 13 8 / 18%);
  padding-bottom: 16px;
}

.twofa-tool-panel h3,
.address-tool-panel h3,
.password-tool-panel h3,
.payment-tool-panel h3,
.jwt-tool-panel h3,
.gpt-session-tool-panel h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.16;
}

.address-tool-panel .meta,
.password-tool-panel .meta,
.payment-tool-panel .meta,
.jwt-tool-panel .meta,
.gpt-session-tool-panel .meta {
  color: #6c1d12;
}

.gpt-session-output-panel .split p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.address-tool,
.password-tool,
.twofa-tool,
.payment-tool,
.jwt-tool {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.address-country-panel,
.address-result-grid,
.password-control-panel,
.password-result-panel,
.twofa-input-panel,
.twofa-readout-panel,
.payment-main-panel,
.payment-result-panel,
.jwt-input-panel,
.jwt-output-panel,
.gpt-session-input-panel,
.gpt-session-output-panel {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.password-tool {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
}

.twofa-tool {
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
}

.payment-tool {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.jwt-tool {
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
}

.password-control-panel {
  display: grid;
  gap: 12px;
}

.twofa-input-panel,
.twofa-readout-panel,
.payment-main-panel,
.payment-result-panel,
.jwt-input-panel,
.jwt-output-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.payment-field-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.payment-action-row {
  flex-wrap: wrap;
}

.payment-action-row button {
  flex: 1 1 150px;
}

.payment-result-panel {
  min-height: 274px;
  background:
    linear-gradient(180deg, #fffaf0 0%, #fff8de 100%);
}

.payment-result-row {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  min-height: 54px;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  padding: 10px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.payment-result-row span {
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-result-row strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.payment-result-row a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.payment-link-row,
.payment-email-row {
  padding-right: 56px;
}

.payment-message {
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  padding: 12px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow-wrap: anywhere;
}

.payment-message-error {
  color: var(--danger);
}

.jwt-output-panel {
  min-height: 454px;
  background:
    linear-gradient(180deg, #fffaf0 0%, #fff8de 100%);
}

.jwt-output-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.jwt-output-card span {
  display: block;
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.jwt-code-output {
  min-height: 156px;
  max-height: 290px;
  margin: 10px 0 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #090504;
  color: #fffaf0;
  overflow: auto;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

#jwtInput {
  min-height: 344px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.password-range-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
}

.password-range-row label {
  margin: 0;
}

.password-range-row input[type="number"],
#passwordQuantity {
  min-height: 44px;
}

input[type="range"] {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
  padding: 0;
  cursor: pointer;
}

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

.password-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 10px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.password-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 2px solid var(--ink);
  background: #fffaf0;
  accent-color: var(--accent);
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

.password-option-wide {
  grid-column: 1 / -1;
}

.password-result-panel {
  display: grid;
  gap: 10px;
}

.password-primary-output,
.password-result-item {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  box-shadow: 3px 3px 0 var(--ink);
}

.password-primary-output {
  min-height: 108px;
  padding: 12px 54px 12px 14px;
}

.password-primary-output span,
.password-result-item span {
  display: block;
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.password-primary-output strong,
.password-result-item strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.password-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.password-result-item {
  min-height: 76px;
  padding: 10px 50px 10px 12px;
}

.password-result-item strong {
  font-size: 15px;
}

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

.address-country {
  min-height: 44px;
  background: #fff8de;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.address-country.active {
  background: var(--accent);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.address-country:hover,
.address-country.active:hover {
  border-color: var(--ink);
}

.address-country-panel > button:last-child {
  width: 100%;
  margin-top: 12px;
}

.address-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.address-card {
  position: relative;
  min-height: 74px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  padding: 10px 50px 10px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.address-card span {
  display: block;
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.address-card.address-message {
  grid-column: 1 / -1;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.copy-field {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 2px solid var(--ink);
  background: #fffaf0;
  color: var(--accent);
  box-shadow: 2px 2px 0 var(--ink);
}

.copy-field:hover {
  border-color: var(--ink);
}

.copy-field svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.session-guide {
  margin-top: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  color: var(--muted);
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.session-guide strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.session-guide p {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.session-guide a {
  color: var(--accent);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.gpt-session-toolbar {
  position: sticky;
  top: 92px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffd333;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.session-format-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.session-format-tabs button {
  min-height: 44px;
  background: #fff8de;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}

.session-format-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.session-summary div {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.session-summary span {
  display: block;
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gpt-session-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
  gap: 16px;
  margin-top: 16px;
}

.gpt-session-input-panel,
.gpt-session-output-panel {
  min-width: 0;
}

.gpt-session-input-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.gpt-session-input-panel h4,
.gpt-session-output-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.gpt-session-input-panel.is-dragging {
  background: #fff8de;
  outline: 5px dashed var(--accent);
  outline-offset: -10px;
}

#gptSessionInput {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.session-output-notice {
  display: none;
  margin: 12px 0;
}

.session-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.session-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 #fff;
}

.session-account-table-wrap {
  margin-top: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  overflow: auto;
  box-shadow: 3px 3px 0 var(--ink);
}

.session-account-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.session-account-table th,
.session-account-table td {
  border-bottom: 2px solid rgb(27 13 8 / 18%);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.session-account-table th {
  background: #ffd333;
  color: #5a180f;
  font-size: 12px;
  font-weight: 950;
}

.session-account-table td {
  max-width: 210px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.session-account-table tr:last-child td {
  border-bottom: 0;
}

.session-account-table .empty {
  color: var(--muted);
  text-align: center;
}

.cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-issues {
  display: none;
  margin-top: 12px;
  border: 3px solid var(--danger);
  border-radius: 8px;
  background: #fff8de;
  color: var(--danger);
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
}

.session-issues.is-visible {
  display: grid;
  gap: 6px;
}

.session-code-view {
  min-height: 360px;
  max-height: 560px;
  margin: 12px 0 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #090504;
  color: #fffaf0;
  overflow: auto;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 3px 3px 0 var(--ink);
}

.json-placeholder {
  color: #ffd333;
  font-weight: 900;
}

.json-key {
  color: #ffbd12;
}

.json-string {
  color: #83e27a;
}

.json-number {
  color: #7dcfff;
}

.json-boolean {
  color: #ff8a00;
}

.json-null {
  color: #ff6b6b;
}

.is-ok {
  color: #08733f !important;
}

.is-error {
  color: var(--danger) !important;
}

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

.resource-card,
.entry-card,
.tool-panel,
.announcement-item,
.notice {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.entry-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.entry-card:hover {
  border-color: var(--ink);
  background: #fff8de;
  transform: translate(-1px, -1px);
}

.entry-card span {
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 950;
}

.entry-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.resource-card h3,
.tool-panel h3,
.announcement-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 950;
}

.resource-card p,
.announcement-item p,
.notice {
  color: var(--muted);
  font-size: 14px;
}

.resource-card p {
  min-height: 42px;
  margin: 0 0 12px;
}

.resource-meta,
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resource-tabs {
  margin-top: 16px;
  gap: 10px;
}

.resource-tab {
  min-height: 48px;
  background: #fff8de;
  color: var(--ink);
  white-space: nowrap;
}

.resource-tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.resource-table-wrap {
  margin-top: 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  overflow: auto;
  scroll-margin-top: 110px;
}

.resource-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.resource-table[data-resource-type="video-member"] {
  min-width: 940px;
}

.resource-table th,
.resource-table td {
  border-bottom: 2px solid rgb(27 13 8 / 18%);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  background: #ffd333;
  color: #5a180f;
  font-size: 13px;
  font-weight: 950;
}

.resource-table td {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.resource-table td:first-child strong {
  color: var(--ink);
  font-weight: 950;
}

.resource-empty {
  color: rgb(108 61 34 / 72%);
  font-weight: 800;
}

.resource-secret,
.resource-twofa,
.resource-cookie-scroll {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  padding: 6px 10px;
  box-shadow: 2px 2px 0 rgb(9 5 4 / 88%);
}

.resource-secret {
  overflow-wrap: anywhere;
}

.resource-twofa {
  letter-spacing: 0;
}

.resource-cookie-column {
  width: 58%;
  min-width: 440px;
}

.resource-cookie-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  width: min(620px, 58vw);
  min-width: 320px;
  max-width: 100%;
}

.resource-cookie-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}

.resource-copy.copy-field {
  position: static;
  width: 38px;
  height: 38px;
  min-height: 38px;
  background: var(--accent);
  color: #fff;
  scroll-margin-top: 120px;
}

.resource-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
}

.pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff8de;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 8px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: #5a180f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

input,
select,
textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: #fffaf0;
  color: var(--text);
  padding: 12px 13px;
  font-size: 15px;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button-link:focus-visible,
.nav a:focus-visible,
.entry-card:focus-visible,
.resource-tab:focus-visible,
.address-country:focus-visible,
.copy-field:focus-visible,
.payment-result-row a:focus-visible,
.session-format-tabs button:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.twofa-readout {
  display: grid;
  place-items: center;
  min-height: 148px;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  padding: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}

.twofa-readout strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(34px, 6vw, 58px);
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
}

.twofa-readout span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.twofa-token-panel {
  width: min(100%, 640px);
  background:
    radial-gradient(circle at 88% 8%, rgb(255 255 255 / 72%) 0 7%, transparent 18%),
    linear-gradient(135deg, var(--surface-2) 0 58%, #ffd333 58% 78%, #fffaf0 78% 100%);
  padding: clamp(18px, 4vw, 28px);
}

.twofa-token-panel .split {
  border-bottom: 3px solid rgb(27 13 8 / 18%);
  padding-bottom: 16px;
}

.twofa-token-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 3px 3px 0 #ffd333;
}

.twofa-token-readout {
  min-height: 220px;
  margin-top: 20px;
}

.twofa-token-readout strong {
  font-size: clamp(46px, 14vw, 92px);
}

.twofa-token-actions {
  justify-content: center;
  margin-top: 18px;
}

.result-list,
.output,
.code-output {
  display: block;
  min-height: 46px;
  margin-top: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  padding: 11px;
  overflow-wrap: anywhere;
}

.code-output {
  max-height: 260px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.result-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 2px solid rgb(27 13 8 / 18%);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row span:first-child {
  color: var(--muted);
  font-weight: 700;
}

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

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.tutorial-hub {
  display: grid;
  gap: 18px;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: 100px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgb(255 255 255 / 80%) 0 9%, transparent 26%),
    linear-gradient(135deg, #fffaf0 0 45%, #ffd333 45% 100%);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.tutorial-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.1;
  padding-bottom: 10px;
}

.tutorial-sidebar-title::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  content: "#";
  font-size: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}

.tutorial-category-list {
  display: grid;
  gap: 8px;
}

.tutorial-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  padding: 8px 9px;
  text-align: left;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.tutorial-category:hover {
  background: #fffaf0;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}

.tutorial-category.active {
  background: var(--accent);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.tutorial-category.active span {
  color: #fff;
}

.tutorial-category strong {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.tutorial-main {
  min-width: 0;
}

.tutorial-list {
  display: grid;
  gap: 12px;
}

.tutorial-item {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.tutorial-item.active {
  background: #fff8de;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.tutorial-card-button {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  padding: 12px;
}

.tutorial-item:hover {
  background: #fff8de;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.tutorial-card-button:hover {
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.tutorial-card-button:hover strong,
.tutorial-card-button:hover .tutorial-summary {
  text-decoration: none;
}

.tutorial-thumb {
  width: 168px;
  height: 110px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: #fffaf0;
  object-fit: cover;
}

.tutorial-card-content {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.tutorial-card-kicker {
  color: #6c1d12;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tutorial-card-content strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.18;
  text-decoration: none;
}

.tutorial-summary {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.tutorial-tags,
.tutorial-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tutorial-tags span,
.tutorial-article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  padding: 3px 8px;
}

.tutorial-empty,
.tutorial-article-loading {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff8de;
  color: var(--muted);
  font-weight: 850;
  padding: 18px;
}

.tutorial-article {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tutorial-detail {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: #5a180f;
  font-size: 14px;
  font-weight: 850;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.tutorial-article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(circle at 86% 18%, rgb(255 255 255 / 76%) 0 7%, transparent 18%),
    linear-gradient(135deg, #ffd333 0 58%, #e11919 58% 100%);
  padding: 18px;
}

.tutorial-article-header h2 {
  margin: 8px 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.08;
  text-shadow: 3px 3px 0 #fff8de;
}

.tutorial-article-header p {
  max-width: 680px;
  margin: 0 0 12px;
  color: #3d1d12;
  font-size: 15px;
  font-weight: 750;
}

.tutorial-article-header img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.tutorial-body {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: 24px;
}

.tutorial-body > * {
  margin: 0;
}

.tutorial-body h1,
.tutorial-body h2,
.tutorial-body h3 {
  color: var(--ink);
  font-weight: 950;
  line-height: 1.15;
}

.tutorial-body h1 {
  font-size: 32px;
}

.tutorial-body h2 {
  margin-top: 12px;
  font-size: 24px;
}

.tutorial-body h3 {
  font-size: 20px;
}

.tutorial-body p,
.tutorial-body li,
.tutorial-body td,
.tutorial-body th {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.tutorial-body strong {
  color: var(--ink);
  font-weight: 950;
}

.tutorial-body a {
  color: var(--accent);
  font-weight: 900;
}

.tutorial-body img {
  width: 100%;
  max-height: 420px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff2c4;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.tutorial-body blockquote {
  border: 3px solid var(--ink);
  border-left-width: 12px;
  border-radius: 8px;
  background: #fff8de;
  color: var(--muted);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.tutorial-body ul,
.tutorial-body ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.tutorial-body table {
  width: 100%;
  border: 3px solid var(--ink);
  border-collapse: collapse;
  background: #fff8de;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tutorial-body th,
.tutorial-body td {
  border: 2px solid rgb(27 13 8 / 24%);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.tutorial-body th {
  background: #ffd333;
  color: #5a180f;
  font-weight: 950;
}

.tutorial-body code {
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #090504;
  color: #ffd333;
  font-size: .92em;
  padding: 1px 5px;
}

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

.announcement-item p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(16px);
  opacity: 0;
  border-radius: 8px;
  border: 3px solid var(--ink);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  transition: .2s ease;
  pointer-events: none;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .site-header,
  .overview,
  .section-heading,
  .split {
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .status-strip,
  .resource-grid,
  .entry-grid,
  .tool-grid,
  .tutorial-layout,
  .tutorial-article-header,
  .address-tool,
  .password-tool,
  .payment-tool,
  .jwt-tool,
  .address-result-grid,
  .password-result-list,
  .payment-field-grid,
  .gpt-session-toolbar,
  .gpt-session-workspace,
  .session-summary,
  .announcement-list {
    grid-template-columns: 1fr;
  }

  .status-strip {
    margin-top: 18px;
  }

  .hero-logo {
    justify-self: start;
    width: min(100%, 240px);
    margin-top: 18px;
  }

  .tutorial-sidebar {
    position: static;
  }

  .tutorial-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-card-button {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 128px;
  }

  .tutorial-thumb {
    width: 112px;
    height: 104px;
  }

  .tutorial-article-header img {
    max-width: 360px;
  }

  .tutorial-body {
    padding: 18px;
  }

  .resource-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resource-tab {
    width: 100%;
  }

  .address-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .password-option-grid {
    grid-template-columns: 1fr;
  }

  .gpt-session-toolbar {
    position: static;
  }

  .session-format-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gpt-session-toolbar .actions,
  .gpt-session-input-panel .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #gptSessionInput,
  .session-code-view {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 4px;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 8px;
  }

  .resource-table-wrap {
    overflow: hidden;
  }

  .resource-table,
  .resource-table[data-resource-type="video-member"] {
    min-width: 0;
  }

  .resource-table thead {
    display: none;
  }

  .resource-table,
  .resource-table tbody,
  .resource-table tr,
  .resource-table td {
    display: block;
    width: 100%;
  }

  .resource-table tbody {
    display: grid;
  }

  .resource-table tr {
    display: grid;
    gap: 10px;
    border-bottom: 2px solid rgb(27 13 8 / 18%);
    padding: 13px;
  }

  .resource-table tr:last-child {
    border-bottom: 0;
  }

  .resource-table td {
    display: grid;
    gap: 6px;
    min-width: 0;
    border-bottom: 0;
    padding: 0;
  }

  .resource-table td::before {
    content: attr(data-label);
    color: #6c1d12;
    font-size: 12px;
    font-weight: 950;
  }

  .resource-secret,
  .resource-twofa {
    max-width: 100%;
  }

  .resource-cookie-column {
    width: 100%;
    min-width: 0;
  }

  .resource-cookie-cell {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .tutorial-category-list {
    grid-template-columns: 1fr;
  }

  .tutorial-card-button {
    grid-template-columns: 1fr;
  }

  .tutorial-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .tutorial-article-header {
    padding: 14px;
  }

  .tutorial-body {
    padding: 14px;
  }

  .tutorial-body table {
    display: block;
    overflow-x: auto;
  }

  .twofa-token-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
