/* ekowOS site layer: the live page around the design system
   (tokens.css + ekowos.css + os.css). Tokens only. */

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-desktop);
}

button,
input {
  font: inherit;
}

a {
  color: var(--text-accent);
}

/* ---------- the screen ---------- */

.os-screen {
  position: fixed;
  inset: 0;
}

.os-wall {
  object-fit: cover;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

.os-sysbar {
  z-index: var(--z-systembar);
}

.os-sysbar nav {
  display: flex;
  gap: 2px;
}

.os-sysbar a.eos-sysbar__item {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.os-icons {
  top: calc(var(--systembar-h) + 16px);
}

a.eos-dicon,
a.eos-dicon:hover {
  text-decoration: none;
}

.os-windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.os-windows > * {
  pointer-events: auto;
}

/* ---------- windows ---------- */

.os-win {
  position: absolute;
  width: var(--window-w);
  height: var(--window-h);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--systembar-h) - var(--taskbar-h) - 28px);
  transition: box-shadow var(--dur-standard) var(--ease-standard),
    transform var(--dur-emphasised) var(--ease-enter),
    opacity var(--dur-standard) var(--ease-standard),
    left var(--dur-emphasised) var(--ease-standard),
    top var(--dur-emphasised) var(--ease-standard),
    width var(--dur-emphasised) var(--ease-standard),
    height var(--dur-emphasised) var(--ease-standard);
}

.os-win.is-compact {
  width: var(--window-compact-w);
  height: var(--window-compact-h);
}

.os-win.is-wide {
  width: var(--window-wide-w);
  height: var(--window-wide-h);
}

.os-win.is-dragging {
  transition: none;
  user-select: none;
}

.os-win .eos-win__bar {
  cursor: default;
}

.os-win.is-closed {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: transform var(--dur-quick) var(--ease-exit),
    opacity var(--dur-quick) var(--ease-exit), visibility 0s var(--dur-quick);
}

.os-win.is-minimized {
  opacity: 0;
  transform: translateY(42vh) scale(0.25);
  transform-origin: 0 100%;
  pointer-events: none;
  visibility: hidden;
  transition: transform var(--dur-emphasised) var(--ease-exit),
    opacity var(--dur-emphasised) var(--ease-exit),
    visibility 0s var(--dur-emphasised);
}

.os-win.is-maximized {
  left: 0 !important;
  top: var(--systembar-h) !important;
  width: 100vw !important;
  height: calc(100dvh - var(--systembar-h) - var(--taskbar-h) - 16px) !important;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.os-win .os-grip {
  cursor: nwse-resize;
  z-index: 2;
}

.os-win .os-back {
  display: none;
}

/* glass off: solid frames */
.no-glass .eos-glass-bar,
.no-glass .eos-glass-panel,
.no-glass .eos-glass-frame {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.no-glass .eos-glass-bar {
  background: var(--bg-surface);
}

.no-glass .eos-glass-panel {
  background: var(--bg-raised);
}

.no-glass .eos-glass-frame {
  background: var(--bg-surface);
}

/* reduce motion: quick fades instead of springs and slides */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: var(--dur-instant) !important;
  animation-iteration-count: 1 !important;
  transition-duration: var(--dur-instant) !important;
}

.reduce-motion .os-win.is-minimized,
.reduce-motion .os-win.is-closed {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .os-win,
  .os-win.is-minimized,
  .os-win.is-closed {
    transform: none;
    transition-duration: var(--dur-instant);
  }
}

/* ---------- system menu, toasts, tooltip ---------- */

.os-sysmenu {
  position: absolute;
  left: 8px;
  top: calc(var(--systembar-h) + 4px);
  z-index: var(--z-menu);
  width: 248px;
  transform-origin: 0 0;
  animation: os-pop var(--dur-standard) var(--ease-enter);
}

.os-sysmenu[hidden] {
  display: none;
}

.os-sysmenu .eos-menu__item {
  cursor: default;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  font: inherit;
}

.os-sysmenu .eos-menu__item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.os-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
}

.os-menu-head > div {
  display: flex;
  flex-direction: column;
}

@keyframes os-pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}

