:root {
  --paper: #edf6f8;
  --muted: #9bb2bd;
  --cyan: #8ed9ef;
  --cyan-hot: #d7f7ff;
  --entry-text: #edf6f8;
  --entry-coral: #ff8d82;
  --entry-coral-dark: #b84f48;
  --entry-panel: rgba(8, 20, 29, 0.94);
  --entry-panel-soft: rgba(12, 29, 40, 0.76);
  --entry-line: rgba(142, 217, 239, 0.25);
  --entry-dim: rgba(222, 239, 243, 0.62);
  --entry-danger: #ff786d;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

.entry-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 27%, rgba(36, 148, 178, 0.13), transparent 29rem),
    radial-gradient(circle at 6% 72%, rgba(228, 123, 58, 0.09), transparent 32rem),
    #07131b;
}

.entry-page input,
.entry-page select,
.entry-page textarea,
.entry-page button {
  font: inherit;
}

.entry-page input,
.entry-page select,
.entry-page textarea {
  color: var(--paper);
}

.entry-page button,
.entry-page a,
.entry-page input,
.entry-page select,
.entry-page textarea {
  -webkit-tap-highlight-color: transparent;
}

.entry-page button:focus-visible,
.entry-page a:focus-visible,
.entry-page input:focus-visible,
.entry-page select:focus-visible,
.entry-page textarea:focus-visible {
  outline: 2px solid var(--cyan-hot);
  outline-offset: 3px;
}

.entry-topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid rgba(142, 217, 239, 0.2);
  background: rgba(3, 9, 15, 0.88);
  backdrop-filter: blur(14px) saturate(0.8);
}

.entry-topbar__brand {
  display: block;
  width: clamp(210px, 20vw, 320px);
  height: 58px;
  overflow: hidden;
}

.entry-topbar__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 9px #000);
  mix-blend-mode: screen;
}

.entry-topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 40px);
}

.entry-topbar__nav a {
  padding: 8px 0;
  border-bottom: 1px solid rgba(142, 217, 239, 0.36);
  color: rgba(221, 238, 242, 0.72);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.entry-topbar__nav p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.entry-topbar__nav p span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--entry-coral);
  box-shadow: 0 0 12px rgba(255, 141, 130, 0.78);
}

.entry-shell {
  position: relative;
  isolation: isolate;
  max-width: 1640px;
  margin: 0 auto;
  padding: 116px clamp(22px, 5vw, 80px) 64px;
}

.entry-grid {
  position: fixed;
  z-index: -2;
  inset: 72px 0 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(142, 217, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 217, 239, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.28) 82%, transparent);
  pointer-events: none;
}

.entry-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.entry-kicker,
.panel-heading > p {
  margin: 0;
  color: var(--cyan);
  font-size: 0.63rem;
  letter-spacing: 0.25em;
}

