:root {
  --desktop: #0b7f80;
  --desktop-dark: #087071;
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --white: #ffffff;
  --shadow: #808080;
  --dark-shadow: #404040;
  --black: #0a0a0a;
  --navy: #000080;
  --blue: #1084d0;
  --ink: #171717;
  --muted: #555;
  --timeline: #a5a5a5;
  --active: #008000;
  --evolving: #0000a8;
  --prototype: #b36b00;
  --paused: #6d6d6d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: var(--desktop);
  font-family: Tahoma, "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
  font-size: 12px;
  -webkit-font-smoothing: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px) 0 0 / 4px 4px,
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.08), transparent 29%),
    linear-gradient(135deg, var(--desktop) 0%, var(--desktop-dark) 100%);
}

.win-raised {
  border: 1px solid;
  border-color: var(--white) var(--black) var(--black) var(--white);
  box-shadow:
    inset 1px 1px 0 var(--face-light),
    inset -1px -1px 0 var(--shadow);
}

.win-inset {
  border: 1px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  box-shadow:
    inset 1px 1px 0 var(--dark-shadow),
    inset -1px -1px 0 var(--face-light);
}

.app-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - 32px);
  max-width: 1480px;
  height: calc(100vh - 76px);
  min-height: 610px;
  margin: 16px auto 0;
  padding: 3px;
  background: var(--face);
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 3px 3px 3px 5px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy) 0%, #05469b 58%, var(--blue) 100%);
}

.title-bar__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.title-bar h1,
.title-bar h2 {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-app-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  background: #008080;
  box-shadow: inset -1px -1px #004040;
}

.mini-app-icon::before,
.mini-app-icon::after,
.mini-app-icon i::before,
.mini-app-icon i::after {
  position: absolute;
  width: 4px;
  height: 4px;
  content: "";
  background: #fff;
}

.mini-app-icon::before { left: 2px; top: 2px; }
.mini-app-icon::after { right: 2px; top: 2px; background: #ffdf00; }
.mini-app-icon i::before { left: 2px; bottom: 2px; background: #ff4a4a; }
.mini-app-icon i::after { right: 2px; bottom: 2px; background: #42d65c; }

.window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
}

.window-button,
.classic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-color: var(--white) var(--black) var(--black) var(--white);
  background: var(--face);
  box-shadow:
    inset 1px 1px 0 var(--face-light),
    inset -1px -1px 0 var(--shadow);
  cursor: pointer;
}

.window-button:active,
.classic-button:active,
.classic-button.is-pressed {
  padding-top: 1px;
  padding-left: 1px;
  border-color: var(--black) var(--white) var(--white) var(--black);
  box-shadow: inset 1px 1px 0 var(--shadow);
}

.window-button {
  position: relative;
  width: 20px;
  height: 19px;
  padding: 0;
}

.window-button > span {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
}

.minimize-glyph::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 2px;
  content: "";
  background: #000;
}

.maximize-glyph {
  border: 1px solid #000;
  box-shadow: inset 0 2px #000;
}

.close-glyph::before,
.close-glyph::after {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 2px;
  height: 11px;
  content: "";
  background: #000;
  transform: rotate(45deg);
}

.close-glyph::after {
  transform: rotate(-45deg);
}

.menu-bar {
  position: relative;
  display: flex;
  min-height: 27px;
  align-items: center;
  padding: 1px 5px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px 0 var(--white);
}

.menu-button {
  padding: 4px 8px;
  background: transparent;
  cursor: pointer;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  color: #fff;
  background: var(--navy);
}

.menu-popover {
  position: absolute;
  z-index: 40;
  top: 25px;
  min-width: 190px;
  padding: 3px;
  color: #000;
  background: var(--face);
}

#file-menu { left: 4px; }
#view-menu { left: 48px; }
#help-menu { left: 94px; }

.menu-popover button,
.menu-popover a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  color: #000;
  text-decoration: none;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.menu-popover button span,
