:root {
  color-scheme: light;
  --ink: #17362e;
  --fir: #15483c;
  --deep: #0b302a;
  --cranberry: #a53830;
  --snow: #f5f3e8;
  --border: #7f9c89;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow: hidden; color: var(--ink); background: #b1c7d4; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #a23931; outline-offset: 2px; }
#stage, #stage > canvas, .css-renderer { position: fixed; inset: 0; width: 100%; height: 100%; }
#stage > canvas { z-index: 1; touch-action: none; }
.css-renderer { z-index: 2; pointer-events: none; }
.desktop-icon img, .window-title img { image-rendering: pixelated; }
.scene-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.desktop {
  visibility: hidden; width: 800px; height: 600px; position: absolute; isolation: isolate; overflow: hidden;
  font-size: 15px; border-radius: 15px; color: var(--ink);
  background: radial-gradient(ellipse at 82% 20%, #488073, transparent 58%), linear-gradient(150deg, #133e34, #092a2d);
  box-shadow: inset 0 0 35px #001b14a6;
}
.desktop-icons { position: absolute; left: 18px; top: 22px; }
.desktop-icon {
  display: grid; place-items: center; gap: 8px; width: 93px; padding: 8px 3px;
  border: 1px solid transparent; background: transparent; color: #fff8e8; font-size: 13px;
}
.desktop-icon:hover { border-color: #cbdebc; background: #0b302a88; }
.wallet-window {
  position: absolute; inset: 34px 24px 59px 116px; display: flex; flex-direction: column;
  background: var(--snow); border: 2px solid #ecf2d4; box-shadow: 5px 5px #082419b3;
}
.window-title {
  display: flex; gap: 8px; align-items: center; padding: 5px 8px; min-height: 34px;
  color: #fff5df; background: linear-gradient(90deg, #164638, #286654);
}
.window-title h2 { flex: 1; font-size: 15px; margin: 0; }
.wallet-body { padding: 13px 16px 16px; overflow: auto; }
.intro { margin: 0 0 12px; color: #365349; font-size: 14px; line-height: 1.35; }
.input-row { display: flex; gap: 6px; margin-top: 4px; }
input, select {
  min-width: 0; width: 100%; padding: 6px 7px; border: 1px solid var(--border);
  border-top-color: #607c6d; border-left-color: #607c6d; border-radius: 0; background: #fffdf4;
}
.retro {
  padding: 5px 9px; min-height: 27px; background: #dce9da; border: 1px solid #738f7c;
  box-shadow: inset 1px 1px #fafbec, inset -1px -1px #aaba9e; font-weight: 700;
}
.retro:hover { background: #edf1d9; }
.retro:active { box-shadow: inset 1px 1px #819a85; }
.window-control { min-height: 22px; padding: 0 6px; color: var(--ink); }
.totals { margin: 12px 0; border: 1px solid #aabdac; }
.totals div { min-width: 0; background: #e9eee3; padding: 8px; }
.totals div:last-child { background: #dce8d7; }
.totals dt { color: #3b5243; font-size: 12px; line-height: 1.2; }
.totals dd { margin: 4px 0 0; font: 700 16px/1.25 'Courier New', monospace; overflow-wrap: anywhere; }
.primary { background: #a53830; color: #fff2e5; border-color: #7e3027; box-shadow: inset 1px 1px #c96d57; min-height: 31px; }
.primary:hover { background: #87312b; }
.taskbar {
  position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; height: 38px; display: flex;
  gap: 7px; align-items: center; padding: 4px 7px; background: #cddcca; border-top: 2px solid #f6f8e4;
}
.start-menu {
  position: absolute; z-index: 6; bottom: 38px; left: 5px; display: grid;
  gap: 4px; padding: 4px; background: #dce9da; border: 1px solid #81967e;
}
.screen-glass { position: absolute; inset: 0; z-index: 8; box-shadow: inset 0 0 20px #07281b42; pointer-events: none; }
.flat-fallback #stage { display: none; }
.flat-fallback .desktop { visibility: visible; }
.flat-fallback .desktop, .desktop.mobile-desktop {
  position: fixed !important; inset: 50% auto auto 50% !important; z-index: 7; transform: translate(-50%, -50%) !important;
  height: min(600px, calc(100dvh - 120px)); width: min(800px, calc(100vw - 20px));
  pointer-events: auto !important; border-radius: 10px;
}
.flat-fallback #power-menu { display: none; }
@media (max-width: 700px) {
  .wallet-window { inset: 12px 10px 49px; }
  .wallet-body { padding: 10px; }
  .totals dd { font-size: 14px; }
  .mobile-desktop .desktop-icons, .flat-fallback .desktop-icons { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}


.desktop-icon, .desktop-link { text-decoration: none; }
.desktop-icon + .desktop-icon { margin-top: 12px; }
.desktop-link { color: var(--ink); }
.launch-icon {
  display: grid; width: 40px; height: 40px; place-items: center;
  background: #245d49; color: #ffe3a3; border: 2px solid #94ac85; box-shadow: 2px 2px #082319;
}
body.launchpad-page {
  min-height: 100dvh; overflow: auto; background: #123e35; color: var(--ink);
  font: 15px/1.42 Tahoma, sans-serif;
}
.launchpad-page .launch-main {
  max-width: 730px; margin: 32px auto; padding: 0 12px 20px;
}
.launchpad-page .return-link { display: inline-block; color: #fff3d9; margin-bottom: 12px; }
.launchpad-page .launchpad-window { background: #f5f3e9; border: 2px solid #d1e1ca; box-shadow: 5px 5px #09261c; }
.launchpad-page .retro-button {
  border: 1px solid #738f7c; background: #dce9da; box-shadow: inset 1px 1px #fafbec;
  font: bold 13px/1.2 Tahoma, sans-serif; color: #17362e; min-height: 27px; padding: 5px 9px;
}
.launchpad-page .retro-button:disabled { opacity: .55; cursor: default; }

.treasury-wallet h3 { font-size: 13px; margin: 0 0 4px; }
.treasury-wallet code, .ol-fee-treasury code { overflow-wrap: anywhere; }
.treasury-wallet code { font-size: 13px; }
.ol-fee-treasury {
  margin: 0; padding: 8px; border: 1px solid #91a89a; background: #e8f1e3;
  line-height: 1.5; font-weight: 600;
}
.launchpad-page .ol-review-fields dd { overflow-wrap: anywhere; }

.launchpad-page .ol-form input[type="checkbox"] { width: auto; min-width: 0; }

.crt-launchpad-content { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
.crt-launchpad .retro-button, .otc98-wallet-dialog .retro-button {
  border: 1px solid #738f7c; background: #dce9da; box-shadow: inset 1px 1px #fafbec;
}
.crt-launchpad .ol-form input[type="checkbox"] { width: auto; min-width: 0; }
.crt-launchpad .ol-confirm { color: #17362e; }

.hub-nav {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 5px 7px;
  background: #c7d6bf; border-bottom: 1px solid #87a587;
}
.hub-nav button {
  min-height: 26px; padding: 3px 8px; background: #e3ecda; border: 1px solid #8da58b;
  box-shadow: inset 1px 1px #fafdee; font: bold 12px Tahoma, sans-serif;
}
.hub-nav button[aria-current="page"] { box-shadow: inset 1px 1px #083228; background: #26614e; color: #fff8df; }
.hub-nav .hub-create-tab { margin-left: auto; background: #f3dcbb; border-color: #b5966b; }
.hub-home, .hub-how, .hub-board { min-height: 100%; color: #eaf1d9; background: #142e29; }
.hub-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center;
  padding: 21px 12px 19px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #376750, #183d33 72%);
  border-bottom: 1px solid #7d9d71;
}
.hub-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background: radial-gradient(circle at 17% 35%, #deefcf 0 1px, transparent 1.5px),
              radial-gradient(circle at 79% 68%, #deefcf 0 1px, transparent 1.5px);
  background-size: 47px 61px, 59px 41px;
}
.hub-hero img { image-rendering: pixelated; border: 1px solid #a3bf94; box-shadow: 4px 4px #0a2a22; }
.hub-hero h3 { margin: 12px 0 5px; color: #fbefd0; font: bold clamp(20px, 5cqw, 36px)/1.08 Georgia, serif; }
.hub-hero p { margin: 0; color: #d7e6c9; font: 13px/1.35 Tahoma, sans-serif; }
.hub-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hub-actions .retro, .hub-how .retro, .hub-board .retro { color: #17362e; font: bold 12px Tahoma, sans-serif; }
.hub-actions .hub-primary, .hub-how .hub-primary {
  color: #fff8dd; background: #a43b33; border-color: #d88671; box-shadow: inset 1px 1px #ca7160;
}
.hub-actions .hub-primary:hover, .hub-how .hub-primary:hover { background: #bb4a3e; }
.hub-board, .hub-how { padding: 13px; }
.hub-home-board .hub-board { min-height: 0; }
.hub-board-header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.hub-board-header h3, .hub-how h3 { margin: 0; color: #f5e8c5; font: bold 19px Georgia, serif; }
.hub-board-search { display: flex; gap: 8px; align-items: center; margin: 12px 0 6px; color: #d8e6d4; }
.hub-board-search input { flex: 1; font-size: 13px; }
.hub-board-status { margin: 8px 0; padding: 10px 9px; background: #102520; border: 1px solid #527565; font-size: 13px; }
.hub-board-status:empty { display: none; }
.hub-empty-action { margin-top: 4px; }
.hub-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 9px; margin-top: 8px; }
.hub-token-card { min-width: 0; overflow: hidden; background: #0c211c; border: 1px solid #628674; }
.hub-token-card img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.hub-token-card h4, .hub-token-card p, .hub-token-card a { margin: 6px 8px; overflow-wrap: anywhere; }
.hub-token-card h4 { font-size: 14px; color: #f4eccf; }
.hub-token-card p { font: 12px 'Courier New', monospace; }
.hub-token-card a { display: inline-block; color: #bbdabe; font-size: 12px; }
.hub-how ol { padding-left: 24px; font-size: 14px; line-height: 1.5; }
.hub-how li { margin: 0 0 10px; }
.hub-treasury { display: grid; gap: 5px; padding: 10px; background: #102520; border: 1px solid #527565; }
.hub-treasury code { overflow-wrap: anywhere; color: #f5e8c5; }
.crt-launchpad-content { container-type: inline-size; }

.treasury-tracker { border: 1px solid #aabdac; padding: 8px 9px; }
#wallet-fee-tracker { margin: 11px 0 0; }
.hub-fee-tracker { padding: 10px 13px 0; }
.hub-fee-tracker .treasury-tracker { border-color: #587b66; background: #102520; }
.treasury-tracker header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.treasury-tracker h3 { margin: 0; font: bold 15px Georgia, serif; }
.treasury-tracker dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 0 0; }
.treasury-tracker dt { font: 11px Tahoma, sans-serif; }
.treasury-tracker dd { margin: 2px 0 0; font: bold 13px 'Courier New', monospace; overflow-wrap: anywhere; }
.treasury-tracker p { margin: 6px 0 0; font: 11px Tahoma, sans-serif; opacity: .84; }
.treasury-tracker button { min-height: 22px; font-size: 11px; }
.hub-fee-tracker .treasury-tracker button { color: #17362e; }


.desktop-icons { display: grid; gap: 7px; }
.desktop-icons .desktop-icon + .desktop-icon { margin-top: 0; }
.guide-icon {
  display: grid; place-items: center; width: 37px; height: 40px;
  border: 2px solid #a9bd9b; box-shadow: 2px 2px #061f1b;
  font: 700 28px/1 'Courier New', monospace;
}
.guide-icon-doc { background: #f3e7c3; border-color: #d5be83; }
.guide-icon-doc::before {
  content: ''; width: 17px; height: 15px;
  background: repeating-linear-gradient(#365b49 0 2px, transparent 2px 5px);
}
.guide-icon-help { color: #f7ebc3; background: #9c372d; }
.guide-icon-x { color: #f8f4e7; background: #191d1c; font-family: "Segoe UI Symbol", Arial, sans-serif; }
.docs-window { container-type: inline-size; }
.docs-window .window-title { flex-shrink: 0; }
.od-toolbar { display: flex; padding: 4px 8px; background: #dce9da; }
.od-toolbar:not(:has(button:not([hidden]))) { display: none; }
.od-layout { display: flex; flex: 1; min-height: 0; padding: 5px; gap: 5px; }
.od-contents { flex: 0 0 148px; overflow: auto; padding: 4px; background: #e5ecda; }
.od-topic {
  display: block; width: 100%; border: 0; padding: 7px 5px; text-align: left;
  background: transparent; font: 700 12px/1.25 Tahoma, sans-serif;
}
.od-topic:hover { background: #cbdcc8; }
.od-topic[aria-current] { background: #235746; color: #fff5e0; }
.od-article {
  min-width: 0; flex: 1; overflow: auto; padding: 14px 16px; background: #fffbec;
  border: 1px solid #a9bcaa; font: 14px/1.5 Tahoma, sans-serif; overflow-wrap: anywhere;
}
.od-page-heading { margin: 0 0 15px; padding-bottom: 7px; border-bottom: 2px solid #a53830; font: bold 22px Georgia, serif; }
.od-section + .od-section { margin-top: 16px; }
.od-section h4 { margin: 0 0 4px; font-size: 14px; }
.od-section p { margin: 0; }
.od-address { display: block; padding: 6px; background: #e5ecda; }
@container (max-width: 430px) {
  .od-layout { flex-direction: column; }
  .od-contents { display: flex; flex: 0 0 auto; max-width: 100%; overflow-x: auto; }
  .od-topic { flex: 0 0 auto; width: auto; }
  .od-article { padding: 10px; }
}
@media (max-width: 700px) {
  .mobile-desktop .desktop-icons, .flat-fallback .desktop-icons {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); inset: 6px 8px auto;
  }
  .desktop-icons .desktop-icon { width: 100%; min-width: 0; padding: 2px 0; gap: 2px; font-size: 10px; }
  .desktop-icons img, .desktop-icons .launch-icon, .desktop-icons .guide-icon { width: 25px; height: 25px; }
  .desktop-icons .guide-icon { font-size: 18px; }
  .desktop-icons .guide-icon-doc::before { width: 13px; height: 10px; }
  .wallet-window { top: 72px; }
}