.os-toasts {
  position: absolute;
  right: 16px;
  top: calc(var(--systembar-h) + 16px);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-toasts .eos-toast {
  animation: os-toast-in var(--dur-emphasised) var(--ease-enter);
}

.os-toasts .eos-toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: all var(--dur-standard) var(--ease-exit);
}

@keyframes os-toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

.os-tip {
  position: absolute;
  z-index: var(--z-menu);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.os-tip[hidden] {
  display: none;
}

/* ---------- taskbar extras ---------- */

.os-taskrow .eos-taskbar {
  max-width: calc(100vw - 180px);
  overflow-x: auto;
  scrollbar-width: none;
}

.eos-taskbar .eos-task svg.app {
  transition: transform var(--dur-quick) var(--ease-standard),
    opacity var(--dur-quick) var(--ease-standard);
}

.eos-task:hover svg.app {
  transform: translateY(-1px);
}

.eos-task.is-minimized:hover svg.app {
  transform: scale(0.86) translateY(-1px);
}

.eos-task.is-attention svg.app {
  animation: eos-bounce var(--dur-spring) var(--ease-spring) 3;
}

.os-tray .eos-btn--icon {
  color: var(--text-primary);
  position: relative;
}

.os-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-solid);
  box-shadow: 0 0 0 2px var(--bg-surface);
}

/* ---------- About ---------- */

.os-about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 12px 8px 0;
}

.os-about h1 {
  font: 700 50px/54px var(--font-sans);
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}

.os-about .os-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.os-deploy {
  position: relative;
  transform: rotate(2.5deg);
  margin-right: 12px;
}

.os-deploy__card {
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 14px;
  padding: 12px 16px 18px;
  font: 400 12.5px/21px var(--font-mono);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 0 0 1px var(--ink-0),
    var(--shadow-window-focused);
}

.os-deploy__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.os-deploy__card .l {
  white-space: pre;
  opacity: 0;
  animation: os-line var(--dur-standard) var(--ease-enter) forwards;
}

.os-deploy__card .l b {
  color: var(--term-prompt);
}

.os-deploy__card .ok {
  color: var(--success);
}

.os-deploy__card .m {
  color: var(--term-muted);
}

.os-deploy .eos-chip {
  position: absolute;
  right: -12px;
  top: -14px;
  background: var(--accent-solid);
  color: var(--text-on-accent);
  box-shadow: 0 2px 0 var(--accent-edge), 0 6px 14px -4px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg) scale(0);
  animation: os-chip var(--dur-spring) var(--ease-spring) 2.9s forwards;
}

@keyframes os-line {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes os-chip {
  to {
    transform: rotate(-2deg) scale(1);
  }
}

.os-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.os-stats .eos-stat {
  width: auto;
}

/* ---------- generic text windows ---------- */

.os-doc {
  max-width: 68ch;
}

.os-doc p {
  margin: 0 0 12px;
  font: 400 15px/24px var(--font-sans);
}

.os-doc .cyan {
  display: inline-block;
  font: 600 18px/24px var(--font-sans);
  color: var(--text-primary);
  margin-top: 4px;
}

.os-doc .muted {
  color: var(--text-muted);
}

.os-doc .command {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-accent);
}

.os-doc ul {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}

.os-doc li {
  position: relative;
  padding: 3px 0 3px 18px;
  font: 400 15px/23px var(--font-sans);
}

.os-doc li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.os-doc section + section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.os-cmdline {
  margin: 0 0 6px;
}

.os-heading {
  margin: 4px 0 20px;
}

