/* ==========================================================================
   os.css — KryptOS desktop environment
   ========================================================================== */

:root {
  --taskbar-h: 52px;
  --titlebar-h: 40px;
}

html, body { height: 100%; }

body {
  overflow: hidden;
  overscroll-behavior: none;
  /* Text stays selectable inside windows — only the desktop chrome opts out */
}

/* --- Wallpaper: generated in CSS, no image request ------------------- */

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #07030f;
  background-image:
    radial-gradient(60ch 45ch at 78% 12%, rgba(168, 85, 247, 0.32), transparent 68%),
    radial-gradient(70ch 50ch at 12% 88%, rgba(236, 72, 153, 0.20), transparent 70%),
    radial-gradient(90ch 60ch at 50% 50%, rgba(34, 211, 238, 0.07), transparent 75%),
    linear-gradient(transparent 95%, rgba(168, 85, 247, 0.14) 95%),
    linear-gradient(90deg, transparent 95%, rgba(168, 85, 247, 0.14) 95%),
    linear-gradient(170deg, #0b0518, #050109 60%);
  background-size: auto, auto, auto, 44px 44px, 44px 44px, auto;
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120ch 90ch at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.62));
}

/* --- Boot screen ------------------------------------------------------ */

#boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  background: #000;
  font-family: var(--font-mono);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
#boot[hidden] { display: none; }
#boot[data-done="true"] { opacity: 0; visibility: hidden; pointer-events: none; }

.boot__mark {
  display: grid;
  place-items: center;
  width: 64px; aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid var(--violet);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #f3ecff;
  animation: bootPulse 1.4s ease-in-out infinite;
}
@keyframes bootPulse {
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.7); border-color: var(--magenta); }
}

.boot__label { color: var(--violet-lt); font-size: 0.85rem; letter-spacing: 0.22em; }

.boot__bar {
  width: min(280px, 60vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  animation: bootFill 1.5s var(--ease) forwards;
}
@keyframes bootFill { to { width: 100%; } }

.boot__skip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.boot__skip:hover { color: var(--text); border-color: var(--violet); }

/* --- Desktop --------------------------------------------------------- */

#desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h);
  z-index: 1;
}

#icons {
  position: absolute;
  inset: 1rem auto 1rem 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 96px);
  gap: 0.35rem;
  align-content: start;
}

.icon {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  width: 88px;
  padding: 0.6rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  text-align: center;
}
.icon:hover, .icon:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}
.icon .glyph {
  font-size: 2rem;
  line-height: 1.2;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.85));
}
.icon .label {
  font-size: 0.75rem;
  font-weight: 400;
  text-shadow: 0 1px 3px #000;
  line-height: 1.25;
}

/* --- Taskbar --------------------------------------------------------- */

.taskbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--taskbar-h);
  padding: 0 0.6rem;
  background: rgba(6, 3, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}

.start-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #14051d;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(219, 39, 119, 0.5);
  transition: transform var(--dur) var(--ease);
}
.start-btn:hover { transform: scale(1.06); }
.start-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--violet-lt); }