.menu-popover a span {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.menu-popover button:hover,
.menu-popover button:focus-visible,
.menu-popover a:hover,
.menu-popover a:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.menu-separator {
  height: 2px;
  margin: 3px 2px;
  border-top: 1px solid var(--shadow);
  border-bottom: 1px solid var(--white);
}

.hero-panel {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--shadow);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(223, 223, 223, 0.95)),
    repeating-linear-gradient(135deg, #fff 0, #fff 2px, #dfdfdf 2px, #dfdfdf 4px);
  box-shadow: 0 1px 0 #fff;
}

.hero-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
}

.hero-copy h2 {
  margin: 2px 0 5px;
  color: #11115d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1;
  letter-spacing: -0.6px;
}

.hero-copy p {
  margin: 0;
  color: #454545;
  font-size: 12px;
}

.hero-copy .eyebrow {
  color: #000080;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}


.hero-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-width: 215px;
  padding: 8px 11px;
  background: #f4f4ed;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: #006000;
  font-size: 11px;
}

.hero-meta span:not(.led) {
  margin-top: 3px;
  color: #555;
  font-size: 9px;
}

.led {
  width: 9px;
  height: 9px;
  border: 1px solid #004b00;
  border-radius: 50%;
  background: #19b719;
  box-shadow: inset 1px 1px #82ff82, 0 0 5px rgba(0, 160, 0, 0.45);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
}

.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--face-light);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  overflow: hidden;
  color: #00005e;
  font-family: "Courier New", monospace;
  font-size: 19px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card div > span {
  margin-top: 3px;
  color: #555;
  font-size: 9px;
}

