.auth-shell {
  color-scheme: dark;
  --ink: #e9f0f3;
  --soft: #a4b6c1;
  --base: #07111c;
  --page-hue: 210;
  --rp-hue: 195;
  --light-x: 25%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  color: var(--ink);
  background: var(--base);
  font-family: var(--font-body);
}
.auth-shell * {
  box-sizing: border-box;
}
.auth-shell .weave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.auth-shell .shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #07111c44, transparent 50%, #02081066),
    radial-gradient(ellipse 24% 52% at 50% 40%, #07111c99, transparent);
}
.auth-shell .plate {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  position: relative;
  margin: 22px 28px 0;
  border: 1px solid #6e829066;
  border-bottom: 3px solid #02070c;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at var(--light-x) 0%, #b1c9d822, transparent 80%),
    repeating-linear-gradient(
      1deg,
      transparent 0 4px,
      #dcebf207 5px,
      transparent 6px 15px,
      #02081055 16px,
      transparent 17px 29px
    ),
    linear-gradient(180deg, #2b3c48, #15232d 6%, #1a2a35 90%, #0a151e);
  box-shadow:
    0 14px 26px #0008,
    inset 0 1px #c3d6df33;
}
.auth-shell .plate::before,
.auth-shell .plate::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #96a9b4;
  box-shadow: inset 1px 1px 2px #000;
}
.auth-shell .plate::before {
  left: 9px;
}
.auth-shell .plate::after {
  right: 9px;
}
.auth-shell .item {
  min-width: 0;
  padding: 15px 22px;
  display: grid;
  align-content: center;
  gap: 7px;
}
.auth-shell .item + .item {
  border-left: 1px solid #b5cfdd1c;
}
.auth-shell .item span {
  font-size: 11px;
  color: var(--soft);
}
.auth-shell .item strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 1px #000;
}
.auth-shell .origin strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.auth-shell .origin {
  --hue: var(--page-hue);
  background:
    linear-gradient(100deg, hsl(var(--hue) 40% 40% / 0.16), transparent),
    repeating-linear-gradient(
      var(--grain-angle, 12deg),
      hsl(var(--hue) 45% 65% / 0.055) 0 1px,
      transparent 1px var(--grain-step, 22px)
    );
  box-shadow: inset 0 2px hsl(var(--hue) 45% 65% / 0.65);
}
.auth-shell .origin.destination {
  --hue: var(--rp-hue);
}
.auth-shell .entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 64px 28px 46px;
}
.auth-shell .bolt {
  position: relative;
  width: min(100%, 580px);
  padding: 15px 0;
}
.auth-shell .saddle {
  position: absolute;
  top: 0;
  width: 30px;
  height: 86px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid #6f8c9c;
  border-radius: 2px;
  background: linear-gradient(90deg, #0a1621, #2b4353 17%, #172d3e 54%, #3b5465 88%, #0a1722);
  box-shadow:
    4px 6px 12px #000a,
    inset 1px 0 #a6c3d344;
}
.auth-shell .saddle.left {
  left: 10%;
}
.auth-shell .saddle.right {
  right: 10%;
}
.auth-shell .saddle::before,
.auth-shell .saddle::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3c7d1;
  box-shadow: inset 1px 1px 2px #000;
}
.auth-shell .saddle::before {
  top: 6px;
}
.auth-shell .saddle::after {
  bottom: 6px;
}
.auth-shell .passkey {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 14px 20%;
  font:
    500 16px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1px solid #a0bac8;
  border-bottom: 3px solid #02070d;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    #819cac 0,
    #21394b 3px,
    #2e4b60 30%,
    #193247 76%,
    #0b1c2b 94%,
    #040d15
  );
  box-shadow:
    0 14px 24px #0009,
    inset 0 1px #d4e8f144;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.3s;
}
.auth-shell .passkey::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #d7e6ef05 3px);
}
.auth-shell .passkey::after {
  content: '';
  position: absolute;
  right: 4%;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-left: 1px solid #bacfd988;
  border-right: 2px solid #040c14;
  border-radius: 2px;
  background: #415c6c;
}
.auth-shell .passkey:hover {
  filter: brightness(1.14);
}
.auth-shell.busy .passkey {
  transform: translateX(18px);
}
.auth-shell .quiet {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--soft);
  font:
    400 12px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
.auth-shell .status {
  margin: 0;
  min-height: 24px;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}