.entry-heading h1 {
  margin: 10px 0 12px;
  font-family: "Astral Serif", "Yu Mincho", serif;
  font-size: clamp(2.3rem, 4.7vw, 5.3rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.entry-heading h1 span {
  display: block;
  margin-bottom: 0.24em;
  color: var(--entry-coral);
  font-family: Inter, "Yu Gothic", sans-serif;
  font-size: 0.24em;
  letter-spacing: 0.16em;
}

.entry-heading__copy > p:last-child {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.entry-stamp {
  display: grid;
  width: 138px;
  height: 138px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(255, 141, 130, 0.58);
  outline: 1px solid rgba(255, 141, 130, 0.18);
  outline-offset: -8px;
  color: var(--entry-coral);
  text-align: center;
  transform: rotate(3deg);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.entry-stamp span,
.entry-stamp small {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
}

.entry-stamp b {
  font-family: "Astral Serif", serif;
  font-size: 3.5rem;
  line-height: 0.95;
}

.entry-stamp.is-closed {
  border-color: rgba(255, 141, 130, 0.82);
  background: rgba(105, 39, 36, 0.2);
  transform: rotate(-2deg);
}

.entry-stamp.is-closed b {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
}

.entry-stamp.is-open {
  border-color: rgba(112, 232, 201, 0.82);
  outline-color: rgba(112, 232, 201, 0.22);
  background: rgba(34, 92, 77, 0.24);
  color: #70e8c9;
  transform: rotate(-2deg);
}

.entry-stamp.is-open b {
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.entry-privacy {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(280px, 1.5fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--entry-line);
  background: rgba(3, 12, 18, 0.78);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.entry-privacy div {
  display: grid;
  gap: 3px;
}

.entry-privacy div span,
.entry-save-status {
  color: var(--cyan);
  font-size: 0.57rem;
  letter-spacing: 0.17em;
}

.entry-closed {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(320px, 1.35fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 141, 130, 0.5);
  border-left: 4px solid var(--entry-coral);
  background: linear-gradient(105deg, rgba(109, 39, 36, 0.34), rgba(8, 25, 34, 0.9));
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.entry-closed div {
  display: grid;
  gap: 5px;
}

.entry-closed span {
  color: var(--entry-coral);
  font-size: 0.58rem;
  letter-spacing: 0.17em;
}

.entry-closed b {
  font-family: "Astral Serif", "Yu Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.entry-closed p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.76rem;
  line-height: 1.75;
}

.entry-closed.entry-open {
  border-color: rgba(112, 232, 201, 0.5);
  border-left-color: #70e8c9;
  background: linear-gradient(105deg, rgba(34, 92, 77, 0.3), rgba(8, 25, 34, 0.9));
}

.entry-closed.entry-open span {
  color: #70e8c9;
}

.entry-portrait-link,
.entry-amend-link {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(250px, .7fr);
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(93, 207, 228, .48);
  border-left: 4px solid var(--cyan);
  background: rgba(6, 27, 37, .92);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.entry-portrait-link div,
.entry-amend-link div { display: grid; gap: 4px; }
.entry-portrait-link div span,
.entry-amend-link div span { color: var(--cyan); font-size: .57rem; letter-spacing: .18em; }
.entry-portrait-link div b,
.entry-amend-link div b { font-size: 1rem; }
.entry-portrait-link div p,
.entry-amend-link div p { margin: 2px 0 0; color: var(--entry-dim); font-size: .75rem; line-height: 1.7; }
.entry-portrait-link a,
.entry-amend-link a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(93, 207, 228, .52); color: var(--entry-text); text-decoration: none; }
.entry-portrait-link a small,
.entry-amend-link a small { color: var(--entry-dim); font-size: .58rem; }
.entry-portrait-link a strong,
.entry-amend-link a strong { color: var(--cyan); font-size: .82rem; }
.entry-portrait-link .entry-portrait-link__actions { display: grid; gap: 8px; }
.entry-portrait-link .entry-portrait-link__practice { border-color: rgba(255, 189, 114, .62); background: rgba(255, 189, 114, .08); }
.entry-portrait-link .entry-portrait-link__practice strong { color: #ffbd72; }

.entry-portrait-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  padding: 1px;
  background: rgba(142, 217, 239, .22);
  list-style: none;
}

.entry-portrait-flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  background: rgba(3, 12, 18, .82);
}

.entry-portrait-flow em {
  color: var(--cyan);
  font: 800 .68rem/1.4 ui-monospace, monospace;
  font-style: normal;
}

.entry-portrait-flow li > span { display: grid; gap: 2px; min-width: 0; }
.entry-portrait-flow strong { font-size: .7rem; }
.entry-portrait-flow small { color: var(--entry-dim); font-size: .57rem; line-height: 1.45; }

.entry-amend-link {
  margin: 0 0 22px;
  border-color: rgba(255, 185, 98, .46);
  border-left-color: #ffbd72;
  background: rgba(48, 30, 14, .78);
}

.entry-amend-link a { border-color: rgba(255, 185, 98, .52); }
.entry-amend-link a strong,
.entry-amend-link div span { color: #ffbd72; }

@media (max-width: 760px) {
  .entry-portrait-link,
  .entry-amend-link { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .entry-portrait-flow { grid-template-columns: 1fr; }
}

.formation-selection {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(142, 217, 239, .24);
  background: rgba(3, 12, 18, .52);
}

.formation-selection legend { padding: 0 8px; font-weight: 900; }
.formation-selection legend span { margin-left: 7px; color: var(--entry-coral); font-size: .64rem; }
.formation-selection__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.formation-mode {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(142, 217, 239, .24);
  background: rgba(9, 24, 33, .78);
  cursor: pointer;
}

.formation-mode input { position: absolute; top: 14px; right: 14px; }
.formation-mode span { display: grid; gap: 8px; }
.formation-mode small { color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.formation-mode b { max-width: 85%; font-size: 1rem; line-height: 1.45; }
.formation-mode em { color: var(--entry-dim); font-size: .74rem; font-style: normal; line-height: 1.7; }
.formation-mode:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 -4px 0 var(--cyan); }
.formation-selection > p { margin: 14px 0 0; color: var(--entry-dim); font-size: .78rem; }

.call-card--inactive {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(142, 217, 239, .35);
  background: rgba(7, 18, 26, .68);
}

.call-card--inactive p { margin: 0; color: var(--entry-dim); }

@media (max-width: 760px) {
  .formation-selection__grid { grid-template-columns: 1fr; }
  .formation-mode { min-height: 0; }
}

.entry-privacy div b {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.entry-privacy > p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.73rem;
  line-height: 1.6;
}

.entry-save-status {
  min-width: 128px;
  padding: 8px 10px;
  border-left: 1px solid rgba(142, 217, 239, 0.22);
  text-align: right;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 23vw, 350px);
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
}

.entry-form {
  min-width: 0;
  border: 1px solid var(--entry-line);
  background: var(--entry-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.entry-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--entry-line);
  background: rgba(2, 9, 14, 0.66);
}

.entry-steps button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--entry-line);
  background: transparent;
  color: rgba(221, 238, 242, 0.62);
  cursor: pointer;
  text-align: left;
}

.entry-steps button:last-child {
  border-right: 0;
}

.entry-steps button::after {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(142, 217, 239, 0.16);
  content: "";
}

.entry-steps button.is-complete::after {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(142, 217, 239, 0.72);
}

.entry-steps button.is-active {
  background: linear-gradient(135deg, rgba(142, 217, 239, 0.13), rgba(255, 141, 130, 0.05));
  color: var(--paper);
}

.entry-steps button.is-active::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--entry-coral);
  box-shadow: 0 0 10px rgba(255, 141, 130, 0.52);
  content: "";
}

.entry-steps span {
  grid-row: 1 / 3;
  font-family: "Astral Serif", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.entry-steps .is-active span {
  color: var(--entry-coral);
}

.entry-steps b {
  align-self: end;
  font-size: 0.78rem;
}

.entry-steps small {
  align-self: start;
  color: var(--cyan);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.entry-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(142, 217, 239, 0.08);
}

.entry-progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--entry-coral));
  transition: width 320ms ease;
}

.entry-error {
  margin: 20px 26px 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 120, 109, 0.5);
  border-left: 3px solid var(--entry-danger);
  background: rgba(101, 30, 28, 0.24);
  color: #ffd1cc;
  font-size: 0.75rem;
  line-height: 1.55;
}