.stat-icon {
  position: relative;
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.stat-icon--products::before,
.folder-icon,
.start-icon--folder {
  display: block;
  width: 25px;
  height: 17px;
  border: 1px solid #5c4d00;
  background: #ffe254;
  box-shadow: inset 1px 1px #fff6a3, inset -1px -1px #b28800;
}

.stat-icon--products::before {
  position: absolute;
  right: 0;
  bottom: 2px;
  content: "";
}

.stat-icon--products::after,
.folder-icon::before,
.start-icon--folder::before {
  position: absolute;
  width: 11px;
  height: 5px;
  content: "";
  border: 1px solid #5c4d00;
  border-bottom: 0;
  background: #ffe254;
}

.stat-icon--products::after { top: 4px; left: 3px; }

.stat-icon--active {
  border: 1px solid #004400;
  background: #001e00;
  box-shadow: inset 1px 1px #4f774f;
}

.stat-icon--active::after {
  position: absolute;
  inset: 7px 3px;
  content: "";
  background: linear-gradient(135deg, transparent 0 22%, #42ff42 22% 28%, transparent 28% 42%, #42ff42 42% 48%, transparent 48% 100%);
}

.stat-icon--categories {
  background:
    linear-gradient(#ef4f4f 0 0) 1px 1px / 11px 11px no-repeat,
    linear-gradient(#346be6 0 0) 16px 1px / 11px 11px no-repeat,
    linear-gradient(#f0ce35 0 0) 1px 16px / 11px 11px no-repeat,
    linear-gradient(#3fb75f 0 0) 16px 16px / 11px 11px no-repeat;
}

.stat-icon--span::before {
  position: absolute;
  inset: 2px 0 0 1px;
  content: "";
  border: 1px solid #000;
  background: #fff;
  box-shadow: inset 0 5px #000080, inset 1px 1px #c8c8ff;
}

.stat-icon--span::after {
  position: absolute;
  top: 11px;
  left: 6px;
  width: 17px;
  height: 10px;
  content: "";
  background:
    linear-gradient(90deg, #808080 1px, transparent 1px) 0 0 / 6px 5px,
    linear-gradient(#808080 1px, transparent 1px) 0 0 / 6px 5px;
}

.explorer-shell {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 222px minmax(0, 1fr);
  margin: 0 5px 5px;
  overflow: hidden;
  background: #fff;
}

.sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 9px 8px;
  overflow: auto;
  border-right: 1px solid var(--shadow);
  background: var(--face-light);
  box-shadow: inset -1px 0 #fff;
}

.pane-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 10px;
  color: #00005e;
}

.folder-icon {
  position: relative;
  width: 22px;
  height: 15px;
}

.folder-icon::before {
  top: -5px;
  left: 0;
  width: 9px;
  height: 4px;
}

.tree {
  position: relative;
  padding: 2px 0 4px 11px;
}

.tree::before {
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 16px;
  width: 1px;
  content: "";
  background: repeating-linear-gradient(to bottom, #777 0 1px, transparent 1px 3px);
}

.tree-button {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 1px 0;
  padding: 6px 6px 6px 17px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.tree-button::before {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 10px;
  height: 1px;
  content: "";
  background: repeating-linear-gradient(to right, #777 0 1px, transparent 1px 3px);
}

.tree-button:hover .tree-label,
.tree-button:focus-visible .tree-label {
  color: #fff;
  background: var(--navy);
  outline: 1px dotted #fff;
}

.tree-button.is-active .tree-label {
  color: #fff;
  background: var(--navy);
}

.tree-node-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #555;
  color: #fff;
  background: #7b7b7b;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 700;
}

.tree-node-icon[data-category="all"] { color: #000; background: #ffe254; }
.tree-node-icon[data-category="trading"] { background: #006400; }
.tree-node-icon[data-category="research"] { background: #4b318d; }
.tree-node-icon[data-category="web"] { background: #000080; }
.tree-node-icon[data-category="community"] { background: #a52955; }
.tree-node-icon[data-category="content"] { color: #000; background: #e7bf2c; }
.tree-node-icon[data-category="infra"] { background: #4a5a69; }

.tree-label {
  overflow: hidden;
  padding: 2px 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-count {
  margin-left: auto;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.tree-button.is-active .tree-count {
  color: #fff;
}

.side-note {
  margin-top: auto;
  padding: 9px;
  color: #555;
  background: #efefdf;
  font-size: 9px;
  line-height: 1.55;
}

.side-note strong {
  display: block;
  margin-bottom: 3px;
  color: #000080;
}

.side-note p {
  margin: 0;
}

.content-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #f8f8f8;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid var(--shadow);
  background: var(--face);
  box-shadow: 0 1px #fff;
}

.search-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-wrap input {
  width: 100%;
  height: 29px;
  padding: 4px 9px 4px 31px;
  border-radius: 0;
  background: #fff;
}

.search-wrap input::placeholder {
  color: #7b7b7b;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 9px;
  width: 11px;
  height: 11px;
  border: 2px solid #353535;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  content: "";
  background: #353535;
  transform: rotate(45deg);
}

.select-wrap {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 10px;
}

.select-wrap select {
  height: 29px;
  min-width: 120px;
  padding: 2px 24px 2px 7px;
  border-radius: 0;
  background: #fff;
}

.classic-button {
  min-height: 29px;
  gap: 5px;
  padding: 5px 10px;
  white-space: nowrap;
}

.map-view-link {
  color: #000;
  text-decoration: none;
}

.classic-button.icon-only {
  width: 31px;
  padding: 0;
  font-size: 18px;
}

.primary-action {
  min-width: 76px;
  box-shadow:
    0 0 0 1px #000,
    inset 1px 1px 0 var(--white),
    inset -1px -1px 0 var(--shadow);
}

.result-bar {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 11px;
  border-bottom: 1px solid #c8c8c8;
  background: #efefef;
}

.result-count {
  margin-right: 6px;
  color: #000080;
  font-weight: 700;
}

#result-context {
  color: #666;
  font-size: 9px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #555;
  font-size: 9px;
}

.legend > span,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.65);
}

.status-dot--active { background: #1ab21a; }
.status-dot--evolving { background: #376fe4; }
.status-dot--prototype { background: #e39a22; }
.status-dot--paused { background: #9b9b9b; }


.status-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto 72px;
  gap: 4px;
  padding: 1px 1px 0;
}

.status-field {
  min-height: 24px;
  padding: 4px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-field--main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-ready {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #005900;
  border-radius: 50%;
  background: #20af20;
}

.status-field--clock {
  text-align: center;
}

.taskbar {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 39px;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  background: var(--face);
}

.start-button {
  min-height: 30px;
  gap: 5px;
  padding: 3px 8px;
  font-size: 12px;
}

.windows-mark {
  display: grid;
  width: 18px;
  height: 18px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  transform: skewY(-8deg);
}

.windows-mark i:nth-child(1) { background: #e83b3b; }
.windows-mark i:nth-child(2) { background: #2d75e8; }
.windows-mark i:nth-child(3) { background: #27a34b; }
.windows-mark i:nth-child(4) { background: #f0ce2d; }

.taskbar-divider {
  align-self: stretch;
  width: 3px;
  border-left: 1px solid var(--shadow);
  border-right: 1px solid #fff;
}

.task-button {
  display: flex;
  width: 210px;
  height: 29px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--face-light);
}

.tray {
  display: flex;
  min-width: 78px;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  padding: 3px 8px;
}

.tray-light {
  width: 7px;
  height: 7px;
  border: 1px solid #005000;
  border-radius: 50%;
  background: #22bb22;
}

.start-menu {
  position: fixed;
  z-index: 80;
  bottom: 38px;
  left: 3px;
  display: grid;
  width: 260px;
  grid-template-columns: 28px 1fr;
  padding: 3px;
  background: var(--face);
}

.start-rail {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(#000080, #1084d0);
}

.start-rail span {
  position: absolute;
  bottom: 7px;
  left: 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: left bottom;
}

.start-options {
  padding: 2px;
}

.start-options button {
  display: grid;
  width: 100%;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.start-options button:hover,
.start-options button:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.start-options button strong,
.start-options button small {
  display: block;
}

.start-options button small {
  margin-top: 2px;
  color: #666;
  font-size: 9px;
}

.start-options button:hover small,
.start-options button:focus-visible small {
  color: #ddd;
}

.start-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.start-icon--folder {
  width: 28px;
  height: 19px;
}

.start-icon--folder::before {
  top: -6px;
  left: 0;
}

.start-icon--pulse {
  border: 1px solid #003700;
  color: #40ff40;
  background: #001d00;
}

.start-icon--pulse::after {
  content: "⌁";
  font-size: 22px;
  font-weight: 700;
}

.start-icon--help {
  border: 1px solid #000;
  color: #fff;
  background: #000080;
  font-size: 18px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
}

.dialog-window {
  width: min(670px, 100%);
  padding: 3px;
  background: var(--face);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.25), inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
}

.dialog-window--about {
  width: min(570px, 100%);
}

.dialog-body {
  padding: 14px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px #fff;
}

.detail-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #000;
  color: #fff;
  background: #000080;
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.45), inset -2px -2px rgba(0, 0, 0, 0.45);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.detail-heading h3 {
  margin: 0 0 5px;
  color: #00005e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.detail-heading p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.detail-field {
  min-width: 0;
  padding: 8px 9px;
  background: #efefdf;
}

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

.detail-field dt {
  margin-bottom: 4px;
  color: #555;
  font-size: 9px;
}

.detail-field dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.detail-field code {
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.tech-chip {
  display: inline-block;
  margin: 1px 3px 2px 0;
  padding: 2px 5px;
  border: 1px solid;
  border-color: #fff #7a7a7a #7a7a7a #fff;
  color: #000060;
  background: #d9d9d9;
  font-family: "Courier New", monospace;
  font-size: 9px;
}

.evidence-list {
  margin: 0;
  padding-left: 18px;
}

.evidence-list li + li {
  margin-top: 3px;
}

.confidence-note {
  margin-top: 10px;
  padding: 7px 9px;
  color: #4f4f4f;
  border: 1px dotted #6d6d6d;
  background: #fff;
  font-size: 9px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 11px 10px;
  border-top: 1px solid #fff;
}

.dialog-hint {
  margin-right: auto;
  color: #666;
  font-size: 9px;
}

.about-body {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 17px;
  padding: 19px;
}

.about-logo {
  display: grid;
  width: 96px;
  height: 86px;
  place-items: center;
  color: #fff;
  border: 2px solid;
  border-color: #fff #3f3f3f #3f3f3f #fff;
  background: linear-gradient(135deg, #000080, #1084d0);
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.35);
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
}

.about-logo span {
  color: #ffdf00;
}

.about-body h3 {
  margin: 0 0 8px;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.about-body p {
  margin: 0 0 8px;
  color: #444;
  line-height: 1.55;
}

.privacy-note {
  padding: 7px;
  border: 1px dotted #777;
  background: #efefdf;
  font-size: 9px;
}

@media (max-width: 920px) {
  .app-window {
    width: calc(100% - 16px);
    height: calc(100vh - 62px);
    min-height: 560px;
    margin-top: 8px;
  }

  .hero-panel {
    min-height: 78px;
    padding: 9px 12px;
  }

  .hero-meta {
    min-width: 180px;
  }

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

  .stat-card {
    padding: 5px 8px;
  }

  .stat-card strong {
    font-size: 16px;
  }

  .explorer-shell {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .side-note {
    display: none;
  }

  .legend {
    display: none;
  }

  .product-card__button {
    grid-template-columns: 38px minmax(0, 1fr) 108px;
  }

  .map-view-label {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .app-window {
    width: calc(100% - 8px);
    height: auto;
    min-height: calc(100vh - 49px);
    margin: 4px 4px 45px;
  }

  .hero-panel {
    align-items: flex-start;
  }

  .hero-copy {
    gap: 10px;
  }

  .computer-mark {
    display: none;
  }

  .hero-copy h2 {
    font-size: 20px;
  }

  .hero-copy p:not(.eyebrow) {
    display: none;
  }

  .hero-meta {
    min-width: 0;
  }

  .hero-meta div span {
    display: none !important;
  }

  .explorer-shell {
    display: block;
    overflow: visible;
  }

  .sidebar {
    padding: 5px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--shadow);
  }

  .pane-heading {
    display: none;
  }

  .tree {
    display: flex;
    min-width: max-content;
    padding: 0;
  }

  .tree::before,
  .tree-button::before {
    display: none;
  }

  .tree-button {
    width: auto;
    padding: 5px 7px;
  }

  .tree-node-icon {
    display: none;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-wrap {
    flex-basis: 100%;
  }

  .select-wrap {
    flex: 1;
  }

  .select-wrap select {
    flex: 1;
    min-width: 0;
  }

  .timeline-scroll {
    max-height: none;
    overflow: visible;
  }

  .timeline {
    padding: 13px 9px 32px;
  }

  .timeline::before {
    left: 14px;
  }

  .month-group {
    display: block;
    margin-left: 19px;
  }

  .month-label {
    position: relative;
    top: auto;
    margin-bottom: 7px;
    padding: 0;
    text-align: left;
  }

  .month-label strong,
  .month-label span {
    display: inline;
  }

  .month-label span {
    margin-left: 4px;
  }

  .month-label::after {
    top: 3px;
    right: auto;
    left: -25px;
    width: 9px;
    height: 9px;
  }

  .product-card::before {
    display: none;
  }

  .product-card__button {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .product-aside {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 0;
    border-top: 1px solid #b0b0b0;
    border-left: 0;
    box-shadow: 0 -1px #fff;
    text-align: left;
  }

  .product-updated,
  .open-label {
    margin-top: 0;
  }

  .open-label {
    display: none !important;
  }

  .status-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .status-field--clock {
    display: none;
  }

  .task-button {
    width: min(50vw, 210px);
  }

  .dialog-body {
    max-height: 68vh;
    overflow: auto;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-field--wide {
    grid-column: auto;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-logo {
    width: 72px;
    height: 58px;
  }
}

@media (max-width: 430px) {
  .hero-meta,
  .stat-icon,
  #sort-label,
  .select-wrap > span,
  .dialog-hint {
    display: none;
  }

  .stats-strip {
    gap: 4px;
    padding: 5px;
  }

  .stat-card {
    justify-content: center;
  }

  .result-bar {
    min-height: 31px;
  }

  .product-icon {
    width: 31px;
    height: 31px;
  }

  .product-icon::before {
    width: 20px;
    height: 15px;
  }

  .product-name {
    font-size: 13px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