.auth-shell footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px 18px;
  gap: 16px;
}
.auth-shell details {
  max-width: 420px;
  font-size: 12px;
}
.auth-shell summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--soft);
}
.auth-shell .invite {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}
.auth-shell input {
  width: 100%;
  min-width: 0;
  background: #101e2a;
  border: 1px solid #6c8392;
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 16px;
}
.auth-shell .recovery {
  color: var(--soft);
  margin: 8px 0;
}
@media (max-width: 600px) {
  .auth-shell {
    min-height: 580px;
  }
  .auth-shell .plate {
    margin: 16px 16px 0;
    grid-template-columns: 1fr;
  }
  .auth-shell .item {
    padding: 11px 18px;
    gap: 4px;
  }
  .auth-shell .item + .item {
    border-left: 0;
    border-top: 1px solid #b5cfdd1c;
  }
  .auth-shell .item strong {
    font-size: 13px;
  }
  .auth-shell .origin {
    box-shadow: inset 2px 0 hsl(var(--hue) 45% 65% / 0.7);
  }
  .auth-shell .entry {
    padding: 56px 14px 36px;
  }
  .auth-shell .passkey {
    font-size: 14px;
    padding: 14px 12%;
  }
  .auth-shell .passkey::after {
    display: none;
  }
  .auth-shell .saddle {
    width: 21px;
  }
  .auth-shell .saddle.left {
    left: 2%;
  }
  .auth-shell .saddle.right {
    right: 2%;
  }
  .auth-shell .saddle::before,
  .auth-shell .saddle::after {
    left: 7px;
  }
  .auth-shell footer {
    padding: 10px 20px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell .passkey {
    transition: none;
  }
  .auth-shell.busy .passkey {
    transform: none;
  }
}

html,
body {
  margin: 0;
  background: #07111c;
}
.auth-shell {
  min-height: 100svh;
}
.auth-shell button,
.auth-shell summary,
.auth-shell select {
  cursor: pointer;
}
.auth-shell button:disabled {
  cursor: wait;
}
.auth-shell :focus-visible {
  outline: 2px solid #d3e6f0;
  outline-offset: 5px;
}
.auth-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.auth-shell .gate-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
.auth-shell .gate-background canvas {
  width: 100%;
  height: 100%;
}
.auth-shell .gate-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  gap: max(4px, 0.9%);
  background: #02070e;
}
.auth-shell .gate-fallback span {
  flex: 1;
  border-right: 9px solid #142531;
  background-color: #07111c;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0 24px,
      hsl(var(--page-hue) 42% 24%) 25px 31px,
      #020811 32px 34px,
      transparent 35px 48px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 24px,
      hsl(var(--page-hue) 42% 28%) 25px 31px,
      #020811 32px 34px,
      transparent 35px 48px
    );
}
.auth-shell .gate-fallback span + span {
  border-right: 0;
  border-left: 9px solid #142531;
  filter: hue-rotate(calc((var(--rp-hue) - var(--page-hue)) * 1deg));
}
.auth-shell .gate-background[data-renderer='canvas'] .gate-fallback {
  display: none;
}
.auth-shell .language {
  background: #101e2a;
  border: 1px solid #6c839255;
  color: var(--soft);
  min-height: 44px;
  padding: 8px;
  font: inherit;
  font-size: 12px;
}
.auth-shell .registration {
  width: min(100%, 420px);
}
.auth-shell .registration[open] {
  padding: 8px 16px;
  background: #0b1825ed;
  border: 1px solid #6c839255;
}
.auth-shell .auth-alert,
.auth-shell .auth-field-error {
  color: #ffe0cb;
  background: #261d19ed;
  padding: 12px;
  font-size: 14px;
  max-width: 420px;
}
.auth-shell.enrollment .entry {
  padding-bottom: 24px;
}
.auth-shell.enrollment footer {
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .auth-shell {
    min-height: 100svh;
  }
  .auth-shell footer {
    gap: 8px;
  }
}

.auth-shell .enrollment-form {
  padding: 24px;
  background: #0b1825ed;
  border: 1px solid #6c839266;
  box-shadow: 0 14px 24px #0009;
}
.auth-shell .enrollment-form #register {
  width: 100%;
  border: 1px solid #a0bac8;
  color: var(--ink);
  background: linear-gradient(180deg, #2e4b60, #0b1c2b);
  font-size: 14px;
}

.auth-shell details.registration:not([open]) {
  width: auto;
}

.home-shell .home-plate {
  grid-template-columns: auto 1fr;
}
.home-shell .home-name {
  padding-inline: 30px;
  font-size: 15px;
  letter-spacing: 0.13em;
  color: #c3d2da;
  text-shadow: 0 1px 2px #000;
}
.home-shell .home-plate .origin {
  border-left: 1px solid #b5cfdd1c;
  border-top: 0;
}
.home-shell .home-entry h1 {
  margin: 0;
  max-width: 640px;
  color: #e0e9ed;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 18px #020810,
    0 1px 3px #020810;
}
.home-shell .bolt {
  margin-top: 1.5rem;
}
.home-shell .home-enroll {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  text-decoration: none;
}
.home-shell .home-enroll:hover {
  color: var(--ink);
}
@media (max-width: 600px) {
  .home-shell .home-name {
    padding-inline: 20px;
    font-size: 13px;
  }
  .home-shell .home-entry h1 {
    max-width: 280px;
  }
}

.home-shell .home-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