.entry-panel {
  min-height: 600px;
  padding: clamp(24px, 3.2vw, 46px);
}

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

.panel-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.panel-heading h2 {
  margin: 8px 0 11px;
  font-family: "Astral Serif", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  letter-spacing: -0.04em;
}

.panel-heading > span {
  display: block;
  color: var(--entry-dim);
  font-size: 0.82rem;
  line-height: 1.75;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.portrait-preset {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid rgba(142, 217, 239, 0.22);
  background: rgba(2, 9, 14, 0.48);
}

.portrait-preset legend {
  padding: 0 8px;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.portrait-preset legend span {
  margin-left: 7px;
  color: var(--entry-dim);
  font-size: 0.55rem;
}

.portrait-preset > p,
.portrait-preset > small {
  display: block;
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.7rem;
  line-height: 1.7;
}

.portrait-preset__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0 12px;
}

.portrait-preset__card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 217, 239, 0.2);
  background: #061019;
  cursor: pointer;
}

.portrait-preset__card input {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--entry-coral);
}

.portrait-preset__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.portrait-preset__copy {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.portrait-preset__copy b {
  font-size: 0.72rem;
}

.portrait-preset__copy small {
  color: var(--entry-dim);
  font-size: 0.62rem;
  line-height: 1.4;
}

.portrait-preset__card:has(input:checked) {
  border-color: var(--entry-coral);
  box-shadow: inset 0 0 0 1px rgba(255, 141, 130, 0.35);
}

.portrait-preset__card:has(input:checked) .portrait-preset__copy {
  background: rgba(255, 141, 130, 0.1);
}

.field > span,
.safety-card legend,
.confirmations legend {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.field > span i,
.safety-card legend span {
  margin-left: 7px;
  color: var(--entry-coral);
  font-size: 0.56rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

.field > span em {
  margin-left: 7px;
  color: var(--entry-dim);
  font-size: 0.55rem;
  font-style: normal;
}

.field input,
.field select,
.field textarea,
.loadout-card select,
.call-card select {
  width: 100%;
  border: 1px solid rgba(142, 217, 239, 0.24);
  border-radius: 0;
  background: rgba(2, 9, 14, 0.72);
}

.field input,
.field select,
.loadout-card select,
.call-card select {
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 90px;
  padding: 13px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(222, 239, 243, 0.68);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.loadout-card select:focus,
.call-card select:focus {
  border-color: var(--cyan);
  background: rgba(5, 20, 29, 0.94);
}

.field small {
  color: var(--entry-dim);
  font-size: 0.65rem;
  line-height: 1.45;
}

.official-note {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 18px;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 141, 130, 0.26);
  border-left: 3px solid var(--entry-coral);
  background: rgba(67, 28, 27, 0.18);
}

.official-note span {
  color: var(--entry-coral);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
}

.official-note p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.7rem;
  line-height: 1.55;
}

.official-note--cyan {
  border-color: rgba(142, 217, 239, 0.25);
  border-left-color: var(--cyan);
  background: rgba(17, 68, 82, 0.15);
}

.official-note--cyan span {
  color: var(--cyan);
}

.omen-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 5px;
  margin-bottom: 12px;
}

.omen-index button {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(142, 217, 239, 0.2);
  background: rgba(2, 9, 14, 0.7);
  color: var(--entry-dim);
  cursor: pointer;
  font-size: 0.65rem;
}

.omen-index button.is-answered {
  border-color: rgba(142, 217, 239, 0.48);
  color: var(--cyan);
}

.omen-index button.is-active {
  border-color: var(--entry-coral);
  background: rgba(255, 141, 130, 0.12);
  color: var(--paper);
}

.omen-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  min-height: 440px;
  border: 1px solid var(--entry-line);
  background: rgba(3, 11, 17, 0.6);
}