/* skills */
.os-skills {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.os-skills > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* projects */
.os-proj-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.os-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.os-projects .eos-project {
  width: auto;
}

.os-projects.is-list {
  grid-template-columns: 1fr;
}

.os-projects.is-list .eos-project {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.os-projects.is-list .eos-project__thumb {
  height: auto;
  border-bottom: 0;
  border-right: 1px solid var(--border-subtle);
}

.eos-project__thumb .eos-chip {
  position: absolute;
  left: 12px;
  top: 12px;
}

.eos-project__thumb svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(var(--shadow-icon));
}

/* resume */
.os-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.os-pdf-fallback {
  padding: 40px;
  text-align: center;
}

/* ---------- Files ---------- */

.os-files {
  padding: 0 !important;
  display: flex;
  overflow: hidden !important;
}

.os-files .eos-side {
  width: 196px;
  flex: none;
  padding: 8px;
  box-sizing: border-box;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  overflow: auto;
}

.os-files .eos-side__item {
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.os-disk {
  margin: 16px 6px 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-sunken);
}

.os-disk .eos-progress {
  width: 100%;
  margin: 8px 0 6px;
}

.os-disk .eos-progress > i {
  animation: none;
}

.os-files__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.os-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.os-toolbar .grow {
  flex: 1;
}

.os-toolbar .eos-input--search {
  width: 180px;
  height: 30px;
}

.os-toolbar .eos-seg__item {
  height: 24px;
  padding: 0 8px;
}

.os-files__content {
  flex: 1;
  display: flex;
  min-height: 0;
}

.os-files__grid {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  overflow: auto;
}

.os-files__grid.is-list {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 10px 12px;
}

.os-files .eos-ftile,
.os-files .eos-frow {
  cursor: default;
  font: inherit;
  text-align: left;
}

.os-files .eos-ftile {
  background: none;
}

.os-files .eos-frow {
  border: 0;
  background: none;
  width: 100%;
}

.os-files .eos-frow.is-selected {
  background: var(--accent-solid);
}

.os-files__info {
  width: 232px;
  flex: none;
  border-left: 1px solid var(--border-subtle);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.os-peek {
  background: var(--bg-sunken);
  border-radius: 10px;
  padding: 12px;
  font: 400 11px/17px var(--font-mono);
  color: var(--text-secondary);
  height: 132px;
  overflow: hidden;
  white-space: pre-wrap;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.os-files__info .t-h3 {
  font-size: 15px;
  line-height: 20px;
  word-break: break-all;
}

.os-files__info .eos-specs {
  margin: 0;
  padding: 10px 12px;
}

.os-files__info .eos-btn {
  justify-content: center;
}

.os-statusbar {
  display: flex;
  gap: 12px;
  padding: 6px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
}

.os-statusbar .grow {
  flex: 1;
}

.os-empty {
  margin: auto;
  color: var(--text-muted);
  font: 400 13px/20px var(--font-sans);
  text-align: center;
}

/* ---------- Reader ---------- */

.os-reader {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.os-reader__body {
  flex: 1;
  overflow: auto;
}

.os-reader article {
  max-width: 60ch;
  margin: 0 auto;
  padding: 32px 40px 40px;
  --reader-size: 17px;
}

.os-reader article.is-mono .os-doc,
.os-reader article.is-mono .os-doc li,
.os-reader article.is-mono .os-doc p {
  font-family: var(--font-mono);
  font-size: calc(var(--reader-size) - 3px);
}

.os-reader .os-doc p,
.os-reader .os-doc li {
  font-size: var(--reader-size);
  line-height: 1.6;
}

/* ---------- Settings ---------- */

.os-settings {
  padding: 0 !important;
  display: flex;
  overflow: hidden !important;
}

.os-settings .eos-side {
  width: 196px;
  flex: none;
  padding: 10px 8px;
  box-sizing: border-box;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
}

.os-settings .eos-side .eos-input--search {
  height: 30px;
  margin: 0 2px 8px;
  width: auto;
}

.os-settings .eos-side__item {
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.os-settings__main {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
  overflow: auto;
}

.os-set-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.os-set-row > div:first-child {
  flex: 1;
}

.os-set-block {
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.os-set-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.os-settings .eos-walls {
  flex-wrap: wrap;
}

.os-settings .eos-wallthumb__img {
  position: relative;
  overflow: hidden;
  display: block;
  width: 132px;
  height: 82px;
}

.os-settings .eos-wallthumb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.os-settings .eos-toggle {
  border: 0;
  background: none;
  padding: 0;
}

.os-settings .eos-seg__item svg {
  margin-right: 2px;
}

/* ---------- dialog ---------- */

.os-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  display: grid;
  place-items: center;
  animation: os-fade var(--dur-standard) var(--ease-standard);
}

.os-overlay .eos-scrim {
  position: absolute;
}

.os-overlay .eos-dialog {
  box-shadow: var(--glass-rim-frame), var(--shadow-window-focused),
    0 0 0 1px var(--os-glow-edge), 0 0 0 5px var(--os-glow);
  animation: os-pop var(--dur-emphasised) var(--ease-enter);
}

.os-overlay .eos-specs {
  margin: 0 0 24px;
}

@keyframes os-fade {
  from {
    opacity: 0;
  }
}

/* ---------- boot + shut down ---------- */

.os-boot,
.os-shut {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  background: var(--ink-0);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--font-sans);
  transition: opacity var(--dur-slow) var(--ease-standard);
}

.os-boot.is-done,
.os-shut.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.os-boot .eos-dots {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.os-boot__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(63, 185, 80, 0.12), transparent 70%);
}

.os-boot__corner {
  position: absolute;
  top: 28px;
}

.os-boot__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.os-boot__mark {
  filter: drop-shadow(0 0 28px rgba(63, 185, 80, 0.35));
  transition: transform var(--dur-emphasised) var(--ease-spring);
}

.os-boot__word {
  font: 700 30px/36px var(--font-mono);
  letter-spacing: -0.02em;
}

.os-boot .eos-progress {
  width: 260px;
  margin-top: 6px;
}

.os-boot .eos-progress > i {
  animation: none;
  width: 0;
  transition: width var(--dur-slow) var(--ease-standard);
}

.os-boot .eos-bootlog {
  left: 32px;
  bottom: 28px;
  font-size: 12.5px;
  line-height: 20px;
}

.os-boot .eos-boot__hint {
  right: 32px;
  bottom: 28px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.os-shut h1 {
  margin: 8px 0 0;
  font: 600 30px/38px var(--font-sans);
  letter-spacing: -0.015em;
  text-align: center;
}

.os-shut p {
  margin: 0;
  font: 400 15px/24px var(--font-sans);
  color: var(--text-secondary);
  text-align: center;
  max-width: 34ch;
}

.os-shut__actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.os-shut__foot {
  position: absolute;
  bottom: 28px;
}

/* ---------- terminal ---------- */

#terminal {
  overflow-y: auto;
  overflow-x: hidden;
}

#terminal p,
#terminal ul {
  margin: 0;
  padding: 0;
}

#terminal ul {
  list-style: none;
  padding-left: 4px;
}

#terminal ul li::before {
  content: '- ';
  color: var(--term-muted);
}

