:root {
  --page: #bdbdbd;
  --shell-top: #d6d6d6;
  --shell-bottom: #bdbdbd;
  --panel: #000000;
  --panel-soft: #f8f8f8;
  --line: #0d47a1;
  --accent: #29b6f6;
  --accent-blue: #29b6f6;
  --blue-deep: #0d47a1;
  --text: #ffffff;
  --muted: #6f6f6f;
  --green: #29b6f6;
  --blue-text: #29b6f6;
  --gold: #29b6f6;
  --pending-yellow: #f2d45c;
  --pending-yellow-soft: rgba(255, 244, 190, 0.76);
  --detail-coral: #ff8f80;
  --detail-link: #8ee7ff;
  --detail-link-underline: #23c7f4;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --label-space: 24px;
  --field-height: 46px;
  --item-field-height: 82px;
  --awareness-height: var(--field-height);
  --retrieval-rail-width: 76px;
  --retrieval-rail-half: 38px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.landing-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(12px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 58%),
    linear-gradient(135deg, #d7d7d7, #b7b7b7 58%, #a9c8d7);
  border-top: 3px solid var(--line);
  overflow: auto;
}

.landing-gate[hidden] {
  display: none;
}

.entry-active .continuity-stage {
  display: none;
}

.landing-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px clamp(18px, 4vw, 44px);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

.landing-hero {
  display: grid;
  align-items: start;
  padding: clamp(8px, 1.6vw, 18px) clamp(18px, 6vw, 76px) 0;
  color: var(--panel-soft);
}

.landing-hero-copy {
  width: min(100%, 960px);
  display: grid;
  gap: 9px;
}

.landing-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 25;
  transform: translate(-50%, -50%);
  width: min(100%, 470px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.landing-panel[hidden] {
  display: none;
}

.identity-panel {
  width: min(calc(100% - 28px), 430px);
}

.landing-brand {
  color: var(--accent);
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}

.landing-wordmark {
  width: min(100%, 360px);
  height: auto;
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(232, 232, 232, 0.92);
}

.landing-tagline {
  color: var(--panel-soft);
  margin: -1px 0 4px;
  font-size: clamp(14px, 1.5vw, 18px);
}

.landing-title {
  margin: 0;
  color: var(--panel-soft);
  font-size: 22px;
  text-align: center;
}

.landing-headline {
  margin: 0;
  color: var(--panel-soft);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
}

.landing-copy,
.landing-status {
  margin: 0;
  color: var(--panel-soft);
  line-height: 1.3;
}

.landing-panel .landing-copy,
.landing-panel .landing-status {
  text-align: center;
}

.landing-billing-note,
.landing-explore-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.landing-entry-paths {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.landing-entry-path {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(41, 182, 246, 0.58);
  border-radius: 8px;
  color: var(--panel-soft);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  text-align: left;
}

.landing-entry-path.primary {
  border-color: var(--accent);
  color: #000000;
  background: var(--accent);
}

.landing-entry-path span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.landing-entry-path small {
  color: inherit;
  font-size: 12px;
  line-height: 1.3;
}

.landing-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-blue);
  background: var(--panel);
}

.account-field-label {
  margin-bottom: -8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.landing-actions {
  display: grid;
  gap: 10px;
}

.landing-choice-divider {
  height: 1px;
  margin: 2px 0 0;
  background: rgba(41, 182, 246, 0.24);
}

.landing-action {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--panel-soft);
  background: #07100a;
  cursor: pointer;
}

.landing-action.primary {
  color: #000000;
  background: var(--accent);
}

.landing-action.text-action {
  border-color: transparent;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.landing-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(41, 182, 246, 0.45);
  border-radius: 50%;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.provider-actions {
  display: grid;
  gap: 8px;
}

.provider-action {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.landing-demo-roll {
  width: min(calc(100% - 36px), 960px);
  justify-self: center;
  margin: 0;
}

.landing-roll-window {
  width: 100%;
  min-height: clamp(128px, 18vh, 190px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: clamp(14px, 2.4vw, 22px);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--panel-soft);
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: left;
}

.landing-roll-window:active {
  transform: translateY(1px);
}

.landing-roll-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-roll-item {
  align-self: center;
  color: var(--panel-soft);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
  white-space: pre-line;
}

.landing-roll-cue {
  justify-self: end;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.landing-feedback-note {
  width: min(calc(100% - 36px), 900px);
  justify-self: center;
  display: grid;
  gap: 6px;
  margin: -4px 0 0;
  padding: 12px 15px;
  border: 1px solid rgba(41, 182, 246, 0.42);
  border-radius: 8px;
  color: var(--detail-coral);
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  line-height: 1.35;
}

.landing-feedback-note h2,
.landing-feedback-note p {
  margin: 0;
}

.landing-feedback-note h2 {
  color: var(--panel-soft);
  font-size: 15px;
}

.landing-feedback-note a {
  color: var(--detail-coral);
  font-weight: 700;
}

.landing-alpha-note {
  width: min(100% - 36px, 900px);
  justify-self: center;
  display: grid;
  gap: 5px;
  margin: 0 0 clamp(18px, 3vw, 34px);
  padding: 10px 12px;
  border: 1px solid rgba(41, 182, 246, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.42);
  font-size: 10px;
  line-height: 1.35;
}

.landing-alpha-note p,
.landing-signup-note p {
  margin: 0;
}

.landing-signup-note {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(41, 182, 246, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.35;
}

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

.continuity-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

.shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--page);
  box-shadow: none;
}

.brand-strip {
  position: relative;
  z-index: 30;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 18px;
  background: var(--panel);
}

.brand-mark {
  width: min(100%, 760px);
  height: 78px;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark.invoking {
  filter: brightness(1.25);
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 74px;
  max-width: min(100%, 720px);
  max-height: none;
  object-fit: contain;
}

.my-memorolla-entry {
  position: absolute;
  top: 18px;
  right: clamp(14px, 2.6vw, 34px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.my-memorolla-button {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.my-memorolla-desktop {
  padding: 0 13px;
  font-weight: 700;
}

.my-memorolla-mobile {
  display: none;
  width: 38px;
  padding: 5px;
  align-items: center;
  justify-content: center;
}

.my-memorolla-mobile-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-view-exit {
  display: none;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0;
}

.page-view-exit:hover,
.page-view-exit:focus-visible {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.page-view-exit-label {
  display: block;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.my-memorolla-button:disabled,
.my-memorolla-button[aria-disabled="true"],
.shell[data-posture="candidate"] .my-memorolla-entry,
.shell[data-rollthru="active"] .my-memorolla-entry,
.shell[data-protected="true"] .my-memorolla-entry {
  display: none;
}

.shell[data-posture="page-view"] .my-memorolla-button {
  display: none;
}

.shell[data-posture="page-view"] .page-view-exit {
  display: flex;
}

.shell[data-rollthru="active"][data-rollthru-step="intro"] .brand-wordmark {
  overflow: hidden;
  max-width: 0;
  animation: rollthru-wordmark-reveal 1800ms ease forwards;
}

.shell[data-rollthru="active"][data-rollthru-step="intro"] .shoreline,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .item-step-row,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .detail-region,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .right-rail,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .pending-count,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="intro"] .credits {
  visibility: hidden;
}

@keyframes rollthru-wordmark-reveal {
  from {
    max-width: 0;
  }
  to {
    max-width: 238px;
  }
}

.continuity-body {
  width: min(calc(100% - 48px), 1280px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  justify-self: center;
  margin: 0 auto;
  padding: 14px 14px 34px;
  background: var(--page);
}

.shell[data-side="left"] .continuity-body {
  grid-template-columns: minmax(0, 1fr);
}

.shell[data-side="left"] .right-rail {
  grid-column: 1;
  grid-row: 1;
}

.shell[data-side="left"] .core-regions {
  grid-column: 2;
  grid-row: 1;
}

.core-regions {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
}

.shoreline-row {
  display: block;
}

.shoreline {
  position: relative;
  padding-bottom: calc(var(--awareness-height) + 4px);
}

.shoreline > * {
  position: relative;
  z-index: 1;
}

.item-step-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  grid-template-areas:
    "item roller";
  column-gap: 10px;
  row-gap: 0;
  align-items: start;
  min-height: 160px;
  padding: 12px 16px 14px 12px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.04));
}

.shell[data-posture="roll-match"]:not([data-roll-match-selecting="true"]) .shoreline {
  padding-bottom: 0;
}

.shell[data-posture="roll-match"]:not([data-roll-match-selecting="true"]) .shoreline > .field-row {
  display: none;
}

.item-step-row[hidden] {
  display: none !important;
}

.shell[data-side="left"] .item-step-row {
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-areas:
    "roller item";
}

.shell[data-side="left"] .item-region {
  grid-area: item;
}

.shell[data-side="left"] .roller {
  grid-area: roller;
  right: auto;
  left: 0;
}

.item-region {
  grid-area: item;
  min-width: 0;
  position: relative;
  padding-bottom: 38px;
}

.region-label {
  margin: 0 0 5px 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-shadow:
    1px 1px 0 var(--panel),
    0 0 4px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.item-region-label {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 0;
  margin-right: 0;
}

.item-label-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-add-button {
  width: 42px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: #ffffff;
  background: var(--blue-deep);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.local-add-button.active,
.local-add-button:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.34);
}

.item-count-label {
  position: absolute;
  left: calc(50% + 30px);
  transform: translateX(-50%);
  text-transform: none;
  color: #3f3f3f;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.detail-region .region-label {
  visibility: hidden;
  color: rgba(41, 182, 246, 0.32);
}

.detail-region .region-label:empty {
  display: none;
}

.shell[data-detail="visible"] .detail-region .region-label {
  visibility: visible;
  color: var(--accent);
}

.field-row {
  position: relative;
  min-height: var(--field-height);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.shoreline::before {
  content: "MEMO-ROLL";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  z-index: 0;
  color: rgba(238, 238, 238, 0.72);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.38),
    -1px -1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.item-step-row::after {
  content: "ITEM/STEP";
  position: absolute;
  right: 68px;
  bottom: 16px;
  left: 68px;
  z-index: 0;
  color: rgba(238, 238, 238, 0.72);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.38),
    -1px -1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.item-step-row:has(.awareness:not([hidden]):not(:empty))::after,
.shoreline:has(.name-awareness:not([hidden]):not(:empty))::before,
.shell[data-roll-match-result="none"] .shoreline::before {
  opacity: 0;
}

.shell[data-posture="roll-match"]:not([data-roll-match-selecting="true"]) .shoreline::before,
.shell[data-posture="retrieval"] .shoreline::before,
.shell[data-posture="retrieval"][data-detail="visible"] .item-step-row::after {
  display: none;
}

.continuity-input {
  min-width: 0;
  width: 100%;
  height: calc(var(--field-height) - 6px);
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  outline: none;
  color: var(--accent-blue);
  background: var(--panel);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continuity-input::placeholder {
  color: rgba(41, 182, 246, 0.68);
  opacity: 1;
}

.continuity-input:focus {
  box-shadow:
    inset 0 0 0 2px var(--accent-blue),
    0 0 12px rgba(42, 174, 255, 0.24);
}

.shell[data-posture="retrieval"] .continuity-input:focus {
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 16px rgba(41, 182, 246, 0.34);
}

.pill,
.position-pill {
  flex: 0 0 auto;
  min-width: 70px;
  margin-right: 4px;
  padding: 4px 22px 4px 10px;
  border: 0;
  border-radius: 999px;
  color: #252525;
  background-color: #f1f1f1;
  background-image:
    linear-gradient(45deg, transparent 50%, #2c2f2d 50%),
    linear-gradient(135deg, #2c2f2d 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 8px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font-size: 11px;
  text-align: center;
  appearance: none;
  cursor: pointer;
}

.visibility-select {
  text-align-last: center;
}

.search-results {
  margin-top: 8px;
  padding: 8px;
  border-radius: var(--radius);
  color: #07100a;
  background: var(--panel-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.recent-searches-popup {
  width: min(180px, calc(100% - 18px));
  margin: 0 0 0 4px;
  position: absolute;
  z-index: 7;
  color: #1d1d1d;
  background: rgba(238, 238, 238, 0.94);
  font-size: 13px;
  line-height: 1.15;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.recent-searches-popup[hidden],
.recent-searches-popup:empty {
  display: none;
}

.recent-searches-title,
.recent-search-entry {
  min-height: 21px;
  display: block;
  width: 100%;
  padding: 3px 9px;
  border: 1px solid #263238;
  border-radius: 0;
  text-align: left;
}

.recent-searches-title {
  font-weight: 700;
}

.recent-search-entry {
  margin-top: -1px;
  color: #1d1d1d;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.recent-search-entry:hover,
.recent-search-entry:focus {
  outline: none;
  background: rgba(41, 182, 246, 0.18);
}

.startup-shortcuts {
  width: min(100%, 980px);
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: minmax(160px, 184px) minmax(160px, 184px);
  justify-content: space-between;
  gap: 28px;
  color: #111111;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.startup-shortcuts[hidden] {
  display: none;
}

.startup-shortcuts[data-menu-count="1"] {
  grid-template-columns: minmax(160px, 184px);
  justify-content: center;
}

.startup-watermark {
  display: none;
  margin: clamp(24px, 5vw, 54px) auto 0;
  width: min(100%, 930px);
  color: rgba(0, 0, 0, 0.12);
  font-size: clamp(42px, 9vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.42),
    -1px -1px 0 rgba(0, 0, 0, 0.16);
}

.startup-shortcut-panel {
  min-height: 168px;
  border: 2px solid var(--line);
  background: rgba(248, 248, 248, 0.98);
}

.startup-shortcut-panel h2 {
  margin: 0;
  padding: 6px 9px 5px;
  border-bottom: 2px solid var(--accent);
  color: #111111;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 400;
}

.startup-shortcut-list {
  display: grid;
}

.startup-shortcut-entry {
  min-height: 24px;
  padding: 4px 9px;
  border: 0;
  border-top: 1px solid rgba(13, 71, 161, 0.24);
  color: #111111;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.startup-shortcut-entry:hover,
.startup-shortcut-entry:focus {
  outline: none;
  background: rgba(41, 182, 246, 0.18);
}

.startup-shortcut-entry:first-child {
  border-top: 0;
}

.shoreline-controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin: 0 0 9px;
}

.control-pair {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flow-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shell[data-posture="retrieval"][data-side="right"] .flow-controls {
  left: calc(50% + var(--retrieval-rail-half));
}

.shell[data-posture="retrieval"][data-side="left"] .flow-controls {
  left: calc(50% - var(--retrieval-rail-half));
}

.authority-controls {
  position: relative;
  margin-left: auto;
}

.shell[data-posture="roll-match"] .shoreline-controls {
  justify-content: flex-start;
  gap: 40px;
}

.fixed-control {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: #000000;
  background: var(--panel-soft);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.fixed-control[hidden] {
  display: none;
}

.search-glyph {
  width: 31px;
  height: 31px;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.search-glyph-lens,
.search-glyph-handle {
  fill: none;
  stroke: #37baf4;
  stroke-width: 4.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.search-glyph-lens {
  stroke-linecap: butt;
}

.save-glyph {
  width: 23px;
  height: 13px;
  display: block;
  border-left: 4px solid #07100a;
  border-bottom: 4px solid #07100a;
  transform: translateY(-2px) rotate(-45deg);
}

.mark-control {
  color: #000000;
  background: var(--panel-soft);
}

.continuity-anchor-glyph,
.mark-glyph {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
}

.continuity-anchor-glyph {
  overflow: visible;
}

.anchor-outer,
.anchor-center {
  vector-effect: non-scaling-stroke;
}

.anchor-outer {
  fill: none;
  stroke: #37baf4;
  stroke-width: 4.2;
  stroke-linecap: butt;
}

.anchor-center-solid {
  fill: #0d47a1;
  stroke: none;
}

.anchor-center-open {
  display: none;
  fill: var(--panel-soft);
  stroke: #0d47a1;
  stroke-width: 2.4;
}

.anchor-outer-open {
  display: none;
}

.mark-control[data-anchor-posture="other"] .anchor-center-solid {
  display: none;
}

.mark-control[data-anchor-posture="other"] .anchor-center-open {
  display: block;
}

.mark-control[data-anchor-dirty="true"] .anchor-outer-closed {
  display: none;
}

.mark-control[data-anchor-dirty="true"] .anchor-outer-open {
  display: block;
}

.commit-control {
  color: #000000;
  background: var(--accent);
  box-shadow:
    0 0 12px rgba(41, 182, 246, 0.34),
    inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.drop-control {
  color: rgba(241, 242, 236, 0.68);
  background: var(--panel);
  border-color: var(--line);
}

.drop-control.drop-confirming {
  color: #07100a;
  background: var(--pending-yellow);
  border-color: #07100a;
  box-shadow:
    0 0 0 2px rgba(7, 16, 10, 0.34),
    0 0 0 4px rgba(242, 212, 92, 0.44),
    inset 3px 3px 0 rgba(0, 0, 0, 0.24);
}

.deny-control {
  width: 42px;
  color: #9b1c1c;
  background: var(--panel-soft);
  border-color: var(--line);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  text-align: center;
}

.candidate-skip-control {
  width: 52px;
  color: #07100a;
  background: var(--accent-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.drop-roll-glyph {
  position: relative;
  width: 25px;
  height: 25px;
  display: block;
}

.drop-arrow {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.drop-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.drop-cradle {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 3px;
  height: 11px;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 12px 12px;
}

.drop-cradle::before,
.drop-cradle::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.drop-cradle::before {
  left: 0;
  transform: rotate(-15deg);
  transform-origin: bottom center;
}

.drop-cradle::after {
  right: 0;
  transform: rotate(15deg);
  transform-origin: bottom center;
}

.drop-roll-glyph.confirming .drop-arrow,
.drop-roll-glyph.confirming .drop-arrow::after,
.drop-roll-glyph.confirming .drop-cradle,
.drop-roll-glyph.confirming .drop-cradle::before,
.drop-roll-glyph.confirming .drop-cradle::after {
  filter: none;
}

.drop-question {
  position: absolute;
  right: -6px;
  top: -5px;
  color: #07100a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.operations-action {
  color: #000000;
  background: var(--panel-soft);
}

.flow-action {
  color: #ffffff;
  background: var(--blue-deep);
}

.local-detail-button {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #000000;
  background: var(--panel-soft);
}

.particulars-glyph {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--detail-coral);
  pointer-events: none;
}

.particulars-base-glyph {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.particulars-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 2px #ffffff,
    0 0 5px rgba(255, 143, 128, 0.42);
}

.local-detail-button.has-detail-cue .particulars-letter,
.roll-match-particulars-button.has-detail-cue .particulars-letter {
  display: block;
}

.show-items-button {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #000000;
  background: var(--panel-soft);
}

.show-memoroll-glyph {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.list-glyph {
  width: 26px;
  display: grid;
  gap: 4px;
}

.list-glyph span {
  position: relative;
  display: block;
  height: 4px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--blue-deep);
}

.list-glyph span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-deep);
}

.list-glyph span:nth-child(2),
.list-glyph span:nth-child(2)::before {
  background: #7d858b;
}

.list-glyph span:nth-child(3),
.list-glyph span:nth-child(3)::before {
  background: var(--accent);
}

.fixed-control.active,
.show-items-button.active,
.fixed-control:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.fixed-control.unavailable {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.fixed-control.unavailable:active {
  transform: none;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.hover-guide {
  position: fixed;
  z-index: 40;
  max-width: min(280px, calc(100vw - 24px));
  padding: 7px 9px;
  border: 1px solid rgba(41, 182, 246, 0.72);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  transform: translate(-50%, 0);
}

.hover-guide[hidden] {
  display: none;
}

.hover-guide-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.hover-guide-detail {
  display: none;
  margin-top: 4px;
  color: #eeeeee;
  font-size: 12px;
  line-height: 1.25;
}

.hover-guide[data-expanded="true"] .hover-guide-detail {
  display: block;
}

.hover-guide[data-legend="true"] {
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  max-height: min(84dvh, 680px);
  overflow: auto;
  padding: 12px 14px;
  transform: translate(-50%, -50%);
}

.hover-guide[data-legend="true"] .hover-guide-title {
  display: none;
}

.hover-guide[data-legend="true"] .hover-guide-detail {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.hover-guide-entry-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.hover-guide-entry-glyph {
  min-width: 22px;
  color: #eeeeee;
  font-weight: 800;
  text-align: center;
}

.hover-guide-entry-detail {
  margin-top: 2px;
  color: #eeeeee;
  font-size: 11.5px;
  line-height: 1.2;
}

.search-result,
.result-button {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  color: #07100a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child,
.result-button:last-child {
  border-bottom: 0;
}

.retrieval-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 6px;
  padding: 0;
  border: 1px solid rgba(13, 71, 161, 0.58);
  border-radius: 8px;
  color: #f1f1f1;
  background: var(--panel);
  line-height: 1.28;
  white-space: normal;
  overflow: hidden;
}

.retrieval-select-row:last-child {
  margin-bottom: 0;
}

.retrieval-select-row.active-reorder-row {
  border-color: rgba(13, 71, 161, 0.74);
  background: var(--panel);
  box-shadow:
    inset 4px 0 0 var(--accent-blue),
    0 0 0 1px rgba(41, 182, 246, 0.22);
}

.retrieval-select-row.output-selected {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(41, 182, 246, 0.5),
    0 0 0 1px rgba(41, 182, 246, 0.32);
}

.retrieval-open-button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  white-space: normal;
}

.retrieval-open-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.circumpunkt-control {
  align-self: center;
  justify-self: center;
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 3px solid #37baf4;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.circumpunkt-control::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #1559d6;
  opacity: 0;
}

.circumpunkt-control.selected::after,
.circumpunkt-control[aria-pressed="true"]::after {
  opacity: 1;
}

.circumpunkt-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.circumpunkt-glyph {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 3px solid #37baf4;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}

.circumpunkt-glyph::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #1559d6;
  opacity: 0;
}

.circumpunkt-glyph.selected::after {
  opacity: 1;
}

.retrieval-match-roll,
.retrieval-match-item,
.retrieval-match-particulars {
  overflow-wrap: anywhere;
}

.retrieval-match-roll {
  color: #13c7ff;
  font-weight: 700;
}

.retrieval-match-item {
  color: #f1f1f1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.64);
}

.retrieval-match-particulars {
  color: #d85a55;
}

.retrieval-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: #07100a;
  font-weight: 700;
  cursor: pointer;
}

.share-prompt-panel {
  align-content: start;
}

.share-prompt,
.archive-prompt,
.import-summary {
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
  color: var(--blue-text);
}

.archive-prompt-panel,
.import-summary-panel {
  align-content: start;
}

.share-prompt-title,
.archive-prompt-title,
.import-summary-title {
  color: var(--green);
  font-weight: 700;
}

.share-prompt-targets,
.share-prompt-note,
.archive-prompt-copy,
.archive-prompt-status,
.import-summary-row,
.import-summary-notes {
  color: #07100a;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.share-prompt-note {
  padding: 8px 10px;
  border: 1px solid rgba(13, 71, 161, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.import-summary-rows {
  display: grid;
  gap: 8px;
}

.import-summary-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 9px;
  border: 1px solid rgba(13, 71, 161, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
}

.import-summary-row strong {
  color: var(--blue-deep);
  font-size: 20px;
  line-height: 1;
}

.import-summary-row small {
  grid-column: 2;
  color: #3d423d;
}

.import-summary-notes {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.share-prompt-select,
.share-prompt-input,
.archive-prompt-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: #07100a;
  background: var(--panel-soft);
}

.share-prompt-actions,
.archive-prompt-actions,
.import-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.archive-prompt-actions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.share-prompt-action,
.archive-prompt-action,
.import-summary-action {
  min-height: 40px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--panel-soft);
  background: var(--panel);
  cursor: pointer;
}

.share-prompt-action.primary,
.archive-prompt-action.primary,
.import-summary-action.primary {
  color: #07100a;
  background: var(--green);
}

.import-summary-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.archive-prompt-action.copied {
  color: #07100a;
  background: var(--accent);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.24);
}

.item-window {
  align-items: stretch;
  min-height: var(--field-height);
  height: auto;
  position: relative;
  z-index: 1;
}

.item-text {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  display: block;
  min-height: calc(var(--field-height) - 2px);
  max-height: calc((1.25em * 4) + 20px);
  height: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #eeeeee;
  background: var(--panel);
  line-height: 1.25;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
}

.item-text::-webkit-scrollbar {
  display: none;
}

.item-text:focus {
  outline: 2px solid rgba(41, 182, 246, 0.72);
  outline-offset: -3px;
}

.item-side-controls {
  flex: 0 0 clamp(96px, 10vw, 132px);
  min-width: 96px;
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
  align-self: center;
}

.item-side-controls .position-pill {
  width: 72px;
  margin-right: 0;
}

.detail-cue {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  pointer-events: none;
  white-space: nowrap;
  text-shadow:
    1px 1px 0 #000000,
    0 0 6px rgba(41, 182, 246, 0.75);
}

.item-step-row.roll-match-active .item-window,
.roll-match-mate-row .item-window {
  min-height: var(--field-height);
}

.item-step-row.roll-match-active,
.roll-match-mate-row {
  background:
    linear-gradient(180deg, rgba(41, 182, 246, 0.72), rgba(41, 182, 246, 0.48));
}

.item-step-row.roll-match-active .item-count-label {
  color: #3f3f3f;
  text-shadow: none;
}

.item-step-row.roll-match-active.roll-match-no-match .item-window,
.shell[data-roll-match-result="none"] .item-window {
  display: none;
}

.item-step-row.roll-match-active .roller {
  align-self: stretch;
  height: auto;
  margin-top: 0;
}

.item-step-row.roll-match-active.roll-match-no-match .roller,
.shell[data-roll-match-result="none"] .roller {
  display: none;
}

.shell[data-side="left"] .item-step-row.roll-match-active .roller {
  justify-self: start;
}

.item-step-row.roll-match-active.roll-match-no-match,
.shell[data-roll-match-result="none"] .item-step-row {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "item";
  min-height: var(--field-height);
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.item-step-row.roll-match-active.roll-match-no-match .item-region,
.shell[data-roll-match-result="none"] .item-region {
  padding-bottom: 0;
}

.item-step-row.roll-match-active.roll-match-no-match .item-region-label,
.shell[data-roll-match-result="none"] .item-region-label {
  display: none;
}

.item-step-row.roll-match-active .item-side-controls {
  display: none;
}

.item-step-row.roll-match-active .item-text,
.roll-match-mate-row .item-text {
  max-height: none;
  color: #eeeeee;
  overflow: hidden;
}

.item-step-row.roll-match-active.roll-match-no-match .item-text {
  min-height: calc(var(--field-height) - 2px);
  display: flex;
  align-items: center;
}

.roll-match-mate-row {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "item";
  width: calc(100% - 60px);
  margin-top: 10px;
}

.shell[data-side="left"] .roll-match-mate-row {
  margin-left: 60px;
}

.item-step-row.roll-match-active .local-detail-button,
.roll-match-mate-row .local-detail-button {
  color: #d8d8d8;
  background: #9aa1a5;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.16);
}

.item-step-row.roll-match-active .local-detail-button.active,
.roll-match-mate-row .local-detail-button.active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--blue-deep);
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(55, 186, 244, 0.42);
}

.item-step-row.roll-match-active .particulars-glyph,
.roll-match-mate-row .particulars-glyph {
  color: rgba(255, 143, 128, 0.62);
}

.item-step-row.roll-match-active .local-detail-button.active .particulars-glyph,
.roll-match-mate-row .local-detail-button.active .particulars-glyph {
  color: var(--detail-coral);
}

.item-step-row.roll-match-active .particulars-base-glyph,
.roll-match-mate-row .particulars-base-glyph {
  opacity: 0.72;
  filter: grayscale(1) brightness(1.25);
}

.item-step-row.roll-match-active .local-detail-button.active .particulars-base-glyph,
.roll-match-mate-row .local-detail-button.active .particulars-base-glyph {
  opacity: 1;
  filter: none;
}

.roll-match-cluster {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-blue);
  background: transparent;
  box-shadow: none;
}

.roll-match-cluster.has-match-particulars-button {
  padding-top: 0;
}

.roll-match-particulars-button {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 36px;
  height: 36px;
}

.roll-match-mate-particulars-slot .roll-match-particulars-button {
  position: relative;
  top: auto;
  left: auto;
  width: 42px;
  height: 38px;
}

.roll-match-cluster.has-match-particulars-button .roll-match-roll-title {
  min-height: 36px;
  padding-left: 44px;
}

.roll-match-roll-title {
  margin-bottom: 5px;
  color: rgba(245, 245, 245, 0.82);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.roll-match-item-text {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.roll-match-tokens {
  margin-top: 7px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.roll-match-detail {
  white-space: pre-wrap;
}

.editable-continuity {
  outline: 2px solid rgba(41, 182, 246, 0.78);
  outline-offset: -2px;
  cursor: text;
}

.editable-continuity:empty::before {
  content: attr(data-placeholder);
  color: rgba(41, 182, 246, 0.58);
}

.shell[data-rollthru="active"] .field-row,
.shell[data-rollthru="active"] .item-window,
.shell[data-rollthru="active"] .detail-panel,
.shell[data-rollthru="active"] .brand-mark,
.shell[data-rollthru="active"] .pending-count,
.shell[data-rollthru="active"] .candidate-count,
.shell[data-rollthru="active"] .credits {
  transition: box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.shell[data-rollthru="active"][data-rollthru-step="intro"] .brand-mark {
  filter: brightness(1.25);
}

.shell[data-rollthru="active"][data-rollthru-step="memo"] .shoreline .field-row,
.shell[data-rollthru="active"][data-rollthru-step="item-1"] .item-window,
.shell[data-rollthru="active"][data-rollthru-step="item-2"] .item-window,
.shell[data-rollthru="active"][data-rollthru-step="detail"] .detail-panel {
  box-shadow:
    0 0 0 2px rgba(41, 182, 246, 0.72),
    0 0 14px rgba(41, 182, 246, 0.34);
}

.shell[data-rollthru="active"][data-rollthru-step="traversal"] .roller,
.shell[data-rollthru="active"][data-rollthru-step="traversal"][data-rollthru-traversal-ready="true"] .local-detail-button,
.shell[data-rollthru="active"][data-rollthru-step="detail"] .local-detail-button,
.shell[data-rollthru="active"][data-rollthru-step="detail"] .mark-control {
  filter: brightness(1.16);
  box-shadow:
    0 0 0 2px rgba(41, 182, 246, 0.72),
    0 0 14px rgba(41, 182, 246, 0.34);
}

.shell[data-rollthru="active"][data-rollthru-step="traversal"][data-rollthru-traversal-ready="true"] .local-detail-button,
.shell[data-rollthru="active"][data-rollthru-step="detail"] .mark-control {
  border-color: var(--accent-blue);
  filter: brightness(1.22);
  box-shadow:
    0 0 0 3px rgba(41, 182, 246, 0.9),
    0 0 0 7px rgba(41, 182, 246, 0.24),
    0 0 24px rgba(41, 182, 246, 0.68),
    inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  animation: rollthru-target-attention 900ms ease-in-out infinite alternate;
}

@keyframes rollthru-target-attention {
  from {
    box-shadow:
      0 0 0 3px rgba(41, 182, 246, 0.78),
      0 0 0 6px rgba(41, 182, 246, 0.18),
      0 0 18px rgba(41, 182, 246, 0.48),
      inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  }
  to {
    box-shadow:
      0 0 0 4px rgba(41, 182, 246, 0.98),
      0 0 0 9px rgba(41, 182, 246, 0.32),
      0 0 30px rgba(41, 182, 246, 0.78),
      inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  }
}

.rollthru-logo-glow {
  filter: brightness(1.14);
  border-radius: var(--radius);
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(41, 182, 246, 0.78),
    0 0 0 5px rgba(255, 143, 128, 0.22),
    0 0 20px rgba(255, 143, 128, 0.44);
  animation: rollthru-logo-attention 1200ms ease-in-out infinite alternate;
}

@keyframes rollthru-logo-attention {
  from {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(41, 182, 246, 0.68),
      0 0 0 4px rgba(255, 143, 128, 0.18),
      0 0 14px rgba(255, 143, 128, 0.34);
  }
  to {
    transform: scale(1.025);
    box-shadow:
      0 0 0 2px rgba(41, 182, 246, 0.9),
      0 0 0 6px rgba(255, 143, 128, 0.28),
      0 0 24px rgba(255, 143, 128, 0.5);
  }
}

.create-preview:empty::before {
  content: attr(data-placeholder);
  color: rgba(41, 182, 246, 0.58);
}

.roll-only-placeholder:empty::before {
  content: attr(data-placeholder);
  color: rgba(41, 182, 246, 0.58);
}

.position-pill {
  align-self: center;
  width: 72px;
  min-width: 72px;
  line-height: 1.2;
  text-align-last: center;
}

.item-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: var(--accent-blue);
}

.awareness {
  min-height: var(--awareness-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  color: #07100a;
  background: #eeeeee;
  background-color: #eeeeee;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 16px;
  line-height: 1.25;
  border: 1px solid rgba(41, 182, 246, 0.72);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 1;
}

.awareness[hidden],
.awareness:empty {
  display: none;
}

.name-awareness {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  min-height: var(--awareness-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #07100a;
  background: #eeeeee;
  background-color: #eeeeee;
  border: 1px solid rgba(41, 182, 246, 0.72);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 16px;
  line-height: 1.25;
  padding: 7px 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.name-awareness.staged-awareness {
  min-height: calc(var(--awareness-height) * 2.45);
  flex-direction: column;
  gap: 8px;
}

.staged-awareness-line {
  max-width: min(100%, 920px);
}

.staged-awareness-addition[hidden] {
  display: block;
  visibility: hidden;
}

.shell[data-roll-match-selecting="true"] .name-awareness {
  min-height: var(--awareness-height);
  padding: 0 10px;
  line-height: 1.2;
}

.shell[data-rollthru="active"] .name-awareness {
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  justify-content: flex-start;
  line-height: 1.25;
  text-align: left;
}

.shell[data-rollthru="active"] .awareness {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 12px;
  justify-content: flex-start;
  line-height: 1.25;
  text-align: left;
}

.name-awareness[hidden],
.name-awareness:empty {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.shell[data-rollthru="active"] .name-awareness {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 0;
}

.shell[data-rollthru="active"] .name-awareness[hidden],
.shell[data-rollthru="active"] .name-awareness:empty {
  display: none;
}

.item-region .awareness,
.shoreline .name-awareness {
  color: #07100a;
  background-color: #eeeeee;
}

.detail-region {
  min-width: 0;
  min-height: 260px;
  position: relative;
  margin-top: 0;
  padding: 0 0 92px;
}

.detail-panel {
  position: relative;
  max-width: 100%;
  width: 100%;
  height: min(56vh, 520px);
  padding: 18px;
  border: 2px solid var(--accent-blue);
  border-radius: 34px;
  color: var(--detail-coral);
  background: var(--panel);
  line-height: 1.45;
  overflow: auto;
  scrollbar-width: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  text-shadow: 0 0 4px rgba(41, 182, 246, 0.18);
}

.detail-panel a {
  color: var(--detail-link);
  text-decoration-color: var(--detail-link-underline);
  text-underline-offset: 3px;
}

.detail-panel::-webkit-scrollbar {
  display: none;
}

.detail-page-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  pointer-events: none;
}

.detail-page-dots[hidden],
.detail-page-dots:empty {
  display: none;
}

.detail-page-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(13, 71, 161, 0.38);
}

.detail-page-dot.active {
  background: var(--accent-blue);
}

.shell[data-protected="true"] .item-window::after,
.shell[data-protected="true"] .detail-region::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 71, 161, 0.35);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(3, 8, 5, 0.96),
      rgba(3, 8, 5, 0.96) 10px,
      rgba(10, 20, 12, 0.96) 10px,
      rgba(10, 20, 12, 0.96) 20px
    );
}

.shell[data-protected="true"] .shoreline-controls,
.shell[data-protected="true"] .right-rail,
.shell[data-protected="true"] .roller,
.shell[data-protected="true"] .item-region-label,
.shell[data-protected="true"] .item-side-controls,
.shell[data-protected="true"] .pending-count,
.shell[data-protected="true"] .candidate-count,
.shell[data-protected="true"] .credits {
  opacity: 0.42;
  pointer-events: none;
}

.shell[data-protected="true"] .local-add-button,
.shell[data-protected="true"] .local-detail-button {
  filter: grayscale(0.45) brightness(0.72);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.34);
}

.protected-prompt {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

.protected-prompt[hidden] {
  display: none;
}

.protected-inner {
  display: grid;
  gap: 8px;
  width: min(100%, 320px);
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--panel-soft);
  background: var(--panel);
  box-shadow: 0 12px 36px var(--shadow);
  pointer-events: auto;
}

.protected-title {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.protected-copy,
.protected-status {
  color: var(--panel-soft);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

.protected-status {
  color: var(--accent);
  font-size: 12px;
}

.protected-input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--panel);
}

.protected-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.protected-action {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #07100a;
  background: var(--accent);
  cursor: pointer;
}

.detail-link {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail-link:hover,
.detail-link:focus-visible {
  color: var(--accent);
}

.reorder-surface {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
}

.core-regions:has(.detail-panel.reorder-surface) {
  gap: 6px;
}

.core-regions:has(.detail-panel.reorder-surface) .shoreline {
  padding-bottom: 34px;
}

.detail-region:has(.detail-panel.reorder-surface) {
  min-height: 0;
  padding-bottom: 0;
}

.detail-panel.reorder-surface {
  height: auto;
  min-height: 96px;
  max-height: min(52vh, 460px);
  padding: 16px;
}

.reorder-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px 34px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(13, 71, 161, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  cursor: grab;
}

.reorder-row.dragging {
  opacity: 0.55;
}

.reorder-row.remove-confirming {
  border-color: rgba(255, 203, 36, 0.9);
  background: var(--pending-yellow-soft);
}

.active-reorder-row {
  border-color: rgba(13, 71, 161, 0.42);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 2px 0 0 rgba(41, 182, 246, 0.72);
}

.reorder-number {
  color: #3d423d;
}

.reorder-text {
  min-width: 0;
  color: rgba(7, 16, 10, 0.88);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reorder-remove {
  justify-self: end;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin-right: 0;
  border: 1px solid rgba(7, 16, 10, 0.16);
  border-radius: 5px;
  color: rgba(7, 16, 10, 0.56);
  background: rgba(241, 242, 236, 0.42);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.68;
  cursor: pointer;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.reorder-remove:hover,
.reorder-remove:focus-visible {
  color: rgba(7, 16, 10, 0.9);
  background: rgba(241, 242, 236, 0.78);
  opacity: 1;
}

.reorder-remove:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.remove-confirming .reorder-remove {
  color: #07100a;
  width: 31px;
  background: var(--pending-yellow);
  opacity: 1;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.trash-icon {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 10px;
  border: 1.25px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.trash-icon::before {
  content: "";
  position: absolute;
  left: -1.75px;
  top: -3.5px;
  width: 11px;
  height: 1.25px;
  border-radius: 999px;
  background: currentColor;
}

.trash-icon::after {
  content: "";
  position: absolute;
  left: 2.75px;
  top: -5.25px;
  width: 3.5px;
  height: 1.75px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.trash-confirm-mark {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.reorder-empty {
  padding: 16px 14px;
  color: #3d423d;
}

.reorder-handle {
  display: grid;
  gap: 4px;
  justify-items: stretch;
  padding: 7px 5px;
  border-radius: 6px;
  background: rgba(7, 16, 10, 0.12);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.reorder-handle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(241, 242, 236, 0.68);
  box-shadow: 0 1px 0 rgba(7, 16, 10, 0.12);
}

.reorder-handle:hover,
.reorder-handle:focus-visible {
  background: rgba(7, 16, 10, 0.2);
}

.reorder-handle:hover span,
.reorder-handle:focus-visible span {
  background: rgba(241, 242, 236, 0.86);
}

.right-rail {
  display: none;
  grid-template-rows: auto;
  gap: 10px;
  align-items: start;
  justify-items: center;
  padding-top: var(--label-space);
}

.tray {
  width: 48px;
  display: grid;
  gap: 8px;
  padding: 5px;
  border-radius: 8px;
  background: var(--panel);
}

.tray:empty {
  display: none;
}

.tray[hidden] {
  display: none;
}

#iconTray {
  display: none;
}

.retrieval-scope-mobile-slot {
  display: none;
}

.shell[data-posture="retrieval"] .retrieval-scope-mobile-slot {
  display: block;
}

.retrieval-scope-rail {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #eeeeee;
}

.retrieval-scope-rail[hidden] {
  display: none;
}

.retrieval-scope-button {
  flex: 0 0 auto;
  width: clamp(80px, 16vw, 126px);
  min-height: 26px;
  border: 1px solid rgba(13, 71, 161, 0.42);
  border-radius: 3px;
  color: #07100a;
  background: var(--panel-soft);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.14);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.retrieval-scope-button.active,
.retrieval-scope-button:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.28);
  background: var(--accent);
}

.tray-capsule {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--tray-menu-left, 50%);
  z-index: 12;
  width: min(156px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(41, 182, 246, 0.55);
  transform: translateX(-50%);
}

.shell[data-side="left"] .tray-capsule {
  left: var(--tray-menu-left, 50%);
}

.tray-capsule[hidden] {
  display: none;
}

.capsule-action {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 3px 2px;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: #000000;
  background: var(--panel-soft);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.capsule-action.active,
.capsule-action:active {
  transform: translateY(1px);
  color: var(--panel-soft);
  background: var(--accent-blue);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.35), 0 0 10px rgba(41, 182, 246, 0.34);
}

.flow-controls .transform-identity {
  width: min(156px, calc(100vw - 24px));
  padding-inline: 6px;
  white-space: nowrap;
}

.flow-controls .transform-label {
  min-height: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #000000;
  background: transparent;
  box-shadow: none;
  cursor: default;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.shell[data-posture="candidate"] .flow-controls .transform-identity {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shell[data-posture="candidate"] .flow-controls .transform-identity.active,
.shell[data-posture="candidate"] .flow-controls .transform-identity:active {
  transform: translateX(-50%) translateY(1px);
}

.capsule-action.unavailable {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.capsule-action.unavailable:active {
  transform: none;
  color: #000000;
  background: var(--panel-soft);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.tray-button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: #000000;
  background: var(--accent);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.create-action {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  background: var(--blue-deep);
}

.create-action.drop-control {
  color: rgba(241, 242, 236, 0.68);
  background: var(--panel);
}

.create-action.deny-control {
  color: #9b1c1c;
  background: var(--panel-soft);
  border-color: var(--line);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.tray-button:nth-child(2) {
  background: var(--accent);
}

.tray-button:nth-child(3) {
  background: var(--accent);
}

.tray-button.active,
.tray-button:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.tray-button:disabled,
.roller-button:disabled,
.pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.18);
}

.roller {
  position: relative;
  grid-area: roller;
  z-index: 6;
  width: 46px;
  display: block;
  align-self: stretch;
  justify-self: end;
  margin-right: 0;
  margin-top: 0;
  padding: 4px 0 4px 8px;
  touch-action: none;
}

.roller::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--line);
}

.roller::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  border-top: 2px solid var(--line);
}

.roller-button {
  position: absolute;
  right: 0;
  z-index: 3;
  width: 42px;
  min-width: 42px;
  min-height: 0;
  height: 32%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: transparent;
  background: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  touch-action: none;
  white-space: normal;
  box-shadow: none;
}

#previousItem {
  top: 4px;
}

#nextItem {
  bottom: 4px;
}

.roller-track {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 100%;
  min-height: 108px;
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 18%, transparent 76%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0 10%, transparent 22% 78%, rgba(0, 0, 0, 0.52) 90% 100%),
    repeating-linear-gradient(
      0deg,
      #263238 0,
      #263238 2px,
      var(--accent) 2px,
      var(--accent) 4px,
      var(--blue-deep) 4px,
      var(--blue-deep) 7px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 12px,
      rgba(41, 182, 246, 0.78) 12px,
      rgba(41, 182, 246, 0.78) 14px
    );
  cursor: pointer;
  box-shadow:
    inset -4px 0 7px rgba(0, 0, 0, 0.48),
    inset 4px 0 5px rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(41, 182, 246, 0.28);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  --wheel-roll-offset: 0px;
  background-position:
    0 0,
    0 0,
    0 var(--wheel-roll-offset),
    0 var(--wheel-roll-offset);
}

.roller-track::before {
  content: "";
  position: absolute;
  inset: 6px 6px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(41, 182, 246, 0.45) 0 12%, transparent 26% 74%, rgba(41, 182, 246, 0.45) 88% 100%);
  box-shadow:
    inset 0 10px 0 -7px rgba(189, 189, 189, 0.48),
    inset 0 -10px 0 -7px rgba(189, 189, 189, 0.48);
  pointer-events: none;
}

.roller-track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(189, 189, 189, 0.78) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(41, 182, 246, 0.9) 0 1px, transparent 1px 4px);
  clip-path: polygon(0 0, 100% 0, 100% 16%, 0 16%, 0 84%, 100% 84%, 100% 100%, 0 100%);
  opacity: 0.82;
  pointer-events: none;
}

.roller-track.rolling-up {
  animation: wheel-roll-up 360ms ease-out;
}

.roller-track.rolling-down {
  animation: wheel-roll-down 360ms ease-out;
}

.roller-track span {
  display: none;
}

.roller-track.active,
.roller-track:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.35);
}

@keyframes wheel-roll-up {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 0,
      0 0,
      0 -28px,
      0 -28px;
  }
}

@keyframes wheel-roll-down {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 0,
      0 0,
      0 28px,
      0 28px;
  }
}

.pending-count,
.candidate-count,
.credits {
  position: fixed;
  bottom: 18px;
  min-width: 74px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--panel);
  font-size: 16px;
  line-height: 1;
  text-shadow:
    1px 1px 0 var(--panel),
    0 0 4px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.candidate-count {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.pending-count,
.candidate-count {
  left: max(30px, calc((100% - 1280px) / 2 + 30px));
}

.credits {
  right: max(30px, calc((100% - 1280px) / 2 + 30px));
}

.shell[data-posture="base"] .candidate-count,
.shell[data-posture="base"] .credits,
.shell[data-posture="candidate"] .candidate-count,
.shell[data-posture="candidate"] .credits,
.shell[data-posture="retrieval"] .candidate-count,
.shell[data-posture="retrieval"] .credits,
.shell[data-posture="roll-match"] .candidate-count,
.shell[data-posture="roll-match"] .credits {
  display: flex !important;
  visibility: visible !important;
}

.pending-count[hidden],
.candidate-count[hidden],
.credits[hidden] {
  display: none !important;
}

.shell .pending-count[hidden],
.shell .candidate-count[hidden],
.shell .credits[hidden] {
  display: none !important;
}

.shell[data-rollthru="active"] .pending-count,
.shell[data-rollthru="active"] .credits {
  display: none;
}

.shell[data-rollthru="active"] .candidate-count {
  display: flex;
}

.shell[data-rollthru="active"][data-rollthru-step="credits"] .pending-count,
.shell[data-rollthru="active"][data-rollthru-step="logo-welcome"] .pending-count,
.shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .pending-count,
.shell[data-rollthru="active"][data-rollthru-step="reward"] .pending-count,
.shell[data-rollthru="active"][data-rollthru-step="credits"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="candidates"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="logo-welcome"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="reward"] .candidate-count,
.shell[data-rollthru="active"][data-rollthru-step="credits"] .credits,
.shell[data-rollthru="active"][data-rollthru-step="logo-welcome"] .credits,
.shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .credits,
.shell[data-rollthru="active"][data-rollthru-step="reward"] .credits {
  display: flex;
}

.candidate-count.credit-flash,
.credits.credit-flash {
  box-shadow:
    0 0 0 2px rgba(41, 182, 246, 0.95),
    0 0 28px rgba(41, 182, 246, 0.58);
  animation: credits-attention 900ms ease-in-out infinite alternate;
}

@keyframes credits-attention {
  from {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(41, 182, 246, 0.74),
      0 0 18px rgba(41, 182, 246, 0.48);
  }
  to {
    transform: scale(1.08);
    box-shadow:
      0 0 0 4px rgba(41, 182, 246, 1),
      0 0 42px rgba(41, 182, 246, 0.9);
  }
}

.build-number {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px));
  z-index: 31;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
  text-shadow:
    1px 1px 0 var(--panel-soft),
    0 0 3px rgba(255, 255, 255, 0.42);
}

.shell[data-side="left"] .build-number {
  left: 50%;
}

.cluster-grab {
  touch-action: manipulation;
}

button.cluster-grab {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cluster-grab.relocating {
  filter: brightness(1.16);
}

#pendingValue,
#candidateValue,
#creditsValue {
  text-align: center;
  line-height: 1;
}

.credit-label-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1;
}

.account-state-value {
  color: #d8d8d8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: none;
}

.credits[data-account-state="online"] .account-state-value {
  color: var(--accent);
}

.immersive-panel {
  position: absolute;
  inset: 76px 76px 34px 14px;
  z-index: 20;
  display: grid;
  align-items: stretch;
  pointer-events: none;
}

.immersive-panel[hidden] {
  display: none;
}

.immersive-inner {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 22px;
  border: 2px solid var(--accent-blue);
  border-radius: 30px;
  color: #07100a;
  background: var(--panel-soft);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.immersive-inner h1 {
  margin: 0;
  color: #07100a;
  font-size: 26px;
  line-height: 1.15;
}

.immersive-inner p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  overflow: hidden;
}

.immersive-exit {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  color: var(--panel-soft);
  background: var(--panel);
  cursor: pointer;
}

.shell[data-posture="immersive"] .core-regions,
.shell[data-posture="immersive"] .tray,
.shell[data-posture="immersive"] .pending-count,
.shell[data-posture="immersive"] .candidate-count,
.shell[data-posture="immersive"] .credits {
  opacity: 0.32;
}

.page-view {
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  bottom: 0;
  z-index: 24;
  overflow: auto;
  padding: clamp(18px, 4vw, 42px);
  color: #eeeeee;
  background: var(--page);
  cursor: auto;
  user-select: text;
  -webkit-user-select: text;
}

.page-view[hidden] {
  display: none;
}

.compare-surface {
  position: absolute;
  inset: 82px 0 0;
  z-index: 58;
  display: block;
  padding: 72px clamp(22px, 4vw, 38px) 28px;
  color: #eeeeee;
  background: var(--page);
  overflow: auto;
}

.compare-surface[hidden] {
  display: none;
}

.compare-window {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.compare-roll-cluster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-bottom: calc(var(--awareness-height) + 4px);
}

.compare-cluster-controls {
  display: flex;
  gap: 8px;
  min-height: var(--control-size);
  align-items: center;
}

.compare-cluster-controls .fixed-control:disabled {
  opacity: 1;
  cursor: default;
}

.compare-field-row {
  min-width: 0;
}

.compare-readonly-field {
  display: flex;
  align-items: center;
}

.compare-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: calc(var(--field-height) - 12px);
  margin-right: 4px;
  color: #07100a;
  background: var(--panel-soft);
}

.compare-awareness {
  grid-column: 1;
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.compare-results {
  grid-column: 1;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.compare-selected[hidden] {
  display: none;
}

.compare-result,
.compare-exit {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 400;
}

.compare-result {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-align: left;
}

.compare-exit {
  padding: 0 14px;
}

.compare-empty {
  padding: 10px 12px;
  border: 1px solid rgba(41, 182, 246, 0.72);
  border-radius: var(--radius);
  color: #07100a;
  background: #eeeeee;
}

.compare-watermark {
  grid-column: 1;
  color: rgba(238, 238, 238, 0.72);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1;
  text-align: center;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.38),
    -1px -1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.compare-roll-cluster:has(.compare-awareness:not(:empty)) .compare-watermark {
  opacity: 0;
}

.compare-exit-row {
  display: flex;
  justify-content: flex-end;
}

.operations-action.compare-ready {
  border-color: var(--accent);
  background: var(--accent);
  color: #000000;
  box-shadow: 0 0 12px rgba(41, 182, 246, 0.65), inset 3px 3px 0 rgba(255, 255, 255, 0.22);
}

.shell[data-posture="compare"] .shoreline-controls {
  z-index: 70;
}

.page-view-sheet {
  width: min(100%, 900px);
  min-height: calc(100% - 2px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) 0;
  background: transparent;
  box-shadow: none;
}

.page-view-kicker {
  margin-bottom: 8px;
  color: #eeeeee;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-view h1 {
  margin: 0 0 22px;
  color: #eeeeee;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.page-view-meta,
.page-view-roll-only,
.page-view p {
  color: #eeeeee;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.48;
}

.page-view-meta {
  margin: 0 0 32px;
  color: #eeeeee;
}

.page-view-roll-only {
  margin-top: 34px;
}

.page-view-items {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
  padding-left: 0;
}

.page-view-item {
  display: grid;
  gap: 7px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(13, 71, 161, 0.5);
}

.page-view-item-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.page-view-field-label {
  color: #eeeeee;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-view-detail-label {
  margin-top: 4px;
}

.page-view-item-prefix {
  display: inline-block;
  min-width: 2.7ch;
  color: #eeeeee;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}

.page-view-items h2 {
  margin: 0;
  color: #eeeeee;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.page-view-items p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.page-view-section {
  margin-top: 24px;
}

.page-view-section h2 {
  margin: 0 0 8px;
  color: #eeeeee;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.2;
}

.page-view-section p {
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}

.page-view-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.page-view-section li {
  margin: 3px 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.4;
}

.philosophy-page {
  width: min(100%, 900px);
}

.philosophy-page h1 {
  font-size: clamp(28px, 3.6vw, 38px);
}

.memo-roll-reading {
  width: min(100%, 980px);
  min-height: 0;
  padding: clamp(14px, 2.2vw, 24px) 0 36px;
}

.memo-roll-reading .page-view-kicker {
  display: none;
}

.memo-roll-reading h1 {
  margin: 0 0 12px;
  color: #eeeeee;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 800;
  line-height: 1.16;
}

.memo-roll-reading .page-view-roll-only {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.35;
}

.memo-roll-reading .page-view-items {
  display: block;
  margin: 0;
}

.memo-roll-reading .page-view-item {
  display: block;
  padding: 7px 0 8px;
  border-bottom: 1px solid rgba(238, 238, 238, 0.32);
}

.memo-roll-reading .page-view-items h2 {
  margin: 0 0 2px;
  color: #eeeeee;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.memo-roll-reading .page-view-items p {
  margin: 0;
  color: #eeeeee;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.32;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.memo-roll-reading .page-view-item-prefix {
  min-width: 0;
  color: #eeeeee;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.shell[data-posture="page-view"] .continuity-body,
.shell[data-posture="page-view"] .build-number,
.shell[data-posture="page-view"] .pending-count,
.shell[data-posture="page-view"] .candidate-count,
.shell[data-posture="page-view"] .credits {
  display: none;
}

.my-memorolla-surface {
  position: absolute;
  inset: 0;
  z-index: 60;
  overflow: auto;
  padding: clamp(18px, 4vw, 42px);
  color: var(--panel-soft);
  background: rgba(0, 0, 0, 0.94);
}

.my-memorolla-surface[hidden] {
  display: none;
}

.my-memorolla-sheet {
  width: min(100%, 820px);
  min-height: calc(100% - 2px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(20px, 4vw, 38px);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.my-memorolla-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.my-memorolla-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.my-memorolla-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.my-memorolla-close,
.my-memorolla-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.my-memorolla-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.my-memorolla-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41, 182, 246, 0.22);
}

.my-memorolla-row h2,
.my-memorolla-row p {
  margin: 0;
}

.my-memorolla-row h2 {
  color: var(--accent);
  font-size: 14px;
}

.my-memorolla-row p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.my-memorolla-row.my-memorolla-personal-row p {
  color: var(--detail-coral);
}

.my-memorolla-value {
  display: grid;
  gap: 8px;
}

.my-memorolla-choice-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
}

.my-memorolla-choice-group input {
  accent-color: var(--accent);
}

.my-memorolla-inline-action {
  align-self: flex-start;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--blue-deep);
  color: var(--accent);
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
}

.my-memorolla-inline-action:disabled {
  cursor: default;
  opacity: 0.55;
}

.my-memorolla-row.my-memorolla-muted-row h2,
.my-memorolla-row.my-memorolla-muted-row p {
  color: rgba(255, 255, 255, 0.46);
  cursor: default;
}

.my-memorolla-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 max(2px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), #050505 28%);
}

.shell[data-posture="retrieval"] .item-step-row {
  display: none !important;
}

.shell[data-posture="startup"] .flow-controls,
.shell[data-posture="startup"] .authority-controls,
.shell[data-posture="startup"] .item-step-row,
.shell[data-posture="startup"] .detail-region,
.shell[data-posture="startup"] .right-rail,
.shell[data-posture="startup"] .pending-count,
.shell[data-posture="startup"] .candidate-count,
.shell[data-posture="startup"] .credits,
.shell[data-posture="startup"] .build-number {
  display: none !important;
}

.shell[data-posture="startup"] .shoreline {
  padding-bottom: 58px;
}

.shell[data-posture="startup"] .shoreline::before {
  display: none;
}

.shell[data-posture="startup"] .name-awareness {
  top: calc(47px + var(--field-height));
  bottom: auto;
}

.shell[data-posture="startup"] .field-row {
  width: 100%;
  margin: 0;
}

.shell[data-posture="startup"] .acquisition-controls {
  position: relative;
  z-index: 6;
}

.shell[data-posture="startup"] .startup-shortcuts {
  margin-top: 0;
}

.shell[data-posture="startup"].startup-awareness-active .startup-shortcuts {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.shell[data-rollthru="active"] .startup-shortcuts {
  display: none;
}

.shell[data-posture="startup"] .startup-watermark {
  display: block;
}

.shell[data-rollthru="active"][data-rollthru-step="memo"] .startup-watermark {
  display: block;
  margin-top: clamp(70px, 16vh, 150px);
}

.shell[data-rollthru="active"][data-rollthru-step="memo"][data-creating-roll="true"] .startup-watermark {
  display: none;
}

.shell.rollthru-memo-entry .startup-watermark {
  display: none !important;
}

.shell.rollthru-memo-entry .item-step-row,
.shell.rollthru-memo-entry .detail-region {
  display: none !important;
}

.shell[data-posture="startup"].startup-shortcuts-empty .startup-watermark {
  margin-top: clamp(70px, 16vh, 150px);
}

.shell[data-rollthru="active"][data-rollthru-step="memo"] .detail-region {
  display: none;
}

.shell[data-rollthru="active"][data-rollthru-step="memo"] .item-step-row {
  display: none;
}

.shell[data-rollthru="active"][data-rollthru-step="memo"] .item-window,
.shell[data-rollthru="active"][data-rollthru-step="memo"] .roller {
  visibility: hidden;
}

.shell[data-rollthru="active"][data-rollthru-step="item-1"] .detail-region,
.shell[data-rollthru="active"][data-rollthru-step="item-2"] .detail-region,
.shell[data-rollthru="active"][data-rollthru-step="traversal"] .detail-region {
  display: none;
}

.shell[data-rollthru="active"][data-rollthru-step="detail"][data-detail="hidden"] .detail-region {
  display: none;
}

.shell[data-posture="retrieval"][data-detail="hidden"] .detail-region {
  display: none;
}

.shell[data-posture="retrieval"][data-detail="visible"] .detail-region {
  align-self: start;
  min-height: 0;
  padding-bottom: 0;
}

.shell[data-posture="retrieval"][data-detail="visible"] .detail-panel {
  height: auto;
  max-height: min(78vh, 720px);
  background: #8f8f8f;
}

.shell[data-posture="retrieval"][data-detail="visible"] .detail-region {
  margin-top: 0;
}

.shell[data-posture="retrieval"] .core-regions {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 6px;
}

.shell[data-posture="retrieval"] .shoreline {
  grid-column: 1 / -1;
  padding-bottom: 8px;
}

.shell[data-posture="retrieval"] .shoreline:has(.name-awareness:not([hidden]):not(:empty)) {
  padding-bottom: calc(var(--awareness-height) + 4px);
}

.shell[data-posture="retrieval"][data-detail="visible"] .detail-region {
  grid-column: 1;
  grid-row: 2;
}

.shell[data-posture="retrieval"] .continuity-body {
  grid-template-columns: minmax(0, 1fr);
}

.shell[data-hidden-unlock="active"] .continuity-body {
  grid-template-columns: minmax(0, 1fr);
}

.shell[data-posture="retrieval"][data-side="left"] .continuity-body {
  grid-template-columns: minmax(0, 1fr);
}

.shell[data-posture="retrieval"] .right-rail {
  display: none;
}

.shell[data-hidden-unlock="active"] .right-rail {
  display: none;
}

.shell[data-posture="retrieval"] .right-rail {
  padding-top: 0;
}

.shell[data-posture="retrieval"][data-detail="visible"] .right-rail {
  align-content: start;
}

@media (max-width: 640px), (pointer: coarse) and (max-width: 1024px) {
  :root {
    --field-height: 48px;
    --item-field-height: 92px;
    --awareness-height: 48px;
    --label-space: 20px;
  }

  html,
  body {
    min-height: 100dvh;
  }

  body {
    overflow-x: hidden;
  }

  button,
  input,
  select,
  [contenteditable="true"] {
    font-size: 16px;
  }

  .landing-gate {
    grid-template-rows: auto auto auto;
    padding: 0;
    overflow: auto;
  }

  .landing-nav {
    min-height: 48px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    gap: 8px;
  }

  .landing-nav-brand {
    font-size: 0;
    gap: 0;
  }

  .landing-nav-brand img {
    width: 34px;
    height: 34px;
  }

  .landing-hero {
    padding: 6px 16px 10px;
  }

  .landing-hero-copy {
    gap: 7px;
  }

  .landing-panel {
    width: 100%;
    max-width: 390px;
    padding: 16px;
    border-radius: 8px;
  }

  .landing-brand {
    font-size: 42px;
  }

  .landing-title {
    font-size: 30px;
  }

  .landing-headline {
    font-size: 24px;
  }

  .landing-entry-paths {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 7px;
  }

  .landing-entry-path {
    width: 100%;
    min-height: 92px;
    padding: 12px;
  }

  .landing-demo-roll {
    width: auto;
    margin: 0 12px max(12px, env(safe-area-inset-bottom));
  }

  .landing-roll-window {
    min-height: 142px;
    padding: 14px;
  }

  .landing-roll-item {
    font-size: 19px;
  }

  .landing-roll-cue {
    justify-self: start;
  }

  .continuity-stage {
    width: 100dvw;
    max-width: 100dvw;
    overflow-x: hidden;
    padding: 0;
    align-items: stretch;
    min-height: 100dvh;
  }

  .shell {
    width: 100dvw;
    max-width: 100vw;
    min-height: 100dvh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: linear-gradient(180deg, var(--shell-top), var(--shell-bottom));
  }

  .brand-strip {
    min-height: 76px;
    padding: max(2px, env(safe-area-inset-top)) 8px 2px;
  }

  .brand-mark {
    justify-content: flex-start;
    height: 72px;
    padding-left: 8px;
    padding-right: 50px;
  }

  .brand-wordmark {
    width: auto;
    height: 68px;
    max-width: calc(100vw - 92px);
    max-height: none;
  }

  .my-memorolla-entry {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }

  .my-memorolla-desktop {
    display: none;
  }

  .my-memorolla-mobile {
    display: block;
  }

  .my-memorolla-surface {
    position: fixed;
    inset: 0;
    padding: 12px;
  }

  .my-memorolla-sheet {
    min-height: 100%;
    padding: 18px;
  }

  .my-memorolla-head {
    align-items: center;
  }

  .my-memorolla-close {
    min-height: 34px;
    padding: 0 12px;
    font-size: 16px;
  }

  .my-memorolla-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 0;
  }

  .continuity-body {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 12px 7px max(98px, env(safe-area-inset-bottom));
    background: transparent;
  }

  .shell[data-side="left"] .continuity-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell[data-posture="retrieval"] .continuity-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell[data-posture="retrieval"][data-side="left"] .continuity-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .shell[data-posture="retrieval"] .right-rail {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    padding-top: 0;
  }

  .retrieval-scope-mobile-slot .retrieval-scope-button {
    width: clamp(58px, 22vw, 82px);
    min-height: 26px;
    border-radius: 3px;
    font-size: 10px;
  }

  .shoreline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .shell[data-side="left"] .shoreline-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .shoreline {
    padding-bottom: calc(var(--awareness-height) + 4px);
  }

  .shell[data-posture="startup"] .shoreline {
    padding-bottom: 18px;
  }

  .shell[data-posture="startup"] .field-row {
    width: 100%;
  }

  .startup-shortcuts {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 6px;
  }

  .shell[data-posture="startup"] .startup-shortcuts {
    margin-top: calc(var(--awareness-height) + 8px);
  }

  .shell[data-posture="startup"].startup-awareness-active .startup-shortcuts {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
  }

  .startup-shortcut-panel {
    min-height: 104px;
  }

  .startup-shortcut-panel h2 {
    font-size: 15px;
  }

  .startup-watermark {
    margin-top: 18px;
    font-size: clamp(40px, 15vw, 62px);
  }

  .shell[data-posture="startup"].startup-shortcuts-empty .startup-watermark {
    margin-top: clamp(82px, 20vh, 156px);
  }

  .shell[data-posture="retrieval"] .shoreline {
    padding-bottom: 8px;
  }

  .shell[data-posture="retrieval"] .shoreline:has(.name-awareness:not([hidden]):not(:empty)) {
    padding-bottom: calc(var(--awareness-height) + 4px);
  }

  .item-step-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-areas:
      "item roller";
    column-gap: 5px;
    row-gap: 0;
    min-height: 168px;
    padding: 10px 10px 12px;
    border-radius: 22px;
  }

  .shell[data-side="left"] .item-step-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "roller item";
  }

  .fixed-control {
    width: 40px;
    height: 38px;
  }

  .region-label {
    color: var(--accent);
  }

  .item-region-label {
    min-height: 46px;
    gap: 8px;
  }

  .item-count-label {
    left: calc(50% + 26px);
    color: #3f3f3f;
    font-size: 24px;
    text-shadow: none;
  }

  .item-region {
    padding-bottom: 26px;
  }

  .item-window {
    min-height: 66px;
  }

  .item-text {
    min-height: 64px;
  }

  .local-add-button {
    width: 40px;
    height: 38px;
  }

  .show-items-button,
  .local-detail-button {
    width: 40px;
    height: 38px;
  }

  .detail-region .region-label {
    visibility: hidden;
    color: rgba(13, 71, 161, 0.36);
  }

  .shell[data-detail="visible"] .detail-region .region-label {
    visibility: visible;
    color: var(--accent);
  }

  .field-row {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .shoreline::before {
    bottom: calc((var(--awareness-height) - 22px) / 2 - 4px);
    color: rgba(0, 0, 0, 0.085);
    font-size: 22px;
    text-shadow:
      1px 1px 0 rgba(255, 255, 255, 0.34),
      -1px -1px 0 rgba(0, 0, 0, 0.1);
  }

  .shell[data-posture="retrieval"] .shoreline::before {
    display: none;
  }

  .item-step-row::after {
    bottom: 8px;
    color: rgba(0, 0, 0, 0.085);
    font-size: 22px;
    text-shadow:
      1px 1px 0 rgba(255, 255, 255, 0.34),
      -1px -1px 0 rgba(0, 0, 0, 0.1);
  }

  .continuity-input,
  .item-text {
    color: #eeeeee;
    font-size: 16px;
    font-weight: 500;
  }

  .continuity-input {
    color: #13c7ff;
    font-weight: 700;
  }

  .pill,
  .position-pill {
    min-width: 62px;
    margin-right: 0;
    min-height: 32px;
    padding: 5px 17px 5px 7px;
    background-position:
      calc(100% - 10px) 50%,
      calc(100% - 6px) 50%;
    font-size: 11px;
  }

  .position-pill {
    width: 66px;
    min-width: 66px;
  }

  .item-side-controls {
    flex-basis: 84px;
    min-width: 84px;
    grid-template-rows: auto;
    gap: 2px;
  }

  .item-step-row.roll-match-active .item-window,
  .roll-match-mate-row .item-window {
    min-height: var(--field-height);
  }

  .roll-match-mate-row,
  .shell[data-side="left"] .roll-match-mate-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "item";
    width: calc(100% - 53px);
  }

  .shell[data-side="left"] .roll-match-mate-row {
    margin-left: 53px;
  }

  .item-step-row.roll-match-active .item-text,
  .roll-match-mate-row .item-text {
    padding: 7px;
  }

  .roll-match-cluster {
    padding: 0;
  }

  .roll-match-mate-particulars-slot .roll-match-particulars-button {
    width: 40px;
    height: 38px;
  }

  .detail-cue {
    font-size: 11px;
  }

  .awareness {
    min-height: var(--field-height);
    padding: 0 10px;
    border: 1px solid rgba(41, 182, 246, 0.72);
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
  }

  .name-awareness {
    min-height: var(--field-height);
    padding: 0 10px;
    border: 1px solid rgba(41, 182, 246, 0.72);
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
  }

  .shell[data-rollthru="active"] .name-awareness,
  .shell[data-rollthru="active"] .awareness {
    min-height: 70px;
    padding: 12px;
    line-height: 1.28;
  }

  .shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .awareness,
  .shell[data-rollthru="active"][data-rollthru-step="credits"] .awareness,
  .shell[data-rollthru="active"][data-rollthru-step="reward"] .awareness {
    min-height: 110px;
    align-items: center;
  }

  .core-regions {
    gap: 13px;
  }

  .detail-region {
    min-height: 210px;
    margin-top: 0;
    padding-right: 0;
    padding-bottom: 76px;
  }

  .detail-panel {
    max-width: 100%;
    height: min(64dvh, 490px);
    padding: 14px;
    border-radius: 22px;
    color: var(--detail-coral);
    font-size: 16px;
    line-height: 1.38;
  }

  .shell[data-posture="retrieval"][data-detail="visible"] .detail-region {
    min-height: 0;
    padding-bottom: 0;
  }

  .shell[data-posture="retrieval"][data-detail="visible"] .detail-panel {
    height: auto;
    max-height: min(64dvh, 500px);
  }

  .tray {
    width: 50px;
  }

  .roller {
    width: 46px;
    display: block;
    margin-right: 0;
    margin-top: 0;
    padding: 4px 0 4px 8px;
  }

  .roller-button {
    width: 40px;
    min-width: 40px;
    min-height: 0;
    height: 32%;
    padding: 0;
    border: 0;
    color: transparent;
    background: transparent;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
  }

  .roller-track {
    width: 40px;
    height: 100%;
    min-height: 124px;
    border-radius: 8px;
  }

  .tray-button {
    width: 30px;
    height: 30px;
  }

  .shoreline-controls > .control-pair:first-child {
    padding-left: 6px;
  }

  .flow-controls {
    left: 50%;
    transform: translateX(-50%);
  }

  .shell[data-posture="retrieval"][data-side="right"] .flow-controls,
  .shell[data-posture="retrieval"][data-side="left"] .flow-controls {
    left: 50%;
  }

  .shoreline-controls > .control-pair:last-child {
    padding-right: 6px;
  }

  .tray-capsule {
    width: min(156px, calc(100vw - 24px));
  }

  .capsule-action {
    width: 100%;
    min-height: 32px;
    height: 32px;
    font-size: 11px;
  }

  .flow-controls .transform-identity {
    width: min(156px, calc(100vw - 24px));
  }

  .pending-count,
  .candidate-count,
  .credits {
    right: 16px;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-width: 64px;
    min-height: 40px;
    font-size: 15px;
    padding: 7px 9px;
  }

  .pending-count,
  .candidate-count {
    right: auto;
    left: 16px;
  }

  .shell[data-rollthru="active"][data-rollthru-step="candidates"] .item-step-row,
  .shell[data-rollthru="active"][data-rollthru-step="credits"] .item-step-row,
  .shell[data-rollthru="active"][data-rollthru-step="logo-welcome"] .item-step-row,
  .shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .item-step-row,
  .shell[data-rollthru="active"][data-rollthru-step="reward"] .item-step-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "item";
  }

  .shell[data-rollthru="active"][data-rollthru-step="candidates"] .roller,
  .shell[data-rollthru="active"][data-rollthru-step="credits"] .roller,
  .shell[data-rollthru="active"][data-rollthru-step="logo-welcome"] .roller,
  .shell[data-rollthru="active"][data-rollthru-step="logo-teach"] .roller,
  .shell[data-rollthru="active"][data-rollthru-step="reward"] .roller {
    display: none;
  }

  .build-number {
    left: 50%;
    right: auto;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px));
    transform: translateX(-50%);
    font-size: 10px;
  }

  .shell[data-side="left"] .build-number {
    left: 50%;
  }

  .immersive-panel {
    inset: 78px 58px 22px 8px;
  }

  .immersive-inner {
    position: relative;
    border-radius: 26px;
    padding: 18px;
  }

  .immersive-inner h1 {
    font-size: 22px;
  }

  .immersive-exit {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    min-height: 40px;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 8px;
    color: transparent;
    background: var(--accent);
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.22);
    font-size: 0;
    line-height: 0;
  }

  .immersive-exit::before {
    content: "X";
    color: #07100a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
  }

  .page-view {
    top: 76px;
    padding: 10px;
  }

  .page-view-exit {
    padding-inline: 14px;
  }

  .page-view-exit-label {
    font-size: 12px;
  }

  .page-view-sheet {
    min-height: calc(100% - 2px);
    padding: 20px 18px 30px;
  }

  .page-view-kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .page-view h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  .page-view-meta,
  .page-view-roll-only,
  .page-view p {
    font-size: 14px;
    line-height: 1.42;
  }

  .page-view-meta {
    margin-bottom: 24px;
  }

  .page-view-items {
    gap: 16px;
    margin-top: 24px;
    padding-left: 0;
  }

  .page-view-items h2,
  .page-view-section h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .page-view-section {
    margin-top: 18px;
  }

  .page-view-section li {
    font-size: 14px;
    line-height: 1.35;
  }

  .philosophy-page h1 {
    font-size: 24px;
  }

  .memo-roll-reading {
    padding: 12px 4px 28px;
  }

  .memo-roll-reading h1 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.15;
  }

  .memo-roll-reading .page-view-item {
    padding: 6px 0 7px;
  }

  .memo-roll-reading .page-view-items h2 {
    font-size: 14px;
    line-height: 1.24;
  }

  .memo-roll-reading .page-view-items p {
    font-size: 13px;
    line-height: 1.28;
  }
}