.omen-card figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--entry-line);
  background: #d9d5ca;
}

.omen-card figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 15, 0.9));
  content: "";
  pointer-events: none;
}

.omen-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.12) contrast(1.08);
}

.omen-card figcaption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.omen-card figcaption span,
.omen-card figcaption b {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.omen-card figcaption b {
  color: var(--entry-coral);
}

.omen-answer-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-weight: 700;
}

.omen-answer-status__legend {
  color: rgba(246, 250, 251, 0.92);
  font-size: 0.56rem !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap;
}

.omen-answer-status__marks {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  letter-spacing: 0 !important;
}

.omen-answer-status__mark {
  color: rgba(246, 250, 251, 0.86);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1;
}

.omen-answer-status__mark.is-answered {
  color: var(--entry-coral);
  text-shadow: 0 0 7px rgba(255, 141, 130, 0.58);
}

.omen-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(22px, 3vw, 38px);
}

.omen-card__body h3 {
  margin: 0 0 22px;
  font-family: "Astral Serif", "Yu Mincho", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.65;
}

.omen-options {
  display: grid;
  gap: 10px;
}

.omen-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(142, 217, 239, 0.18);
  background: rgba(10, 26, 36, 0.64);
  cursor: pointer;
}

.omen-option:hover {
  border-color: rgba(142, 217, 239, 0.48);
}

.omen-option input {
  position: absolute;
  opacity: 0;
}

.omen-option i {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  border-right: 1px solid rgba(142, 217, 239, 0.24);
  color: var(--cyan);
  font-size: 0.65rem;
  font-style: normal;
}

.omen-option span {
  padding: 12px 14px;
  color: rgba(236, 246, 248, 0.8);
  font-size: 0.77rem;
  line-height: 1.5;
}

.omen-option:has(input:checked) {
  border-color: var(--entry-coral);
  background: linear-gradient(90deg, rgba(255, 141, 130, 0.13), rgba(142, 217, 239, 0.05));
}

.omen-option:has(input:checked) i {
  color: var(--entry-coral);
}

.omen-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.omen-controls button,
.entry-controls > button {
  border: 1px solid rgba(142, 217, 239, 0.25);
  background: rgba(4, 14, 21, 0.84);
  color: var(--paper);
  cursor: pointer;
}

.omen-controls button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.68rem;
}

.omen-controls button:disabled {
  background: rgba(222, 239, 243, 0.07);
  color: var(--entry-dim);
  cursor: default;
  opacity: 1;
}

.omen-footnote {
  margin: 13px 0 0;
  color: var(--entry-dim);
  font-size: 0.66rem;
  line-height: 1.6;
}

.loadout-difference {
  margin-bottom: 15px;
  border: 1px solid rgba(142, 217, 239, 0.2);
  background: rgba(3, 11, 17, 0.58);
}

.loadout-difference > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(142, 217, 239, 0.14);
}

.loadout-difference > header span {
  color: var(--cyan);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.loadout-difference > header b {
  color: var(--paper);
  font-size: 0.7rem;
}

.loadout-difference > header a {
  color: var(--entry-coral);
  font-size: 0.6rem;
  font-weight: 800;
  text-decoration: none;
}

.loadout-difference > div {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: rgba(142, 217, 239, 0.12);
}

.loadout-difference section {
  min-width: 0;
  padding: 12px;
  background: rgba(7, 19, 28, 0.96);
}

.loadout-difference h3 {
  margin: 0 0 9px;
  color: rgba(221, 238, 242, 0.76);
  font-size: 0.66rem;
}

.loadout-difference section > p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 6px 0 0;
  color: rgba(221, 238, 242, 0.6);
  font-size: 0.62rem;
}

.loadout-difference section img {
  display: block;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(142, 217, 239, 0.15);
  object-fit: cover;
}

.loadout-difference section p b {
  margin-right: 7px;
  color: var(--entry-coral);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

.loadout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(190px, 0.8fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid var(--entry-line);
  background: rgba(3, 11, 17, 0.66);
}

.loadout-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
}

.loadout-summary span {
  color: var(--cyan);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.loadout-summary b {
  font-size: 0.72rem;
}

.loadout-summary b i {
  color: var(--paper);
  font-family: "Astral Serif", serif;
  font-size: 1rem;
  font-style: normal;
}

.meter {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  background: rgba(142, 217, 239, 0.1);
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--entry-coral));
  transition: width 260ms ease;
}

.loadout-summary.is-over .meter i {
  background: var(--entry-danger);
}

.loadout-summary > p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.68rem;
  line-height: 1.55;
}

.loadout-summary.is-over > p {
  color: #ffaca5;
}

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

.loadout-card,
.call-card {
  border: 1px solid rgba(142, 217, 239, 0.18);
  background: rgba(8, 22, 31, 0.6);
}