:root {
  font-family: var(--font-body);
  color: #16243a;
  background: #f8f9fb;
  font-synthesis: weight;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select {
  font: inherit;
}

textarea {
  font: inherit;
}

/* Shared page foundation and brand sizing are independent of the login scene. */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.auth-mark {
  display: inline-block;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 24%;
  background: linear-gradient(135deg, #173c59, #081b2d);
}
.auth-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

:root {
  --product-ink: #162b46;
  --product-muted: #586b80;
  --product-line: #dce5ef;
  --product-blue: #1759ad;
}
body {
  background: #f6f8fb;
}
a {
  color: var(--product-blue);
}
.product-header {
  background: linear-gradient(115deg, #102b4c, #10243e 65%, #174771);
  color: #fff;
}
.product-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1440px;
  min-height: 88px;
  margin: auto;
  padding: 1.25rem 3rem;
}
.product-brand {
  text-decoration: none;
}
.product-brand-tag {
  padding-left: 1.25rem;
  border-left: 1px solid #b8d9f34d;
  color: #b8d9f3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.product-toolbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.product-language {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #c4d9eb;
  font-size: 0.78rem;
}
.product-language select {
  min-height: 2.5rem;
  max-width: 9rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #ffffff40;
  border-radius: 0.5rem;
  color: #fff;
  background: #ffffff0c;
}
.product-language option {
  color: #162b46;
  background: #fff;
}
.product-signout {
  color: #d6e9f9;
  font-size: 0.8rem;
  text-decoration: none;
}
.product-signout span {
  margin-left: 0.5rem;
}
.product-signout:hover {
  color: #fff;
  text-decoration: underline;
}
.archive-message {
  border-top: 1px solid var(--product-border, #64766b);
  padding-block: 1rem;
}
.archive-message time {
  display: block;
  font-size: 0.8rem;
  opacity: 0.65;
}
.archive-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.product-main {
  width: min(100% - 6rem, 1240px);
  margin: 3.5rem auto;
}
.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #27618f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.product-eyebrow::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #2c8eaf;
  box-shadow: 0 0 0 0.22rem #2c8eaf1a;
}
.product-heading {
  margin-bottom: 2.5rem;
}
.product-heading h1,
.product-result h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: #122744;
}
.product-heading > p {
  max-width: 46rem;
  margin: 0;
  color: var(--product-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}
.product-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.product-nav {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 0.35rem;
}
.product-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  color: #53677e;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}
.product-nav a[aria-current='location'] {
  color: #174f91;
  background: #e8eff8;
}
.product-nav a:hover {
  background: #e8eff8;
  color: #174f91;
}
.product-nav span {
  color: #7891aa;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}
.product-content {
  min-width: 0;
  display: grid;
  gap: 1.5rem;
}
.product-content > section,
.product-card {
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--product-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 28px #173a6405;
  scroll-margin-top: 2rem;
}
.product-content h2,
.product-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #183653;
}
.product-content h3 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1rem;
  color: #233e5e;
}
.product-content h4 {
  margin: 0.65rem 0;
  font-size: 0.88rem;
}
.product-content p,
.product-card p {
  margin: 0.6rem 0 1.2rem;
  color: var(--product-muted);
  font-size: 0.86rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.product-content section > p:first-of-type {
  max-width: 48rem;
}
.product-content section section {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #e0e8f1;
  border-radius: 0.75rem;
  background: #f8fafd;
}
.product-content section section h3 {
  margin-top: 0;
}
.product-content section section > div,
.product-release-client {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.6rem;
  background: #fff;
}
.product-content section section > div:last-child {
  margin-bottom: 0;
}
.product-content label,
.product-card label {
  display: block;
  margin: 1.2rem 0 0.5rem;
  color: #233953;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.7;
}
.product-content input:not([type='checkbox']),
.product-content textarea,
.product-content select {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin: 0.45rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b9c8d9;
  border-radius: 0.55rem;
  color: var(--product-ink);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.product-content textarea {
  resize: vertical;
  min-height: 9rem;
}
.product-content input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.25rem 0.6rem 0.25rem 0;
  vertical-align: middle;
  accent-color: var(--product-blue);
}
.product-content input[type='file'] {
  padding: 0.55rem;
  font-size: 0.8rem;
}
.product-content input[type='file']::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.35rem;
  color: #174f91;
  background: #e8eff8;
  cursor: pointer;
}
.product-content input:disabled,
.product-content textarea:disabled,
.product-content select:disabled {
  color: #74849a;
  background: #f4f6f9;
  border-color: #dce3ec;
}
.product-content fieldset {
  min-width: 0;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--product-line);
  border-radius: 0.75rem;
}
.product-content fieldset label:first-child {
  margin-top: 0;
}
.product-content button,
.product-card button,
.product-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  max-width: 100%;
  margin: 0.35rem 0.4rem 0.35rem 0;
  padding: 0.65rem 1rem;
  border: 1px solid #b0c3d9;
  border-radius: 0.55rem;
  color: #174f91;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.product-content button:hover,
