:root {
  color-scheme: light;
  --paper: #e3f0ff;
  --ink: #1d334b;
  --muted: #526a83;
  --line: #b7cde3;
  --sky: #b7dcff;
  --yellow: #fbe7a9;
  --lime: #c9ef9a;
  --mint: #dff6d7;
  --pink: #ffd1d1;
  --coral: #ff8c7b;
  --green: #60c48a;
  --surface: #f1f7ff;
  --surface-raised: #e6f1ff;
  --panel: rgba(230, 241, 255, 0.88);
  --shadow: rgba(25, 54, 84, 0.16);
  --error: #b63326;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #172a3d;
  --ink: #e8f2ff;
  --muted: #afc1d6;
  --line: #4a627b;
  --sky: #274c70;
  --yellow: #645322;
  --lime: #285c47;
  --mint: #205247;
  --pink: #603741;
  --coral: #ff9b83;
  --green: #73d9aa;
  --surface: #1b3045;
  --surface-raised: #243c54;
  --panel: rgba(27, 48, 69, 0.94);
  --shadow: rgba(0, 0, 0, 0.3);
  --error: #ff9188;
}

:root[data-theme="xp"] {
  color-scheme: light;
  --paper: #c0c0c0;
  --ink: #082f69;
  --muted: #234b75;
  --line: #0054a6;
  --sky: #b9dcf5;
  --yellow: #c0c0c0;
  --lime: #c0c0c0;
  --mint: #c0c0c0;
  --pink: #c0c0c0;
  --coral: #0054a6;
  --green: #0054a6;
  --surface: #c0c0c0;
  --surface-raised: #c0c0c0;
  --panel: #c0c0c0;
  --shadow: #203b58;
  --error: #9b0000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #d5eaff 0%, #e7f2ff 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

:root[data-theme="dark"] body {
  background: linear-gradient(180deg, #101c2b 0%, #17283a 100%);
}

:root[data-theme="xp"] body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 14% 7% at 17% 17%, rgba(255, 255, 255, 0.94) 0 62%, transparent 65%),
    radial-gradient(ellipse 19% 9% at 21% 16%, rgba(255, 255, 255, 0.94) 0 60%, transparent 63%),
    radial-gradient(ellipse 15% 7% at 25% 18%, rgba(255, 255, 255, 0.94) 0 60%, transparent 63%),
    radial-gradient(ellipse 18% 8% at 72% 28%, rgba(255, 255, 255, 0.82) 0 60%, transparent 63%),
    radial-gradient(ellipse 22% 10% at 77% 27%, rgba(255, 255, 255, 0.82) 0 60%, transparent 63%),
    radial-gradient(ellipse 74% 33% at 22% 112%, #65b94b 0 98%, transparent 100%),
    radial-gradient(ellipse 76% 34% at 83% 114%, #3b9c42 0 98%, transparent 100%),
    linear-gradient(180deg, #39a9ed 0%, #88d5f4 61%, #c9efff 72%, #79c65a 72%, #4da747 100%);
  background-attachment: fixed;
  background-size: cover;
  font-family: "Coral Pixels", "Courier New", monospace;
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0 18px;
}

.crumb,
.btn,
.card,
.x,
.lk-tog,
.gc-del,
.gc-row button {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.crumb {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.btn {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn:hover,
.card:hover,
.x:hover,
.lk-tog:hover,
.gc-del:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--shadow);
}

.btn.go,
.btn.sun {
  background: var(--lime);
}

.btn.sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

main {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 8px;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

p {
  margin-bottom: 0.8rem;
}

.disclaimer,
.panel,
.sheet,
.pt-info,
.sug,
.tt-box,
.gc-out,
.lk-row,
.namebox,
.settings,
.tl-panel,
.msg {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--panel);
}

.disclaimer {
  max-width: 62ch;
  margin: 0 0 8px;
  padding: 12px 15px;
  border-left-width: 8px;
  border-left-color: var(--coral);
}

.head {
  margin-top: 24px;
}

.head p,
.lede,
.count,
.small,
.msg,
.tag,
label,
.field,
.seqs span,
.lk-row small {
  color: var(--muted);
}

.namebox {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 14px 16px;
}

.namebox .field {
  width: min(260px, 100%);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.in,
textarea,
input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.cards {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  width: 100%;
  padding: 18px 18px 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
  box-shadow: 4px 4px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.card .n,
.tag,
.pill,
.chips span,
.seqs span {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface);
  font-weight: 800;
  font-size: 0.75rem;
}

.card h3 {
  margin: 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card.locked {
  opacity: 0.62;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.go {
  margin-top: auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.spn-panel {
  padding: 16px;
}

.spn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.spn-controls .field {
  flex: 1 1 240px;
}

.spn-prompt {
  margin: 18px 0;
  font-size: 1.3rem;
  font-weight: 900;
}

.spn-word-card {
  width: min(100%, 520px);
  min-height: 180px;
  margin: 6px 0 14px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spn-word-es {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 950;
}

.spn-word-en {
  font-size: 1.3rem;
  font-weight: 800;
}

.spn-question {
  margin: 14px 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--panel);
}

.spn-question legend {
  padding: 0 6px;
  font-weight: 850;
}

.spn-choice {
  display: block;
  margin: 8px 0;
  color: var(--ink);
}

#testFeedback {
  white-space: pre-line;
}

.lock-notice {
  max-width: 42rem;
  margin: 20vh auto;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--pink);
  font-weight: 800;
}

.settings {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0 0;
  padding: 14px 18px;
  border-style: dashed;
  background: var(--panel);
}

.settings .field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.seg button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-weight: 700;
}

.seg button.is-on,
.seg button[aria-pressed="true"],
.seg button.active {
  background: var(--ink);
  color: #fff;
}

.panel {
  overflow: hidden;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
  font-weight: 800;
}

.bar {
  margin: 12px 16px 0;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface-raised);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--sky));
}

.panel-body {
  padding: 16px;
}

.msg {
  margin-top: 12px;
  padding: 10px 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row.gap {
  justify-content: space-between;
  margin-top: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 18, 18, 0.42);
  padding: 22px;
  z-index: 50;
}

.modal[hidden] {
  display: none;
}

.sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  padding: 20px 18px 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet.wide {
  width: min(980px, 100%);
}

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

.theme-option[aria-pressed="true"] {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.theme-status:empty {
  display: none;
}

.x {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 2px solid var(--ink);
  background: var(--surface);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.lede,
.count,
.small {
  font-size: 0.98rem;
}

.lede {
  max-width: 70ch;
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.jump a {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
  font-weight: 700;
}

.sec {
  border: 2px solid var(--ink);
  border-radius: 18px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--panel);
}

.sec summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sec summary::-webkit-details-marker {
  display: none;
}

.sec .body {
  border-top: 2px solid var(--ink);
  padding: 16px 18px;
  background: var(--surface-raised);
}

.sec ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sec li + li {
  margin-top: 0.6rem;
}

.key {
  background: var(--yellow);
  border-radius: 6px;
  padding: 1px 3px;
}

.tag {
  font-size: 0.75rem;
  background: var(--sky);
}

.namechips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.namechips li {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--surface);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.namechips button {
  border: 0;
  background: none;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

.pt-legend,
.tt-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.pt-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

.pt-wrap {
  overflow-x: auto;
  padding: 4px 6px 12px 2px;
}

.pt {
  display: grid;
  grid-template-columns: repeat(18, minmax(44px, 1fr));
  gap: 4px;
  min-width: 860px;
}

.el {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  line-height: 1.05;
  font-weight: 700;
}

.el.on {
  box-shadow: 3px 4px 0 var(--ink);
  outline: 3px solid var(--green);
  outline-offset: 0;
}

.el .z {
  font-size: 0.62rem;
  color: var(--muted);
}

.el .sy {
  font-size: 1.05rem;
  font-weight: 950;
}

.el .nm {
  font-size: 0.5rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el.s,
.pt-legend .s {
  background: var(--pink);
}

.el.p,
.pt-legend .p {
  background: var(--sky);
}

.el.d,
.pt-legend .d {
  background: var(--lime);
}

.el.f,
.pt-legend .f {
  background: var(--yellow);
}

.pt .gapc {
  visibility: hidden;
}

.pt .mark {
  border: 2px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

.pt .spacer {
  grid-column: 1 / -1;
  height: 8px;
}

.pt-info {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--surface);
}

.pt-info h3 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.conf {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 800;
  word-break: break-word;
}

.seqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seqs span {
  background: var(--paper);
  font-size: 0.85rem;
}

.seqs span.last {
  background: var(--lime);
}

.gc-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  margin: 6px 0;
}

.gc-row.w {
  grid-template-columns: 2fr 1fr 1fr 38px;
}

.gc-del {
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 900;
}

.gc-out {
  margin-top: 16px;
  padding: 16px;
  background: var(--mint);
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}

.gc-out .big {
  font-size: 2.6rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gc-out .letter {
  font-size: 1.8rem;
  font-weight: 950;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice button {
  text-align: left;
}

.tt-box {
  position: relative;
  padding: 16px 18px;
  max-height: 260px;
  overflow: auto;
  cursor: text;
  background: var(--surface);
}

.tt-box.napoleon {
  padding-top: 28px;
  background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%) top/100% 12px no-repeat, var(--surface);
}

.tt-box:focus-within {
  outline: 3px solid var(--green);
}

.tt-pass {
  font-size: 1.25rem;
  line-height: 1.7;
  user-select: none;
  -webkit-user-select: none;
}

.tt-w {
  display: inline-block;
  white-space: pre;
}

.tt-c {
  opacity: 0.4;
}

.tt-c.ok {
  opacity: 1;
}

.tt-c.bad {
  opacity: 1;
  color: var(--error);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.tt-c.cur {
  box-shadow: inset 2px 0 0 var(--green);
}

.tt-ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
}

.tt-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  font-weight: 900;
  border-radius: 16px;
  pointer-events: none;
}

.tt-box:focus-within .tt-hint,
.tt-box.done .tt-hint {
  display: none;
}

.sug {
  padding: 12px 14px;
  margin: 10px 0;
}

.sug .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.sug p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.divider {
  border: 0;
  border-top: 2px dashed var(--ink);
  margin: 22px 0;
}

.lk-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.lk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
}

.lk-row span {
  min-width: 0;
}

.lk-row b {
  display: block;
}

.lk-tog {
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  background: var(--surface);
}

.lk-tog.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.lk-tog:not(.on) {
  color: var(--green);
  border-color: var(--green);
}

footer {
  margin-top: 22px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 2px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .choice {
    grid-template-columns: 1fr;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .gc-row.w {
    grid-template-columns: 1fr 1fr 38px;
  }

  .gc-row.w .gc-name {
    grid-column: 1 / -1;
  }
}

:root[data-theme="xp"] .btn,
:root[data-theme="xp"] .card,
:root[data-theme="xp"] .x,
:root[data-theme="xp"] .lk-tog,
:root[data-theme="xp"] .gc-del,
:root[data-theme="xp"] button,
:root[data-theme="xp"] input,
:root[data-theme="xp"] textarea,
:root[data-theme="xp"] .sheet,
:root[data-theme="xp"] .panel,
:root[data-theme="xp"] .disclaimer,
:root[data-theme="xp"] .pt-info,
:root[data-theme="xp"] .sug,
:root[data-theme="xp"] .tt-box,
:root[data-theme="xp"] .gc-out,
:root[data-theme="xp"] .lk-row,
:root[data-theme="xp"] .namebox,
:root[data-theme="xp"] .settings,
:root[data-theme="xp"] .tl-panel,
:root[data-theme="xp"] .msg,
:root[data-theme="xp"] .sec,
:root[data-theme="xp"] .seg,
:root[data-theme="xp"] .tag,
:root[data-theme="xp"] .pill,
:root[data-theme="xp"] .chips span,
:root[data-theme="xp"] .seqs span,
:root[data-theme="xp"] .el {
  border-radius: 0;
  border: 3px solid #0755a5;
}

:root[data-theme="xp"] .btn,
:root[data-theme="xp"] .card,
:root[data-theme="xp"] .x,
:root[data-theme="xp"] .lk-tog,
:root[data-theme="xp"] .gc-del,
:root[data-theme="xp"] button,
:root[data-theme="xp"] input,
:root[data-theme="xp"] textarea,
:root[data-theme="xp"] .sheet,
:root[data-theme="xp"] .panel,
:root[data-theme="xp"] .disclaimer,
:root[data-theme="xp"] .pt-info,
:root[data-theme="xp"] .sug,
:root[data-theme="xp"] .tt-box,
:root[data-theme="xp"] .gc-out,
:root[data-theme="xp"] .lk-row,
:root[data-theme="xp"] .namebox,
:root[data-theme="xp"] .settings,
:root[data-theme="xp"] .tl-panel,
:root[data-theme="xp"] .msg,
:root[data-theme="xp"] .sec,
:root[data-theme="xp"] .seg,
:root[data-theme="xp"] .tag,
:root[data-theme="xp"] .pill,
:root[data-theme="xp"] .chips span,
:root[data-theme="xp"] .seqs span,
:root[data-theme="xp"] .el {
  background-color: #c0c0c0;
}

:root[data-theme="xp"] .btn,
:root[data-theme="xp"] .card,
:root[data-theme="xp"] .lk-tog,
:root[data-theme="xp"] .gc-del {
  box-shadow: 2px 2px 0 #203b58;
}

:root[data-theme="xp"] .btn.go,
:root[data-theme="xp"] .btn.sun,
:root[data-theme="xp"] .seg button[aria-pressed="true"],
:root[data-theme="xp"] .seg button.is-on,
:root[data-theme="xp"] .seg button.active,
:root[data-theme="xp"] .lk-tog.on {
  background: #c0c0c0;
  color: #082f69;
}

:root[data-theme="xp"] .modal {
  background: rgba(0, 28, 72, 0.3);
}

:root[data-theme="xp"] .sheet {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

:root[data-theme="xp"] .xp-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 4px 5px 4px 10px;
  color: #fff;
  background: linear-gradient(180deg, #4da5f5 0%, #176bd1 42%, #0750b2 100%);
  border-bottom: 2px solid #063d89;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 1px 1px #174478;
}

:root[data-theme="xp"] .xp-window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-theme="xp"] .xp-window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-left: 8px;
}

:root[data-theme="xp"] .xp-window-control {
  display: grid;
  width: 24px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: linear-gradient(#75b9f4, #1765bd);
  border: 2px solid #e3f2ff;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.65), 1px 1px #073c83;
  font: bold 16px/1 Tahoma, Arial, sans-serif;
}

:root[data-theme="xp"] .xp-window-control.xp-maximize {
  font-size: 13px;
}

:root[data-theme="xp"] .xp-window-control.xp-close {
  background: linear-gradient(#ff9a82, #d52312 62%, #a80d08);
  border-color: #ffe1da;
  font-size: 18px;
}

:root[data-theme="xp"] .xp-window-body {
  position: relative;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

:root[data-theme="xp"] .xp-window-body .x {
  position: absolute;
  top: 10px;
  right: 10px;
}

:root[data-theme="xp"] .xp-window-body > h2:first-of-type,
:root[data-theme="xp"] .xp-window-body > div > h2:first-child {
  padding-right: 40px;
}

:root[data-theme="xp"] .xp-window-body .tag,
:root[data-theme="xp"] .xp-window-body .pill,
:root[data-theme="xp"] .xp-window-body .chips span,
:root[data-theme="xp"] .xp-window-body .seqs span {
  color: var(--ink);
}

.xp-window-titlebar {
  display: none;
}

.xp-window-body {
  display: contents;
}