.loadout-card {
  padding: 14px;
}

.loadout-card__head,
.call-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.loadout-card__head b,
.call-card__head b {
  font-size: 0.76rem;
}

.loadout-card__head span,
.call-card__head span {
  color: var(--cyan);
  font-size: 0.51rem;
  letter-spacing: 0.13em;
}

.loadout-card select,
.call-card select {
  min-height: 44px;
  font-size: 0.72rem;
}

.loadout-card__detail,
.call-card__detail {
  display: grid;
  min-height: 54px;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin-top: 9px;
  color: var(--entry-dim);
  font-size: 0.64rem;
  line-height: 1.5;
}

.loadout-card__detail.is-pending,
.call-card__detail {
  grid-template-columns: 1fr auto;
}

.loadout-card__detail p,
.call-card__detail p {
  margin: 0;
}

.loadout-card__detail b,
.call-card__detail b {
  color: var(--entry-coral);
  font-size: 0.61rem;
  font-weight: 700;
}

.loadout-card__visual {
  display: block;
  width: 108px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 217, 239, 0.17);
  background: #02070a;
}

.loadout-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loadout-card__visual.is-empty {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.loadout-card__copy {
  min-width: 0;
}

.loadout-card__copy > span,
.loadout-card__copy > strong,
.loadout-card__copy > small {
  display: block;
}

.loadout-card__copy > span {
  color: var(--cyan);
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.loadout-card__copy > strong {
  margin-top: 4px;
  color: var(--paper);
  font-size: 0.75rem;
  line-height: 1.48;
}

.loadout-card__copy > p {
  margin: 6px 0 0;
}

.loadout-card__copy > small {
  margin-top: 6px;
  color: var(--entry-dim);
  font-size: 0.56rem;
  line-height: 1.5;
}

.loadout-card__cost {
  align-self: start;
  white-space: nowrap;
}

.safety-card,
.confirmations {
  min-width: 0;
  margin: 18px 0 0;
  padding: 17px;
  border: 1px solid rgba(255, 141, 130, 0.28);
  background: rgba(60, 26, 25, 0.12);
}

.safety-card__overview {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 4px 0 13px;
}

.safety-card__overview img {
  display: block;
  width: 118px;
  height: 94px;
  border: 1px solid rgba(255, 141, 130, 0.22);
  object-fit: cover;
}

.safety-card__overview p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.69rem;
  line-height: 1.6;
}

.safety-card__overview p span,
.safety-card__overview p b {
  display: block;
}

.safety-card__overview p span {
  color: var(--entry-coral);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.safety-card__overview p b {
  margin: 3px 0;
  color: var(--paper);
  font-size: 0.73rem;
}

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

.safety-card label,
.confirmations label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.safety-card label {
  min-height: 58px;
  padding: 11px;
  border: 1px solid rgba(255, 141, 130, 0.18);
  background: rgba(3, 11, 17, 0.55);
}

.safety-card input,
.confirmations input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--entry-coral);
}

.safety-card label span {
  display: grid;
  gap: 3px;
}

.safety-card label b {
  font-size: 0.72rem;
}

.safety-card label small {
  color: var(--entry-dim);
  font-size: 0.61rem;
  line-height: 1.45;
}

.safety-card label:has(input:checked) {
  border-color: var(--entry-coral);
  background: rgba(255, 141, 130, 0.1);
}

.fixed-supply {
  display: grid;
  grid-template-columns: 96px minmax(130px, 0.4fr) minmax(190px, 0.8fr) 1.5fr;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px dashed rgba(142, 217, 239, 0.25);
}

.fixed-supply > img {
  display: block;
  width: 96px;
  height: 76px;
  border: 1px solid rgba(142, 217, 239, 0.17);
  object-fit: cover;
}

.fixed-supply span {
  color: var(--cyan);
  font-size: 0.51rem;
  letter-spacing: 0.14em;
}

.fixed-supply b {
  font-size: 0.71rem;
}

.fixed-supply p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.62rem;
  line-height: 1.5;
}

.fixed-supply p strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(221, 238, 242, 0.72);
}

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

.call-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 15px;
}

.call-card__order {
  display: grid;
  align-content: center;
  border-right: 1px solid var(--entry-line);
}

.call-card__order span {
  color: var(--cyan);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
}

.call-card__order b {
  color: var(--entry-coral);
  font-family: "Astral Serif", serif;
  font-size: 2.1rem;
}

.call-card__body {
  min-width: 0;
  padding-left: 16px;
}

.call-card__detail {
  min-height: 34px;
}

.review-id {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 141, 130, 0.32);
  background: linear-gradient(90deg, rgba(255, 141, 130, 0.11), transparent);
}

.review-id span {
  grid-column: 1;
  color: var(--entry-coral);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

.review-id b {
  grid-column: 1;
  font-family: "Astral Serif", monospace;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.review-id small {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--entry-dim);
  font-size: 0.64rem;
  line-height: 1.5;
}

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

.review-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(142, 217, 239, 0.18);
  background: rgba(5, 16, 24, 0.64);
}