.product-card button:hover,
.product-button:hover {
  border-color: #1759ad;
  background: #edf5fe;
}
.product-content .product-primary,
.product-card .product-primary,
.product-primary {
  border-color: #174f9e;
  color: #fff;
  background: #1759ad;
  box-shadow: 0 5px 12px #1759ad20;
}
.product-content .product-primary:hover,
.product-card .product-primary:hover,
.product-primary:hover {
  border-color: #123c7c;
  color: #fff;
  background: #123f83;
}
.product-content .product-danger {
  border-color: #e6c7cb;
  color: #a22834;
}
.product-content .product-danger:hover {
  border-color: #be707a;
  background: #fff4f5;
}
.product-content button:disabled,
.product-card button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.product-content button:disabled:hover {
  border-color: #b0c3d9;
  background: #fff;
}
.product-content .product-primary:disabled:hover {
  background: #1759ad;
  border-color: #174f9e;
}
.product-content [role='status']:empty {
  display: none;
}
.product-content [role='status']:not(:empty),
.product-card [role='status'] {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid #cee0f0;
  border-radius: 0.55rem;
  color: #245174;
  background: #f0f7fc;
  font-size: 0.82rem;
}
.product-card [role='alert'] {
  padding: 0.85rem 1rem;
  border: 1px solid #f0c2c2;
  border-radius: 0.55rem;
  color: #842c30;
  background: #fff1f1;
}
.product-content pre,
.product-card code {
  display: block;
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.5rem;
  background: #f6f8fb;
  color: #28415f;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.product-content ul {
  padding-left: 1.2rem;
  color: var(--product-muted);
  font-size: 0.8rem;
  line-height: 1.9;
}
.product-content section > div:not([class]) {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.6rem;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}
.product-content .product-draft-status {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--product-blue);
  border-radius: 0.3rem;
  background: #eef4fc;
  color: var(--product-ink);
  font-size: 0.85rem;
}
.product-footer {
  margin: 2rem auto;
  color: #8493a4;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.product-result-shell {
  display: grid;
  min-height: calc(100svh - 88px);
  place-items: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(ellipse at 50% 10%, #e8f0fa, transparent 65%);
}
.product-result {
  width: min(100%, 32rem);
  padding: 3rem;
  border: 1px solid var(--product-line);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 18px 65px #173a6410;
}
.product-result .product-eyebrow {
  margin-top: 1.75rem;
}
.product-result h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}
.product-result p {
  margin: 1rem 0 1.75rem;
  color: var(--product-muted);
  font-size: 0.92rem;
  line-height: 1.85;
}
.product-result .product-button {
  width: 100%;
  margin: 0.4rem 0;
  min-height: 3.25rem;
}
.product-result-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 1px solid #cbe0f3;
  border-radius: 1rem;
  background: #edf5fe;
  color: #1759ad;
}
.product-result-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}
.product-result-icon.is-success {
  color: #247468;
  border-color: #c9e4dc;
  background: #edf8f4;
}
.product-result .product-footer {
  margin-bottom: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--product-line);
}
.product-admin {
  max-width: 760px;
}
:is(a, textarea):focus-visible {
  outline: 3px solid #e3a940;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .product-header-inner {
    padding-inline: 2rem;
  }
  .product-main {
    width: calc(100% - 4rem);
  }
  .product-workspace {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 760px) {
  .product-header-inner {
    min-height: 76px;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .product-brand-tag {
    display: none;
  }
  .product-toolbar {
    gap: 0.8rem;
  }
  .product-language {
    font-size: 0;
  }
  .product-language select {
    font-size: 0.78rem;
    max-width: 6.5rem;
  }
  .product-signout {
    font-size: 0.73rem;
  }
  .product-signout span {
    display: none;
  }
  .product-main {
    width: calc(100% - 2.5rem);
    margin: 2rem auto;
  }
  .product-heading {
    margin-bottom: 1.5rem;
  }
  .product-workspace {
    display: block;
  }
  .product-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }
  .product-nav a {
    padding: 0.65rem 0.7rem;
    font-size: 0.76rem;
    gap: 0.45rem;
  }
  .product-content > section,
  .product-card {
    padding: 1.25rem;
    border-radius: 0.8rem;
  }
  .product-content section section,
  .product-content fieldset {
    padding: 1rem;
  }
  .product-result-shell {
    min-height: calc(100svh - 76px);
    padding: 2rem 1.25rem;
  }
  .product-result {
    padding: 2rem 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-content button,
  .product-content input,
  .product-content select,
  .product-content textarea,
  .product-button {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.product-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-lock-state {
  padding: 0.3rem 0.65rem;
  border: 1px solid #dce5ef;
  border-radius: 2rem;
  color: #63758a;
  background: #f6f8fb;
  font-size: 0.7rem;
  font-weight: 700;
}
.product-lock-state.is-open {
  color: #247468;
  border-color: #c9e4dc;
  background: #edf8f4;
}
.product-content > div.product-content {
  scroll-margin-top: 2rem;
}

.product-lock-button {
  padding: 0.45rem 0.6rem;
  border: 1px solid #ffffff40;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
@media (max-width: 760px) {
  .product-lock-button {
    font-size: 0.72rem;
  }
  .product-toolbar:has(.product-lock-button) {
    flex-wrap: wrap;
  }
}

/* Inside the fence: filtered light, timber rails and quiet paper surfaces. */
:is(.vault-shell, .product-material-shell) {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-bottom: 1px;
  color: #303a35;
  background: #e9e7dc;
  --product-ink: #303a35;
  --product-muted: #666c61;
  --product-line: #cbcbbd;
  --product-blue: #476052;
  --page-hue: 210;
}
:is(.vault-shell, .product-material-shell)::before {
  content: '';
  position: fixed;
  inset: -32px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, #f9f3da70, transparent 45%, hsl(var(--page-hue) 25% 25% / 0.08)),
    repeating-linear-gradient(
      calc(42deg + var(--grain-angle, 12deg)),
      transparent 0 52px,
      hsl(var(--page-hue) 24% 24% / 0.035) 54px 68px,
      transparent 70px 112px
    ),
    repeating-linear-gradient(
      calc(-42deg - var(--grain-angle, 12deg)),
      transparent 0 52px,
      hsl(var(--page-hue) 24% 24% / 0.035) 54px 68px,
      transparent 70px 112px
    );
  animation: courtyard-light 36s ease-in-out infinite alternate;
}
[data-material-paused='true']::before {
  animation-play-state: paused;
}
@keyframes courtyard-light {
  from {
    transform: translate3d(-12px, -8px, 0);
    opacity: 0.65;
  }
  to {
    transform: translate3d(12px, 8px, 0);
    opacity: 1;
  }
}
:is(.vault-shell, .product-material-shell) > main,
:is(.vault-shell, .product-material-shell) > header {
  position: relative;
  z-index: 1;
}
:is(.vault-shell, .product-material-shell) .product-material {
  isolation: isolate;
  overflow: hidden;
  min-height: 138px;
  padding: 22px 0 38px;
  background: #07111c;
  border-bottom: 5px solid #3b4135;
  box-shadow: 0 12px 24px #343c2c24;
}
.product-material .gate-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.product-material .gate-background canvas {
  width: 100%;
  height: 100%;
}
.product-material .gate-fallback {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      calc(35deg + var(--grain-angle, 12deg)),
      transparent 0 calc(var(--grain-step, 22px) * 0.8),
      hsl(var(--page-hue) 42% 27%) calc(var(--grain-step, 22px) * 0.85)
        calc(var(--grain-step, 22px) * 1.1),
      #020811 calc(var(--grain-step, 22px) * 1.15) calc(var(--grain-step, 22px) * 1.25),
      transparent calc(var(--grain-step, 22px) * 1.3) calc(var(--grain-step, 22px) * 1.75)
    ),
    repeating-linear-gradient(
      calc(-35deg - var(--grain-angle, 12deg)),
      transparent 0 calc(var(--grain-step, 22px) * 0.8),
      hsl(var(--page-hue) 40% 20%) calc(var(--grain-step, 22px) * 0.85)
        calc(var(--grain-step, 22px) * 1.1),
      #020811 calc(var(--grain-step, 22px) * 1.15) calc(var(--grain-step, 22px) * 1.25),
      transparent calc(var(--grain-step, 22px) * 1.3) calc(var(--grain-step, 22px) * 1.75)
    ),
    #07111c;
}
.product-material .gate-background[data-renderer='canvas'] .gate-fallback {
  display: none;
}
.product-material::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07111c18, #121c1599);
}
:is(.vault-shell, .product-material-shell) .product-header-inner {
  width: min(100% - 6rem, 1240px);
  min-height: 72px;
  padding: 12px 24px;
  gap: 24px;
  border: 1px solid #85908866;
  border-bottom: 3px solid #131c17;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at var(--light-x, 25%) 0%, #e8e2c32a, transparent 80%),
    repeating-linear-gradient(1deg, transparent 0 4px, #e5e6cf08 5px, transparent 6px 17px),
    linear-gradient(180deg, #555c4e, #303d34 8%, #24322b 92%, #18221c);
  box-shadow:
    0 10px 20px #0006,
    inset 0 1px #e7e7c833;
}
:is(.vault-shell, .product-material-shell) .product-brand {
  gap: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: #d5dbcd;
}
.product-origin {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px 24px;
  border-left: 1px solid #d8ddc626;
  background: repeating-linear-gradient(
    var(--grain-angle, 12deg),
    hsl(var(--page-hue) 45% 65% / 0.08) 0 1px,
    transparent 1px var(--grain-step, 22px)
  );
  box-shadow: inset 0 2px hsl(var(--page-hue) 45% 65% / 0.6);
}
.product-origin span {
  font-size: 10px;
  color: #b8c3b4;
}
.product-origin strong {
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #f1f2e7;
  overflow-wrap: anywhere;
}
:is(.vault-shell, .product-material-shell) .product-toolbar {
  gap: 16px;
}
:is(.vault-shell, .product-material-shell) .product-language {
  font-size: 0;
  gap: 0;
}
:is(.vault-shell, .product-material-shell) .product-language select {
  font-size: 12px;
  border-radius: 2px;
  background: #202d26;
}
:is(.vault-shell, .product-material-shell) .product-signout {
  color: #dce2d5;
}
:is(.vault-shell, .product-material-shell) .product-lock-button {
  border-radius: 2px;
}
:is(.vault-shell, .product-material-shell) .product-main {
  margin-block: 48px 72px;
}
:is(.vault-shell, .product-material-shell) .product-heading {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #b9bba9;
  box-shadow: 0 1px #ffffff80;
}
:is(.vault-shell, .product-material-shell) .product-heading h1 {
  margin-top: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 450;
  letter-spacing: -0.025em;
  color: #344236;
}
:is(.vault-shell, .product-material-shell) .product-heading > p {
  font-size: 13px;
}
:is(.vault-shell, .product-material-shell) .product-workspace {
  gap: 36px;
}
:is(.vault-shell, .product-material-shell) .product-nav {
  gap: 0;
  padding: 10px;
  border: 1px solid #6d7664;
  border-bottom: 3px solid #26332a;
  border-radius: 2px;
  background:
    repeating-linear-gradient(2deg, #ebead207 0 1px, transparent 1px 9px),
    linear-gradient(150deg, #455341, #2b3d32);
  box-shadow:
    0 8px 16px #24372c20,
    inset 0 1px #e7e7cf33;
}
:is(.vault-shell, .product-material-shell) .product-nav a {
  min-height: 48px;
  border-radius: 1px;
  border-left: 2px solid transparent;
  color: #d0d8c8;
  font-weight: 400;
}
:is(.vault-shell, .product-material-shell) .product-nav a[aria-current='location'],
:is(.vault-shell, .product-material-shell) .product-nav a:hover {
  color: #fffdf0;
  border-left-color: hsl(var(--page-hue) 45% 70%);
  background: #e8e9c920;
}
:is(.vault-shell, .product-material-shell)
  :is(.product-content > section, .product-card, .product-result) {
  padding: 30px;
  border: 1px solid #c2c6b6;
  border-top: 3px solid #889279;
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, #605d2c02 0 1px, transparent 1px 4px),
    linear-gradient(115deg, #fffdf4, #f7f5eb);
  box-shadow:
    0 8px 22px #2e403312,
    inset 0 1px #fff;
}
:is(.vault-shell, .product-material-shell) .product-content h2 {
  color: #354739;
  font-weight: 550;
}
.vault-shell .product-details {
  border: 1px solid #c2c6b6;
  border-radius: 2px;
  background: linear-gradient(115deg, #fffdf4, #f7f5eb);
  box-shadow: 0 4px 14px #2e40330a;
  scroll-margin-top: 24px;
}
.vault-shell .product-details > summary {
  padding: 18px 22px;
  color: #354739;
  cursor: pointer;
  font-size: 15px;
  font-weight: 550;
}
.vault-shell .product-details > summary::marker {
  color: #7b866d;
}
.vault-shell .product-details > summary:hover {
  background: #697c4e0a;
}
.vault-shell .product-details > .product-content {
  padding: 0 16px 16px;
}
.vault-shell .product-details > .product-content > section {
  padding: 22px 8px;
  border: 0;
  border-top: 1px solid #c2c6b6;
  background: transparent;
  box-shadow: none;
}
.vault-shell .product-details-inline {
  margin: 22px 0;
  padding: 0 14px 14px;
  box-shadow: none;
}
.vault-shell .product-details-inline:not([open]) {
  padding-bottom: 0;
}
.vault-shell .product-details-inline > summary {
  margin: 0 -14px;
  padding: 14px;
  font-size: 13px;
}
:is(.vault-shell, .product-material-shell) .product-content h3 {
  color: #425545;
}
:is(.vault-shell, .product-material-shell) .product-content p {
  font-size: 13px;
  line-height: 1.85;
}
:is(.vault-shell, .product-material-shell) .product-content label {
  color: #485644;
  font-weight: 500;
}
:is(.vault-shell, .product-material-shell) .product-content section section {
  border-color: #d3d5c6;
  border-radius: 2px;
  background: #f0f0e6;
}
:is(.vault-shell, .product-material-shell)
  .product-content
  :is(fieldset, .product-release-client, section section > div) {
  border-color: #cbd0c1;
  border-radius: 2px;
  background: #faf9f0;
}
:is(.vault-shell, .product-material-shell)
  .product-content
  :is(input:not([type='checkbox']), select, textarea) {
  border-color: #b4bba8;
  border-radius: 2px;
  background: #fffdf6;
  box-shadow: inset 0 2px 4px #3e48300a;
}
:is(.vault-shell, .product-material-shell) .product-content :is(input, select, textarea):disabled {
  background: #eeeee5;
  color: #717966;
}
:is(.vault-shell, .product-material-shell)
  :is(.product-content button, .product-card button, .product-button) {
  border-radius: 2px;
  font-weight: 500;
  color: #405b46;
  border-color: #aab69d;
  background: #fcfbf2;
}
:is(.vault-shell, .product-material-shell)
  :is(.product-content button, .product-card button, .product-button):hover:not(:disabled) {
  background: #e8eddc;
  border-color: #738668;
}
:is(.vault-shell, .product-material-shell)
  :is(.product-content .product-primary, .product-card .product-primary, .product-primary) {
  border-color: #344a37;
  color: #fffdf0;
  background: linear-gradient(180deg, #617455, #3b5541);
  box-shadow:
    inset 0 1px #e1e6bb55,
    0 3px 6px #253e3020;
}
:is(.vault-shell, .product-material-shell)
  :is(
    .product-content .product-primary,
    .product-card .product-primary,
    .product-primary
  ):hover:not(:disabled) {
  color: #fffdf0;
  background: #344b38;
  border-color: #344a37;
}
:is(.vault-shell, .product-material-shell)
  :is(.product-content button, .product-card button, .product-button):disabled,
:is(.vault-shell, .product-material-shell)
  :is(.product-content button, .product-card button, .product-button):disabled:hover {
  background: #edeedf;
  color: #7b846f;
  border-color: #b7bfa9;
  box-shadow: none;
}
:is(.vault-shell, .product-material-shell) .product-content .product-danger {
  color: #963f32;
  border-color: #d3b4a4;
}
:is(.vault-shell, .product-material-shell)
  :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid #a47c38;
  outline-offset: 3px;
}
:is(.vault-shell, .product-material-shell) .product-content [role='status']:not(:empty) {
  border-radius: 2px;
  border-color: #c5d1ba;
  background: #edf0e2;
  color: #415c41;
}
:is(.vault-shell, .product-material-shell) .product-lock-state {
  border-radius: 2px;
  font-weight: 500;
  border-color: #c0c6b3;
  color: #69745d;
  background: #eeefe4;
}
:is(.vault-shell, .product-material-shell) .product-lock-state.is-open {
  color: #3c6048;
  border-color: #acc2a4;
  background: #e4eddc;
}
:is(.vault-shell, .product-material-shell) .product-content .product-draft-status {
  border-color: #798c65;
  background: #edf0df;
}
:is(.vault-shell, .product-material-shell) .product-result-shell {
  min-height: calc(100svh - 138px);
  background: none;
}
:is(.vault-shell, .product-material-shell) .product-result h1 {
  color: #344236;
  font-weight: 450;
  letter-spacing: -0.025em;
}
:is(.vault-shell, .product-material-shell) .product-result-icon {
  border-radius: 2px;
  color: #4a654b;
  background: #eaf0dd;
  border-color: #bacbb0;
}
:is(.vault-shell, .product-material-shell) .product-card code {
  border-radius: 2px;
  background: #eeefdf;
  color: #3f543e;
}
:is(.vault-shell, .product-material-shell) .product-card :is([role='status'], [role='alert']) {
  border-radius: 2px;
}
@media (max-width: 1000px) {
  :is(.vault-shell, .product-material-shell) .product-header-inner {
    width: calc(100% - 4rem);
  }
  :is(.vault-shell, .product-material-shell) .product-origin {
    padding-inline: 16px;
  }
}
@media (max-width: 760px) {
  :is(.vault-shell, .product-material-shell) .product-material {
    min-height: 156px;
    padding: 16px 0 24px;
  }
  :is(.vault-shell, .product-material-shell) .product-header-inner {
    width: calc(100% - 2rem);
    padding: 12px 16px;
    gap: 12px;
  }
  :is(.vault-shell, .product-material-shell) .product-brand {
    font-size: 13px;
  }
  :is(.vault-shell, .product-material-shell) .product-origin {
    flex: 1;
    padding-inline: 14px;
  }
  :is(.vault-shell, .product-material-shell) .product-toolbar {
    width: 100%;
    justify-content: flex-end;
    gap: 14px;
  }
  :is(.vault-shell, .product-material-shell) .product-main {
    margin-block: 28px 48px;
  }
  :is(.vault-shell, .product-material-shell) .product-heading {
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  :is(.vault-shell, .product-material-shell) .product-workspace {
    gap: 20px;
  }
  :is(.vault-shell, .product-material-shell) .product-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px;
    gap: 0;
  }
  :is(.vault-shell, .product-material-shell) .product-nav a {
    padding: 10px 12px;
    font-size: 12px;
  }
  :is(.vault-shell, .product-material-shell)
    :is(.product-content > section, .product-card, .product-result) {
    padding: 20px;
  }
  :is(.vault-shell, .product-material-shell) .product-content > section,
  :is(.vault-shell, .product-material-shell) .product-content > div.product-content,
  .vault-shell .product-details {
    scroll-margin-top: 140px;
  }
  :is(.vault-shell, .product-material-shell) .product-result-shell {
    min-height: calc(100svh - 156px);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.vault-shell, .product-material-shell)::before {
    animation: none;
    transform: none;
  }
}

/* Reveal the keyboard shortcut without adding text to the resting composition. */
.product-skip {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: max(1rem, env(safe-area-inset-left));
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1rem;
  border: 1px solid #725c37;
  border-radius: 0.5rem;
  color: #243a29;
  background: #fff6dc;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 2rem));
}
.product-skip:focus {
  transform: none;
}
/* Private archive search keeps the same quiet, tactile workspace surface. */
.thread-search-hits {
  list-style: none;
  padding: 0;
}
.thread-search-hits button {
  width: 100%;
  text-align: start;
  display: grid;
  gap: 0.4rem;
  margin-block: 0.5rem;
}
.thread-search-hits span {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.archive-message:focus,
#thread-title:focus {
  outline: 2px solid var(--product-accent, #8c8157);
  outline-offset: 4px;
}
.waitlist-entries {
  list-style: none;
  padding: 0;
}
.waitlist-entries li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--product-border, #d5dce4);
}
.waitlist-entries strong {
  overflow-wrap: anywhere;
}
.waitlist-entries button {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .waitlist-entries li {
    align-items: stretch;
    flex-direction: column;
  }
}
/* Owner source review uses the same shell and session lock as the workspace. */
.source-page .source-lead {
  max-width: 44rem;
  line-height: 1.8;
}
.source-page button {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.5rem;
  cursor: pointer;
}
.source-page button:disabled {
  opacity: 0.55;
  cursor: default;
}
.source-page button:focus-visible,
.source-page input:focus-visible {
  outline: 3px solid var(--product-blue);
  outline-offset: 3px;
}
.source-page .source-boundary {
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.7rem;
}
.source-page .source-toolbar,
.source-page .source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.source-page .source-card {
  margin: 1.2rem 0;
  padding: 1.2rem;
  border: 1px solid var(--product-line);
  border-radius: 0.8rem;
  background: #fffdf4;
}
.source-page .source-heading h2 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
}
.source-page dl div {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}
.source-page dt {
  flex: 0 0 8rem;
}
.source-page dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-page code,
.source-page strong {
  overflow-wrap: anywhere;
}
.source-page fieldset {
  border: 0;
  padding: 0;
}
.source-page .source-file {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.5rem;
  cursor: pointer;
}
.source-page .source-file input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.source-page .source-file span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.source-page .source-review-action {
  margin: 2rem 0;
}
.source-page .source-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.5rem;
  line-height: 1.6;
  background: #fffdf4;
  max-height: 32rem;
  overflow: auto;
}
.source-page pre:focus-visible {
  outline: 2px solid var(--product-blue);
  outline-offset: 3px;
}
@media (max-width: 420px) {
  .source-page dt {
    flex-basis: 5rem;
  }
}
.source-page .source-error {
  color: #92351e;
  padding: 1rem;
}
.preparation-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.source-page .preparation-list button {
  width: 100%;
  text-align: start;
  display: grid;
  gap: 0.5rem;
  overflow-wrap: anywhere;
}
.source-page .preparation-list button[aria-pressed='true'] {
  border-color: var(--product-ink);
}
.source-page .preparation-list span {
  font-size: 0.875rem;
}
@media (max-width: 600px) {
  .preparation-page dl div {
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.8rem 0;
  }
  .preparation-page dt {
    flex-basis: auto;
  }
}

/* Work keeps the action and its scope together; records remain available on demand. */
.vault-shell .source-page {
  max-width: 960px;
}
.vault-shell .source-page .product-heading {
  margin-block: 18px 24px;
  padding-bottom: 16px;
}
.vault-shell .source-page .product-heading h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.work-steps {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--product-muted);
  font-size: 0.875rem;
}
.work-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.work-step-number {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--product-line);
  border-radius: 50%;
}
.work-steps [aria-current='step'] {
  color: var(--product-ink);
  font-weight: 700;
}
.work-steps [aria-current='step'] .work-step-number {
  color: #fff;
  background: var(--product-ink);
  border-color: var(--product-ink);
}
.source-page .work-quiet-toolbar {
  justify-content: flex-end;
  gap: 0.5rem;
}
.source-page .work-quiet-toolbar p {
  margin: 0;
}
.source-page .work-quiet-toolbar p:first-child {
  margin-inline-end: auto;
}
.source-page .work-quiet-toolbar button,
.source-page .work-review-record > button {
  background: transparent;
  font-size: 0.875rem;
}
.source-page .work-current-list button {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.source-page .work-review-card {
  margin-block: 1rem;
  padding: 1.5rem;
}
.source-page .work-review-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-block: 0 0.5rem;
}
.work-state {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--product-line);
  border-radius: 2rem;
}
.work-copy-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block: 1.25rem;
}
.work-copy-summary p {
  margin-block: 0.35rem 0;
}
.source-page .work-destination {
  padding-block: 1rem;
  border-block: 1px solid var(--product-line);
  margin-block: 1rem;
}
.source-page .work-destination dl {
  margin-block: 0.75rem 0;
  font-size: 0.875rem;
}
.source-page .work-destination dt {
  flex-basis: 7rem;
  color: var(--product-muted);
}
.source-page .work-inspection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}
.source-page .work-inspection p {
  margin: 0;
}
.source-page .work-consent {
  padding-block: 1rem;
}
.source-page .work-acknowledge {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-block: 1rem;
  line-height: 1.6;
  cursor: pointer;
}
.work-acknowledge input {
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}
.source-page .work-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--product-ink);
  border-radius: 0.5rem;
  color: #fff;
  background: var(--product-ink);
  font-weight: 600;
  text-decoration: none;
}
.source-page .work-primary:disabled {
  color: var(--product-muted);
  background: #e9ece7;
  border-color: var(--product-line);
  opacity: 1;
}
.work-copy-notice,
.work-hint {
  color: var(--product-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.work-checked {
  color: #285e36;
  font-size: 0.875rem;
}
.source-page .work-details {
  margin-block: 0.8rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.work-details > summary {
  min-height: 44px;
  display: list-item;
  align-content: center;
  cursor: pointer;
  color: var(--product-muted);
}
.work-details > summary:focus-visible {
  outline: 3px solid var(--product-blue);
  outline-offset: 3px;
}
.source-page .work-review-record {
  border-top: 1px solid var(--product-line);
  padding-top: 1rem;
}
.source-page .work-help,
.source-page .work-history {
  border-top: 1px solid var(--product-line);
  padding-top: 0.5rem;
}
.source-page .work-code-selected {
  border-color: var(--product-ink);
  box-shadow: inset 3px 0 var(--product-ink);
}
.work-progress-state {
  font-size: 1.5rem;
  font-weight: 600;
}
.work-progress-card progress {
  display: block;
  width: 100%;
  accent-color: var(--product-ink);
}
@media (max-width: 600px) {
  .work-steps {
    gap: 0.75rem;
    justify-content: space-between;
    font-size: 0.75rem;
  }
  .work-step-number {
    width: 1.5rem;
    height: 1.5rem;
  }
  .source-page .work-current-list button {
    grid-template-columns: 1fr;
  }
  .source-page .work-review-card {
    padding: 1rem;
  }
  .work-copy-summary {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .source-page .work-destination dt {
    flex-basis: auto;
  }
  .source-page .work-primary {
    width: 100%;
  }
}

.source-page .work-code-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  cursor: pointer;
}
.work-code-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.source-page .work-reference-source > summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
.work-reference-source > summary::before {
  content: '+';
  font-size: 1.25rem;
}
.work-reference-source[open] > summary::before {
  content: '−';
}
.work-reference-source > summary span:last-child {
  margin-inline-start: auto;
  color: var(--product-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.vault-shell .source-page {
  margin-block: 24px 40px;
}
.source-page .work-quiet-toolbar .work-list-picker {
  flex: 1;
  min-width: 0;
}
.source-page .work-review-card .work-copy-summary {
  margin-block: 0.75rem;
}
.source-page .work-consent {
  padding-block: 0.25rem;
}

/* The product has two primary destinations; tools appear only for their task. */
.product-mvp .product-main {
  max-width: 900px;
}
.mvp-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--product-line);
}
.mvp-tabs button {
  padding: 0.9rem 1.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #53677e;
}
.mvp-tabs [aria-current='page'] {
  color: #174f91;
  border-bottom: 3px solid #174f91;
  font-weight: 700;
}
.mvp-empty {
  padding: 2rem;
}
.mvp-primary {
  display: inline-block;
  padding: 0.8rem 1rem;
  margin-block: 1rem;
  color: #fff;
  background: #1759ad;
  border-radius: 0.6rem;
  text-decoration: none;
}
.chat-wallet-request {
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 0.6rem;
}
.chat-wallet-request a {
  display: inline-block;
  margin-top: 0.5rem;
}
.vault-shell.product-mvp .mls-chat {
  padding: 0;
  border: 0;
}

/* Quiet, task-focused Wallet/Chat surface. */
.vault-shell.product-mvp {
  background: #f8f9fb;
  background-image: none;
  color: #16243a;
}
.vault-shell.product-mvp::before,
.vault-shell.product-mvp::after {
  display: none;
}
.product-mvp .product-header {
  background: #fff;
  color: #16243a;
  box-shadow: none;
  border-bottom: 1px solid #dce2e8;
}
.product-mvp .product-brand,
.product-mvp .product-brand-tag,
.product-mvp .product-origin,
.product-mvp .product-language,
.product-mvp .product-signout,
.product-mvp .product-toolbar select {
  color: #24415f;
}
.product-mvp .product-toolbar select {
  background: #fff;
  border-color: #ccd6e1;
}
.product-mvp .product-header-inner {
  background: none;
  box-shadow: none;
  border: none;
}
.product-mvp .product-main {
  padding-top: 1.5rem;
}
.product-mvp .product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-mvp .product-heading h1 {
  font-size: 1.3rem;
  margin: 0;
}
.vault-shell.product-mvp .product-card {
  background: #fff;
  border: 1px solid #dce2e8;
  box-shadow: none;
}
.vault-shell.product-mvp .mls-chat {
  background: #fff;
}
.product-mvp .mls-chat h1 {
  font-size: 1.35rem;
}
.product-mvp .mls-chat [role='status']:empty,
.product-mvp .mls-chat [role='alert']:empty {
  display: none;
}
.product-mvp .mls-chat form {
  position: static;
}
.product-mvp .mls-chat [aria-label='メッセージ履歴'],
.product-mvp .mls-chat [aria-label='メッセージ履歴'] ol {
  max-height: none;
  overflow: visible;
}
.product-mvp .product-card button {
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #24415f;
  cursor: pointer;
}
.product-mvp .product-card button.product-primary {
  background: #1759ad;
  color: #fff;
  border-color: #1759ad;
}
.product-mvp .product-card button:disabled {
  cursor: default;
  opacity: 0.65;
}

.product-mvp .product-origin strong {
  color: #24415f;
}
.product-mvp .product-origin span {
  color: #52677f;
}
.product-mvp .product-origin {
  background: none;
  border-color: #dce2e8;
}

.product-mvp .product-heading button {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #24415f;
  font: inherit;
  cursor: pointer;
}