.tasklist {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tasklist::-webkit-scrollbar { display: none; }

.taskitem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 190px;
  height: 38px;
  padding: 0 0.7rem;
  flex: none;
  border: 1px solid var(--line-soft);
  border-bottom: 2px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.taskitem:hover { background: rgba(255, 255, 255, 0.11); color: var(--text); }
.taskitem[data-active="true"] {
  color: #fff;
  border-bottom-color: var(--violet);
  background: rgba(168, 85, 247, 0.20);
}
.taskitem .t-label { overflow: hidden; text-overflow: ellipsis; }

.tray {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
  padding-left: 0.5rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.tray .net { color: #6ee7b7; display: grid; place-items: center; }
.tray .net svg { width: 18px; height: 18px; }
.tray .clock {
  display: grid;
  text-align: right;
  line-height: 1.2;
  font-size: 0.75rem;
}
.tray .clock b { color: #fff; font-size: 0.85rem; font-weight: 500; }
.tray .exit {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tray .exit:hover { color: #fca5a5; border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.tray .exit svg { width: 17px; height: 17px; }

/* --- Start menu ------------------------------------------------------ */

#start-menu {
  position: fixed;
  bottom: calc(var(--taskbar-h) + 8px);
  left: 8px;
  z-index: 8999;
  width: min(320px, calc(100vw - 16px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 7, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  opacity: 0;
  translate: 0 14px;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), translate 0.22s var(--ease), visibility 0.22s;
}
#start-menu[data-open="true"] { opacity: 1; translate: 0 0; visibility: visible; }

.start-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.start-head img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  object-fit: cover;
}
.start-head b { display: block; font-size: 0.95rem; font-weight: 600; }
.start-head span { font-size: 0.75rem; color: var(--violet-lt); font-family: var(--font-mono); }

.start-list {
  max-height: min(48vh, 400px);
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
}
.start-list button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.start-list button:hover, .start-list button:focus-visible { background: rgba(168, 85, 247, 0.26); }
.start-list .glyph { font-size: 1.15rem; flex: none; }
.start-list .hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.start-foot { padding: 0.5rem; border-top: 1px solid var(--line); }
.start-foot a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.92rem;
  text-decoration: none;
}
.start-foot a:hover { background: rgba(239, 68, 68, 0.18); color: #fecaca; }

/* --- Windows --------------------------------------------------------- */

.win {
  position: absolute;
  z-index: 10;
  display: none;
  flex-direction: column;
  width: min(820px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - var(--taskbar-h) - 2rem));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 8, 23, 0.94);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win[data-open="true"] { display: flex; animation: winIn 0.22s var(--ease); }
.win[data-min="true"] { display: none; }
.win[data-active="true"] { border-color: rgba(168, 85, 247, 0.55); }

@keyframes winIn {
  from { transform: scale(0.96) translateY(6px); opacity: 0; }
}

.win[data-max="true"] {
  inset: 0 0 auto 0 !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--taskbar-h)) !important;
  border-radius: 0;
  border-width: 0 0 1px;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: var(--titlebar-h);
  flex: none;
  padding: 0 0.4rem 0 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line-soft);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.titlebar:active { cursor: grabbing; }
.win[data-active="true"] .titlebar { background: rgba(37, 16, 61, 0.7); }
.win[data-max="true"] .titlebar { cursor: default; }

.titlebar h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win[data-active="true"] .titlebar h2 { color: #fff; }
.titlebar .glyph { flex: none; }

.win-btns { display: flex; gap: 0.15rem; margin-left: auto; flex: none; }
.win-btns button {
  display: grid;
  place-items: center;
  width: 34px; height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.win-btns button:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.win-btns button.close:hover { background: #dc2626; color: #fff; }
.win-btns svg { width: 13px; height: 13px; }

.win-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.1rem;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: text;
  user-select: text;
  overscroll-behavior: contain;
}
.win-body--flush { padding: 0; }
.win-body::-webkit-scrollbar { width: 10px; height: 10px; }
.win-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); }
.win-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.6);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.resize-handle {
  position: absolute;
  right: 0; bottom: 0;
  width: 20px; height: 20px;
  cursor: nwse-resize;
  touch-action: none;
  background:
    linear-gradient(135deg, transparent 50%, rgba(168, 85, 247, 0.55) 50%, rgba(168, 85, 247, 0.55) 62%,
    transparent 62%, transparent 74%, rgba(168, 85, 247, 0.55) 74%, rgba(168, 85, 247, 0.55) 86%, transparent 86%);
}
.win[data-max="true"] .resize-handle { display: none; }

/* --- Shared app furniture -------------------------------------------- */

.pathbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.filegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.4rem;
}
.file {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  min-height: 96px;
  padding: 0.8rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.file:hover, .file:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.file .glyph { font-size: 1.9rem; line-height: 1; }
.file--off {
  cursor: default;
  opacity: 0.45;
}
.file--off:hover { background: transparent; border-color: transparent; }

/* --- Skills app ------------------------------------------------------ */

.skillset { display: grid; gap: 1.35rem; }
.skillset h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-lt);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.skillrow {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.45rem 0;
}
.skillrow dt { font-weight: 600; font-size: 0.92rem; }
.skillrow dd { margin: 0; color: var(--muted); font-size: 0.88rem; }
.level {
  display: inline-flex;
  gap: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.level i {
  width: 16px; height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.level i[data-on="true"] { background: var(--violet); }
.learning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.learning li {
  padding: 0.25rem 0.6rem;
  border: 1px dashed rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #a5f3fc;
}

/* --- Games app ------------------------------------------------------- */

.gamelist { display: grid; gap: 0.6rem; }
.gamelist a, .gamelist div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  text-decoration: none;
}
.gamelist a:hover { border-color: var(--violet); background: rgba(168, 85, 247, 0.12); }
.gamelist h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.gamelist p { font-size: 0.78rem; color: var(--muted); }
.gamelist .go { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); }
.gamelist .cover {
  width: 60px; height: 48px;
  flex: none;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

/* --- Gallery + lightbox ---------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.8rem;
}
.shot {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07040e;
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}
.shot:hover { border-color: var(--violet); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption, .shot .cap {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(2, 1, 5, 0.94);
  backdrop-filter: blur(8px);
}
#lightbox[data-open="true"] { display: grid; }
#lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--line);
}
#lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
#lightbox .lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
#lightbox .lb-close:hover { background: #dc2626; }

/* --- Contact app ----------------------------------------------------- */

.contact-list { display: grid; gap: 0.7rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}
.contact-row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  width: 74px;
  flex: none;
}
.contact-row dd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.contact-row .copy {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-left: auto;
  flex: none;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.contact-row .copy:hover { color: #fff; border-color: var(--violet); }
.contact-row .copy[data-copied="true"] { color: #86efac; border-color: #86efac; }
.contact-row .copy svg { width: 15px; height: 15px; }

/* --- Paint ------------------------------------------------------------ */

.paint-wrap { display: flex; flex-direction: column; height: 100%; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
}
.toolbar button, .toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}
.toolbar button:hover { background: rgba(168, 85, 247, 0.25); }
.toolbar button[aria-pressed="true"] { background: var(--violet); color: #12041c; border-color: transparent; font-weight: 600; }
.toolbar input[type="color"] {
  width: 32px; height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.toolbar input[type="range"] { width: 92px; accent-color: var(--violet); cursor: pointer; }
.toolbar .spacer { flex: 1; }

.canvas-host {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}
#paint {
  width: 100%; height: 100%;
  display: block;
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* --- Calculator ------------------------------------------------------ */

.calc { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.calc__screen {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  text-align: right;
}
.calc__expr {
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.calc__out {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}
.calc__out[data-error="true"] { color: #fca5a5; font-size: 1rem; font-weight: 400; }

.keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  flex: 1;
}
.keys button {
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.12s;
}
.keys button:hover { background: rgba(168, 85, 247, 0.35); }
.keys button:active { background: var(--violet); color: #12041c; }
.keys .fn { color: var(--violet-lt); }
.keys .op { color: var(--magenta); }
.keys .eq {
  grid-column: span 4;
  background: linear-gradient(150deg, var(--violet), var(--violet-dk));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.keys .eq:hover { background: linear-gradient(150deg, var(--violet-lt), var(--violet)); }

/* --- Terminal -------------------------------------------------------- */

.term {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #04020a;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}
.term__out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  color: #86efac;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term__out .sys { color: var(--violet-lt); }
.term__out .warn { color: var(--amber); }
.term__out .err { color: #fca5a5; }
.term__out .hi { color: #fff; font-weight: 500; }
.term__out .dim { color: var(--dim); }
.term__out a { color: var(--cyan); }
.term__out p { margin: 0; }

.term__line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(134, 239, 172, 0.18);
  background: rgba(0, 0, 0, 0.5);
}
.term__line .ps1 { color: var(--violet-lt); flex: none; }
.term__line input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #d9f99d;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
}
.term__out::-webkit-scrollbar { width: 9px; }
.term__out::-webkit-scrollbar-thumb { background: rgba(134, 239, 172, 0.4); border-radius: 99px; }

/* --- Mobile: windows become full-bleed sheets ------------------------ */

@media (max-width: 760px) {
  #icons {
    inset: 0.75rem 0.75rem auto;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.25rem;
  }
  .icon { width: 100%; }
  .icon .glyph { font-size: 1.7rem; }

  .win, .win[data-max="true"] {
    inset: 0 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0;
    border-width: 0;
  }
  .titlebar { cursor: default; height: 46px; }
  .resize-handle, .win-btns .max { display: none; }
  .win-btns button { width: 40px; height: 36px; }
  .taskitem { max-width: 120px; }
  .tray { gap: 0.5rem; }
  .skillrow { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (max-width: 420px) {
  .tray .net { display: none; }
}