.review-section--wide {
  grid-column: 1 / -1;
}

.review-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 11px;
  color: var(--cyan);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.review-section h3 span {
  color: var(--entry-dim);
  font-size: 0.52rem;
}

.review-section dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.review-section dl div {
  display: grid;
  grid-template-columns: minmax(88px, 0.32fr) 1fr;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(142, 217, 239, 0.1);
}

.review-section dt,
.review-section dd,
.review-list li {
  font-size: 0.67rem;
  line-height: 1.5;
}

.review-section dt {
  color: var(--entry-dim);
}

.review-section dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(237, 246, 248, 0.86);
}

.review-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  color: rgba(237, 246, 248, 0.8);
}

.review-list li b {
  color: var(--entry-coral);
  font-size: 0.58rem;
}

.confirmations {
  display: grid;
  gap: 11px;
}

.confirmations label span {
  color: rgba(237, 246, 248, 0.77);
  font-size: 0.7rem;
  line-height: 1.55;
}

.export-actions {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.export-actions button {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(142, 217, 239, 0.24);
  background: rgba(4, 14, 21, 0.86);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.export-actions button:hover {
  border-color: var(--cyan);
}

.export-actions .submit-primary {
  border-color: rgba(255, 141, 130, 0.48);
  background: linear-gradient(135deg, rgba(184, 79, 72, 0.38), rgba(13, 44, 57, 0.7));
}

.export-actions span {
  color: var(--cyan);
  font-size: 0.49rem;
  letter-spacing: 0.15em;
}

.export-actions .submit-primary span {
  color: var(--entry-coral);
}

.export-actions button:disabled,
.export-actions button:disabled:hover {
  border-color: rgba(142, 217, 239, 0.18);
  background: rgba(222, 239, 243, 0.07);
  color: var(--entry-dim);
  cursor: default;
  opacity: 1;
}

.export-actions b {
  font-size: 0.74rem;
}

.export-actions small {
  color: var(--entry-dim);
  font-size: 0.57rem;
  line-height: 1.4;
}

.entry-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submission-note {
  margin: 12px 0 0;
  color: rgba(210, 225, 232, 0.55);
  font-size: 0.62rem;
  line-height: 1.65;
}

.export-status {
  margin: 11px 0 0;
  color: var(--entry-dim);
  font-size: 0.66rem;
  line-height: 1.55;
}

.export-status.is-success {
  color: var(--cyan);
}

.portrait-receipt {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(93, 207, 228, .48);
  background: rgba(6, 27, 37, .92);
}

.entry-account-link{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:0 0 18px;padding:16px 18px;border:1px solid rgba(76,171,183,.55);background:linear-gradient(110deg,rgba(12,42,47,.94),rgba(10,25,29,.96));color:var(--paper)}
.entry-account-link div{display:grid;gap:4px}.entry-account-link span{color:var(--cyan);font-size:.58rem;letter-spacing:.15em}.entry-account-link b{font-size:.9rem}.entry-account-link p{margin:0;color:var(--entry-dim);font-size:.68rem;line-height:1.65}.entry-account-link a{display:grid;gap:3px;min-width:220px;padding:10px 12px;border:1px solid rgba(93,207,228,.6);color:var(--cyan);text-decoration:none}.entry-account-link a small{color:var(--entry-dim);font-size:.56rem}.entry-account-link a strong{font-size:.72rem}
@media(max-width:720px){.entry-account-link{grid-template-columns:1fr}.entry-account-link a{min-width:0}}

.portrait-receipt[hidden] { display: none; }
.portrait-receipt > span { color: var(--cyan); font-size: .52rem; letter-spacing: .16em; }
.portrait-receipt > b { font-size: 1rem; }
.portrait-receipt > p { margin: 2px 0 6px; color: var(--entry-dim); font-size: .68rem; line-height: 1.65; }
.portrait-receipt code { overflow-wrap: anywhere; color: var(--paper); font-size: .66rem; }
.portrait-receipt a { width: max-content; max-width: 100%; margin-top: 4px; padding: 7px 10px; border: 1px solid rgba(93, 207, 228, .52); color: var(--cyan); font-size: .68rem; text-decoration: none; }
.portrait-receipt small { color: var(--entry-dim); font-size: .56rem; }

.portrait-receipt__credentials {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(0, 1.4fr);
  gap: 8px;
  margin: 2px 0;
}

.portrait-receipt__credentials > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(142, 217, 239, .22);
  background: rgba(2, 11, 16, .42);
}

.portrait-receipt__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.portrait-receipt__actions a { display: inline-flex; align-items: center; margin-top: 0; }
.portrait-receipt__actions button { padding: 7px 10px; border: 1px solid rgba(93, 207, 228, .52); background: transparent; color: var(--cyan); font-size: .68rem; }
.portrait-receipt__actions .portrait-receipt__primary { background: var(--cyan); color: #021015; font-weight: 900; }

@media (max-width: 600px) {
  .portrait-receipt__credentials { grid-template-columns: 1fr; }
  .portrait-receipt__actions { display: grid; }
  .portrait-receipt__actions :is(a, button) { width: 100%; justify-content: center; text-align: center; }
}

.clear-draft {
  display: block;
  margin: 24px 0 0 auto;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 141, 130, 0.28);
  background: transparent;
  color: rgba(255, 171, 164, 0.64);
  cursor: pointer;
  font-size: 0.62rem;
}

.entry-controls {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  min-height: 68px;
  border-top: 1px solid var(--entry-line);
  background: rgba(2, 9, 14, 0.76);
}

.entry-controls > button {
  align-self: stretch;
  border: 0;
  cursor: pointer;
}

.entry-controls > button:first-child {
  border-right: 1px solid var(--entry-line);
}

.entry-controls > button:last-child {
  border-left: 1px solid var(--entry-line);
}

.entry-controls > button:disabled {
  background: rgba(222, 239, 243, 0.07);
  color: var(--entry-dim);
  cursor: default;
  opacity: 1;
}

.entry-controls > div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.entry-controls > div span {
  color: var(--cyan);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.entry-controls > div small {
  color: var(--entry-dim);
  font-size: 0.65rem;
}

.entry-luco {
  position: sticky;
  top: 94px;
  min-width: 0;
}

.entry-luco__screen {
  position: relative;
  z-index: 3;
  min-height: 128px;
  padding: 18px 18px 22px;
  border: 1px solid rgba(142, 217, 239, 0.32);
  background: rgba(4, 15, 22, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.entry-luco__screen::after {
  position: absolute;
  bottom: -15px;
  left: 66%;
  width: 28px;
  height: 22px;
  background: rgba(4, 15, 22, 0.92);
  clip-path: polygon(0 0, 100% 0, 70% 100%);
  content: "";
}

.entry-luco__screen span,
.entry-luco__memo span {
  color: var(--entry-coral);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.entry-luco__screen p {
  margin: 9px 0 0;
  font-family: "Astral Serif", "Yu Mincho", serif;
  font-size: 0.87rem;
  line-height: 1.7;
}

.entry-luco__figure {
  position: relative;
  height: clamp(310px, 37vw, 520px);
  margin-top: -10px;
  overflow: hidden;
}

.entry-luco__figure i {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 217, 239, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 217, 239, 0.15), transparent 62%);
  transform: translateX(-50%);
}

.entry-luco__figure img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38));
}