#terminal .cyan,
#terminal .dir {
  color: var(--term-path);
}

#terminal .green {
  color: var(--term-prompt);
}

#terminal .muted,
#terminal .tab-options {
  color: var(--term-muted);
}

#terminal .command {
  color: var(--term-command);
}

#terminal .error {
  color: var(--term-error);
}

#terminal a {
  color: var(--term-path);
}

#terminal pre {
  margin: 0;
  font: inherit;
}

.output-line {
  word-wrap: break-word;
}

.prompt-line {
  white-space: nowrap;
}

.prompt {
  margin-right: 8px;
}

.prompt-input {
  white-space: pre;
}

#terminal-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.os-term-chips {
  display: none;
}

/* ---------- crawlable profile: visually hidden; windows show the same ---------- */

.content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- phone home (hidden on desktop) ---------- */

.os-home {
  display: none;
}

/* ==========================================================================
   Phone: one app at a time, same meadow
   ========================================================================== */

@media (max-width: 760px) {
  html,
  body {
    overflow: hidden;
  }

  .os-sysbar {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    height: 44px;
    border: 0;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0;
  }

  .os-sysbar > :not(.eos-sysmenu):not(.os-theme-btn) {
    display: none !important;
  }

  .os-sysbar .eos-sysmenu {
    height: 36px;
    border-radius: var(--radius-pill);
    background: var(--glass-panel);
    -webkit-backdrop-filter: blur(var(--blur-panel));
    backdrop-filter: blur(var(--blur-panel));
    box-shadow: var(--glass-rim-panel), var(--shadow-raised);
    padding: 0 14px;
  }

  .os-sysbar .eos-sysmenu .eos-i {
    display: none;
  }

  .os-sysbar .os-theme-btn {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--glass-panel);
    -webkit-backdrop-filter: blur(var(--blur-panel));
    backdrop-filter: blur(var(--blur-panel));
    box-shadow: var(--glass-rim-panel), var(--shadow-raised);
  }

  .os-sysmenu {
    left: 12px;
    top: 58px;
  }

  .os-icons {
    display: none;
  }

  .os-home {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 96px;
    padding: 0 16px;
    overflow-y: auto;
  }

  .os-home__hero {
    padding: 20px 20px 22px;
    border-radius: var(--radius-2xl);
  }

  .os-home__hero h2 {
    font: 700 26px/31px var(--font-sans);
    letter-spacing: -0.02em;
    margin: 8px 0 18px;
  }

  .os-home__hero .os-actions {
    display: flex;
    gap: 10px;
  }

  .os-home__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    row-gap: 6px;
  }

  .os-home__grid .eos-dicon {
    width: 82px;
  }

  .os-home__grid .eos-dicon__art,
  .os-home__grid .eos-dicon__art svg {
    width: 58px;
    height: 58px;
  }

  .os-win,
  .os-win.is-compact,
  .os-win.is-wide {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 88px) !important;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: calc(var(--z-systembar) + 1) !important;
  }

  .os-win .eos-win__body {
    margin: 0;
    border-radius: 0;
    border-width: 1px 0 0;
  }

  .os-win .eos-win__bar {
    height: 60px;
    padding: 0 12px;
  }

  .os-win .eos-win__title {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 19px;
  }

  .os-win .eos-win__title small {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
  }

  .os-win .os-back {
    display: inline-flex;
  }

  .os-win .eos-win__controls {
    background: none;
    box-shadow: none;
  }

  .os-win .eos-wc:not(.eos-wc--close),
  .os-win .os-grip,
  .os-win.is-focused .eos-win__bar::before {
    display: none;
  }

  .os-win.is-focused {
    box-shadow: none;
  }

  .os-about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .os-about h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .os-about .os-actions .eos-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .os-deploy {
    margin: 8px 8px 0;
  }

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

  .os-files .eos-side,
  .os-files__info,
  .os-settings .eos-side {
    display: none;
  }

  .os-toolbar .eos-input--search {
    width: auto;
    flex: 1;
  }

  .os-settings__main {
    padding: 20px 16px;
  }

  .os-set-row {
    flex-wrap: wrap;
  }

  .os-term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
    background: var(--term-bg);
    border-top: 1px solid var(--border-subtle);
  }

  .os-term-chips button {
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--term-fg);
    font: 500 13px/1 var(--font-mono);
  }

  .os-taskrow {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .os-taskrow .eos-taskbar:not(.os-tray) {
    max-width: none;
    width: 100%;
    justify-content: space-around;
    border-radius: 24px;
    padding: 8px;
  }

  .os-tray,
  .os-taskbar .eos-taskbar__sep,
  .os-taskbar .is-desktop-only {
    display: none !important;
  }

  .os-toasts {
    left: 12px;
    right: 12px;
    top: 64px;
  }

  .os-toasts .eos-toast {
    width: auto;
  }

  .os-overlay .eos-dialog {
    width: calc(100vw - 32px);
  }

  .os-boot .eos-bootlog,
  .os-boot__corner {
    display: none;
  }
}

/* ---------- cursors: desktop conventions, as in the design system ----------
   pointing hand: buttons and controls (from ekowos.css)
   arrow: desktop icons, file tiles, menu items, title bars
   I-beam: anywhere you type; grabbing while moving a window */

a.eos-dicon {
  cursor: default;
}

#terminal {
  cursor: text;
}

.os-win.is-dragging .eos-win__bar {
  cursor: grabbing;
}

.os-boot {
  cursor: progress;
}

.eos-input,
.eos-input input {
  cursor: text;
}

/* ---------- first paint during boot ----------
   Set by the inline script in <head> before anything renders, so the
   desktop never flashes before the boot screen appears. */

html.is-booting,
html.is-booting body {
  background: var(--ink-0);
}

html.is-booting .os-screen {
  visibility: hidden;
}