.entry-luco__memo {
  padding: 13px 15px;
  border-top: 1px solid rgba(255, 141, 130, 0.28);
  border-bottom: 1px solid rgba(142, 217, 239, 0.18);
  background: rgba(3, 11, 17, 0.62);
}

.entry-luco__memo p {
  margin: 6px 0 0;
  color: var(--entry-dim);
  font-size: 0.65rem;
  line-height: 1.55;
}

.entry-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(22px, 5vw, 80px);
  border-top: 1px solid rgba(142, 217, 239, 0.16);
  background: #03090f;
}

.entry-site-footer p {
  margin: 0;
  color: var(--entry-dim);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}

.entry-site-footer nav {
  display: flex;
  gap: 20px;
}

.entry-site-footer a {
  color: var(--entry-dim);
  font-size: 0.65rem;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .portrait-preset__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .entry-steps button {
    padding: 11px 9px;
  }

  .entry-steps span {
    font-size: 1.35rem;
  }

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

  .omen-card figure {
    aspect-ratio: 3 / 2;
    max-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--entry-line);
  }

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

  .loadout-summary > p {
    grid-column: 1 / -1;
  }

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

@media (max-width: 880px) {
  .entry-shell {
    padding-top: 98px;
  }

  .entry-heading {
    align-items: center;
  }

  .entry-layout {
    grid-template-columns: 1fr;
  }

  .entry-luco {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: end;
  }

  .entry-luco__screen {
    grid-column: 1;
    grid-row: 1;
  }

  .entry-luco__screen::after {
    right: -16px;
    bottom: 20px;
    left: auto;
    width: 22px;
    height: 28px;
    clip-path: polygon(0 0, 100% 45%, 0 100%);
  }

  .entry-luco__figure {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 280px;
  }

  .entry-luco__memo {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .entry-topbar {
    height: 60px;
    padding: 0 14px;
  }

  .entry-topbar__brand {
    width: 174px;
    height: 50px;
  }

  .entry-topbar__nav a {
    font-size: 0.6rem;
  }

  .entry-topbar__nav p {
    display: none;
  }

  .entry-shell {
    padding: 84px 10px 34px;
  }

  .entry-heading {
    align-items: flex-start;
    gap: 12px;
    padding: 0 6px;
  }

  .entry-kicker {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }

  .entry-heading h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .entry-heading__copy > p:last-child {
    font-size: 0.73rem;
  }

  .entry-stamp {
    width: 76px;
    height: 76px;
  }

  .entry-stamp b {
    font-size: 2rem;
  }

  .entry-stamp span,
  .entry-stamp small {
    font-size: 0.4rem;
  }

  .entry-privacy {
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
    padding: 12px;
  }

  .entry-closed {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-right: 6px;
    margin-left: 6px;
    padding: 15px;
  }

  .entry-closed p {
    font-size: 0.68rem;
  }

  .entry-privacy > p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.65rem;
  }

  .entry-save-status {
    min-width: 96px;
    padding-left: 8px;
  }

  .entry-form {
    overflow: visible;
  }

  .entry-steps {
    position: sticky;
    z-index: 30;
    top: 60px;
  }

  .entry-steps button {
    min-height: 58px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    padding: 8px 3px;
    text-align: center;
  }

  .entry-steps span {
    grid-row: 1;
    font-size: 1.1rem;
  }

  .entry-steps b {
    align-self: center;
    font-size: 0.63rem;
  }

  .entry-steps small {
    display: none;
  }

  .entry-steps button::after {
    right: 7px;
    bottom: 7px;
  }

  .entry-error {
    margin: 14px 14px 0;
  }

  .entry-panel {
    min-height: 0;
    padding: 23px 14px 30px;
  }

  .panel-heading {
    margin-bottom: 20px;
  }

  .panel-heading h2 {
    font-size: 1.75rem;
  }

  .panel-heading > span {
    font-size: 0.73rem;
  }

  .form-grid,
  .loadout-grid,
  .review-grid,
  .export-actions {
    grid-template-columns: 1fr;
  }

  .loadout-card__detail {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .loadout-card__detail.is-pending {
    grid-template-columns: 1fr auto;
  }

  .loadout-card__visual {
    width: 88px;
  }

  .loadout-card__cost {
    grid-column: 1 / -1;
  }

  .field--wide,
  .review-section--wide {
    grid-column: auto;
  }

  .official-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .omen-index {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .omen-index button {
    height: 30px;
  }

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

  .omen-card figure {
    height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--entry-line);
  }

  .omen-card__body {
    padding: 20px 14px;
  }

  .omen-card__body h3 {
    font-size: 1rem;
  }

  .omen-option span {
    font-size: 0.72rem;
  }

  .loadout-summary {
    grid-template-columns: 1fr;
  }

  .loadout-difference > header,
  .loadout-difference > div {
    grid-template-columns: 1fr;
  }

  .loadout-difference > header {
    gap: 5px;
  }

  .loadout-difference > header a {
    margin-top: 4px;
  }

  .loadout-summary > p {
    grid-column: auto;
  }

  .safety-card > div,
  .fixed-supply {
    grid-template-columns: 1fr;
  }

  .safety-card__overview img {
    width: 100%;
    height: 180px;
  }

  .fixed-supply > img {
    width: 100%;
    height: 170px;
  }

  .call-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px;
  }

  .call-card__order b {
    font-size: 1.65rem;
  }

  .review-id {
    grid-template-columns: 1fr;
  }

  .review-id small {
    grid-column: 1;
    grid-row: auto;
    margin-top: 5px;
  }

  .entry-controls {
    position: sticky;
    z-index: 40;
    bottom: 0;
    grid-template-columns: 88px 1fr 88px;
    min-height: 62px;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.32);
  }

  .entry-controls > button {
    font-size: 0.7rem;
  }

  .entry-luco {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .entry-luco__screen {
    min-height: 116px;
    padding: 15px;
  }

  .entry-luco__screen p {
    font-size: 0.75rem;
  }

  .entry-luco__figure {
    height: 205px;
  }

  .entry-site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .entry-topbar,
  .entry-heading,
  .entry-privacy,
  .entry-closed,
  .entry-steps,
  .entry-progress,
  .entry-error,
  .entry-panel:not([data-step-panel="4"]),
  .confirmations,
  .export-actions,
  .submission-note,
  .export-status,
  .clear-draft,
  .entry-controls,
  .entry-luco,
  .entry-site-footer {
    display: none !important;
  }

  .entry-page,
  .entry-shell,
  .entry-form,
  .entry-panel {
    background: #fff !important;
    color: #101820 !important;
  }

  .entry-shell {
    max-width: none;
    padding: 0;
  }

  .entry-layout {
    display: block;
  }

  .entry-form {
    border: 0;
    box-shadow: none;
    clip-path: none;
  }

  .entry-panel[data-step-panel="4"] {
    display: block !important;
    min-height: 0;
    padding: 0;
  }

  .panel-heading > p,
  .review-section h3,
  .review-id span {
    color: #24596a !important;
  }

  .panel-heading > span,
  .review-id small,
  .review-section dt,
  .review-section dd,
  .review-list li {
    color: #26343a !important;
  }

  .review-id,
  .review-section {
    break-inside: avoid;
    border-color: #8ca1a9;
    background: #fff;
  }
}
