/* =========================================================
   UtkarshOS
   ========================================================= */
:root {
  --font: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --text: #e9ecf2;
  --muted: #98a1b3;
  --dim: #6b7385;
  --accent: #c6f432;
  --accent-ink: #0b0d11;
  --blue: #67b7ff;
  --ok: #4ade80;
  --win: rgba(22, 25, 33, .9);
  --win-solid: #171a22;
  --panel: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(18, 20, 27, .55);
  --menubar: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font: 14px/1.55 var(--font);
  color: var(--text);
  background: #0a0c11;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); }
code { font-size: .9em; background: rgba(255,255,255,.08); padding: .1em .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.linkish { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Wallpapers ---------- */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body[data-wall='aurora']::before {
  background:
    radial-gradient(1000px 650px at 82% 8%, rgba(198, 244, 50, .16), transparent 60%),
    radial-gradient(900px 700px at 8% 95%, rgba(103, 183, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 55% 60%, rgba(168, 85, 247, .10), transparent 60%),
    #0a0c11;
  animation: drift 24s ease-in-out infinite alternate;
}
body[data-wall='grid']::before {
  background:
    linear-gradient(rgba(198,244,50,.07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(198,244,50,.07) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 50% 120%, rgba(198,244,50,.25), transparent 55%),
    #07090c;
}
body[data-wall='sunset']::before {
  background:
    radial-gradient(1100px 600px at 50% 110%, rgba(251, 146, 60, .45), transparent 60%),
    radial-gradient(900px 500px at 20% 0%, rgba(236, 72, 153, .22), transparent 60%),
    linear-gradient(#120b1c, #1c0f1f);
}
body[data-wall='midnight']::before {
  background: radial-gradient(ellipse at 50% 0%, #18202f, #06070a 70%);
}
body::after {
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
@keyframes drift { to { filter: hue-rotate(25deg); transform: scale(1.06); } }

.wall-mark {
  position: absolute; right: 4vw; bottom: 110px; font: 700 clamp(120px, 20vw, 300px)/1 var(--mono);
  letter-spacing: -.06em; color: rgba(255, 255, 255, .035); pointer-events: none;
}
.wall-mark span { color: rgba(198, 244, 50, .12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem;
  border-radius: 9px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--sm { padding: .38rem .8rem; font-size: .82rem; }

/* ---------- App tiles ---------- */
.tile {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.15), 0 8px 18px -6px rgba(0,0,0,.55);
}
.tile b { font: 700 18px var(--mono); color: var(--accent); }
.tile--xs { width: 18px; height: 18px; border-radius: 5px; font-size: 11px; box-shadow: none; }
.tile--xs b { font-size: 8px; }
.tile--dock { width: 48px; height: 48px; font-size: 25px; border-radius: 13px; transition: transform .2s var(--ease); }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 9999; background: #000; color: #c9d1d9; font: 13px/1.6 var(--mono);
  padding: 4vh 5vw; cursor: pointer; transition: opacity .45s;
}
.boot[hidden] { display: none; }
.boot__log { margin: 0; white-space: pre-wrap; transition: opacity .3s; }
.boot__log g { color: var(--ok); font-weight: 700; } .boot__log y { color: #fbbf24; font-weight: 700; }
.boot__log b { color: var(--accent); }
.boot__logo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.4rem; opacity: 0; transition: opacity .4s; pointer-events: none; }
.boot__mark { font: 700 84px/1 var(--mono); letter-spacing: -.06em; color: #fff; }
.boot__mark span { color: var(--accent); }
.boot__bar { width: 220px; height: 5px; border-radius: 5px; background: #1d2129; overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; }
.boot__logo p { margin: 0; color: #6b7385; font-size: 12px; }
.boot__hint { position: absolute; bottom: 3vh; right: 5vw; color: #4b5263; font-size: 11px; margin: 0; }
.boot.is-logo .boot__log, .boot.is-logo .boot__hint { opacity: 0; }
.boot.is-logo .boot__logo { opacity: 1; }
.boot.is-logo .boot__bar i { width: 100%; transition: width 1.1s var(--ease); }
.boot.is-done { opacity: 0; }

/* ---------- Menubar ---------- */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--menubar); z-index: 9000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  background: rgba(10, 12, 17, .55); backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 2px; height: 100%; }
.menubar__right { gap: 12px; color: var(--muted); }
.menu { position: relative; height: 100%; display: flex; align-items: center; }
.menu > button { padding: 3px 10px; border-radius: 6px; }
.menu > button:hover, .menu.is-open > button { background: rgba(255,255,255,.1); }
.menubar__brand { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.menubar__app { padding: 0 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: rgba(74, 222, 128, .12); color: var(--ok); border: 1px solid rgba(74, 222, 128, .25); }
.status-pill i, .pill--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
#clock { color: var(--text); font-variant-numeric: tabular-nums; white-space: pre; }

.dropdown, .ctx {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 220px; padding: 5px; display: none;
  background: rgba(28, 31, 40, .92); backdrop-filter: blur(24px); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 18px 50px -10px rgba(0,0,0,.6);
}
.menu.is-open .dropdown { display: block; }
.dropdown button, .ctx button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.dropdown button:hover, .ctx button:hover { background: var(--accent); color: var(--accent-ink); }
.dropdown hr, .ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.ctx { position: fixed; display: block; z-index: 9500; }
.ctx[hidden] { display: none; }

/* ---------- Desktop ---------- */
.desktop { position: fixed; inset: var(--menubar) 0 0 0; z-index: 1; }
.icons {
  position: absolute; top: 14px; left: 14px; bottom: 100px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 88px); gap: 2px 8px; align-content: start;
}
.icon {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px; border-radius: 10px;
  transition: background .15s;
}
.icon:hover { background: rgba(255,255,255,.07); }
.icon:active .tile { transform: scale(.94); }
.icon span:last-child { font-size: 12px; font-weight: 500; text-align: center; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.9); }

.sticky {
  position: absolute; top: 26px; right: 30px; width: 230px; padding: 16px 18px 14px; transform: rotate(2deg);
  background: linear-gradient(#fff7a8, #fde68a); color: #3b3412; border-radius: 3px 3px 14px 3px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6); font-size: 13.5px; line-height: 1.45; transition: transform .25s var(--ease);
}
.sticky:hover { transform: rotate(0deg) scale(1.02); }
.sticky p { margin: 0 0 .5rem; }
.sticky .linkish { color: #4d7c0f; }
.sticky__pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 22px; }
.sticky__sig { font-style: italic; text-align: right; margin: 0 !important; color: #6b5f1f; }

/* ---------- Windows ---------- */
.windows { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.win {
  position: absolute; display: flex; flex-direction: column; pointer-events: auto; min-width: 320px; min-height: 200px;
  background: var(--win); backdrop-filter: blur(30px) saturate(150%); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 .5px rgba(0,0,0,.6); overflow: hidden;
  animation: win-open .22s var(--ease);
  transition: opacity .2s, transform .25s var(--ease), box-shadow .2s;
  user-select: text;
}
.win:not(.is-focused) { box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.win:not(.is-focused) .light { background: #3b3f4a !important; }
.win:focus { outline: none; }
@keyframes win-open { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.win.is-closing { opacity: 0; transform: scale(.94); }
.win.is-min { opacity: 0; transform: translateY(60vh) scale(.2); pointer-events: none; }
.win.is-max { left: 0 !important; top: var(--menubar) !important; width: 100% !important; height: calc(100% - var(--menubar) - 86px) !important; border-radius: 0; }
.win.is-dragging { transition: none; cursor: grabbing; }
.win.is-dragging .win__body { pointer-events: none; }

.win__bar {
  height: 40px; flex: none; display: flex; align-items: center; padding: 0 14px; position: relative; cursor: grab;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); user-select: none; touch-action: none;
}
.win__lights { display: flex; gap: 8px; position: relative; z-index: 1; }
.light { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.light--close { background: #ff5f57; } .light--min { background: #febc2e; } .light--max { background: #28c840; }
.win__lights:hover .light::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--mono); color: rgba(0,0,0,.6); }
.win__lights:hover .light--close::after { content: '×'; } .win__lights:hover .light--min::after { content: '−'; } .win__lights:hover .light--max::after { content: '+'; }
.win__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--muted); pointer-events: none; }
.win.is-focused .win__title { color: var(--text); }
.win__body { flex: 1; overflow: auto; position: relative; }
.win__body::-webkit-scrollbar { width: 10px; }
.win__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.win__grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }
.win.is-max .win__grip { display: none; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 8000;
  display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px; border-radius: 22px;
  background: var(--glass); backdrop-filter: blur(26px) saturate(170%); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.7);
}
.dock__item { position: relative; display: flex; flex-direction: column; align-items: center; }
.dock__item:hover .tile--dock { transform: translateY(-12px) scale(1.25); }
.dock__item:hover + .dock__item .tile--dock, .dock__item:has(+ .dock__item:hover) .tile--dock { transform: translateY(-5px) scale(1.1); }
.dock__label {
  position: absolute; bottom: calc(100% + 22px); white-space: nowrap; font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: rgba(28,31,40,.95); border: 1px solid var(--line-2); opacity: 0; transform: translateY(4px); transition: .15s; pointer-events: none;
}
.dock__item:hover .dock__label, .dock__item:focus-visible .dock__label { opacity: 1; transform: none; }
.dock__dot { width: 4px; height: 4px; border-radius: 50%; margin-top: 3px; background: transparent; }
.dock__item.is-open .dock__dot { background: var(--text); }
.dock__item.is-bouncing .tile--dock { animation: bounce .55s var(--ease); }
@keyframes bounce { 30% { transform: translateY(-16px); } 60% { transform: translateY(0); } 80% { transform: translateY(-5px); } }
.dock__sep { width: 1px; height: 44px; background: var(--line-2); margin: 0 4px 6px; align-self: center; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--menubar) + 10px); right: 12px; z-index: 9100; display: grid; gap: 8px; width: min(340px, calc(100vw - 24px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: rgba(30, 33, 42, .88); backdrop-filter: blur(24px); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); animation: toast-in .35s var(--ease); transition: .3s;
}
.toast.is-out { opacity: 0; transform: translateX(30px); }
.toast__icon { font-size: 26px; line-height: 1; }
.toast strong { display: block; font-size: 13px; }
.toast small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }

/* ---------- Shutdown ---------- */
.shutdown { position: fixed; inset: 0; z-index: 9999; background: #000; display: grid; place-content: center; justify-items: center; gap: 2rem; font: 600 clamp(18px, 3vw, 28px) var(--mono); color: #f97316; text-align: center; padding: 2rem; }
.shutdown[hidden] { display: none; }
.shutdown span { color: var(--accent); }

/* =========================================================
   Apps
   ========================================================= */
.label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 1.6rem 0 .7rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.3rem; margin-bottom: .45rem; color: #cdd3de; }
.ticks li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 12px var(--mono); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: var(--panel); }
summary { cursor: pointer; padding: 9px 12px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; color: var(--accent); font-family: var(--mono); }
details[open] summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0; padding: 0 12px 11px; color: var(--muted); }

/* Welcome */
.welcome { padding: 26px 30px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.welcome__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(198,244,50,.12); }
.welcome h1 { font-size: 28px; letter-spacing: -.03em; margin: 14px 0 2px; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.welcome__role { font: 12.5px var(--mono); color: var(--muted); margin: 0 0 12px; }
.welcome__lead { font-size: 16px; max-width: 42ch; margin: 0 0 14px; }
.pill--live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; background: rgba(74,222,128,.1); color: var(--ok); border: 1px solid rgba(74,222,128,.25); }
.welcome__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 16px; width: 100%; }
.welcome__grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: .15s; font-weight: 600; font-size: 13px; }
.welcome__grid button:hover { border-color: var(--accent); transform: translateY(-2px); }
.welcome__tip { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.welcome__classic { font-size: 12.5px; margin: 0; color: var(--dim); }

/* About */
.about { display: grid; grid-template-columns: 250px 1fr; min-height: 100%; }
.about__side { padding: 22px; border-right: 1px solid var(--line); background: rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 10px; }
.about__side img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; object-position: top; border: 1px solid var(--line-2); }
.about__side h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; }
.about__side .muted { margin: 0; }
.spec { margin: 6px 0; display: grid; gap: 6px; }
.spec div { display: flex; justify-content: space-between; font-size: 12.5px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; font-weight: 600; }
.about__links { display: flex; gap: 14px; font-size: 13px; }
.about__links a { text-decoration: none; }
.about__main { padding: 6px 26px 24px; }
.about__main > p { color: #cdd3de; font-size: 14.5px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cards2 div { padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.cards2 small { display: block; color: var(--muted); font-size: 12.5px; }
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.rules b { color: var(--text); }
.edu { list-style: none; padding: 0; margin: 0; }
.edu li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.edu small { display: block; color: var(--muted); font-size: 12.5px; }
.edu em { font: normal 12px var(--mono); color: var(--accent); white-space: nowrap; }

/* Finder */
.finder { display: grid; grid-template-columns: 190px 1fr; height: 100%; }
.finder__side { padding: 12px 8px; background: rgba(0,0,0,.18); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.finder__group { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 8px 8px 4px; }
.finder__side button, .finder__side a { text-align: left; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--text); text-decoration: none; }
.finder__side button:hover, .finder__side a:hover { background: rgba(255,255,255,.06); }
.finder__side button.is-active { background: rgba(198,244,50,.15); color: var(--accent); }
.finder__main { display: flex; flex-direction: column; min-width: 0; }
.finder__path { padding: 9px 16px; font: 12px var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.finder__path b { color: var(--accent); font-weight: 500; }
.finder__grid { flex: 1; overflow: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.file { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 12px; border: 1px solid transparent; text-align: center; transition: .15s; }
.file:hover { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.file:focus-visible { background: rgba(198,244,50,.1); }
.file__icon { font-size: 54px; line-height: 1; position: relative; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); transition: transform .2s var(--ease); }
.file:hover .file__icon { transform: translateY(-3px) scale(1.06); }
.file__badge { position: absolute; right: -10px; bottom: -2px; font-size: 20px; font-style: normal; }
.file__star { position: absolute; left: -6px; top: -4px; font-size: 16px; font-style: normal; color: var(--accent); text-shadow: 0 0 8px rgba(198,244,50,.7); }
.file__name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.file__meta { font: 10.5px var(--mono); color: var(--dim); }
.finder__status { padding: 7px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }

/* Project window */
.proj { padding: 22px 26px 26px; }
.proj__tags { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 6px; }
.proj__head h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.15; }
.proj__award { font-weight: 700; margin: 0 0 6px; }
.proj__role { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.proj__role b { color: var(--text); }
.proj__lead { font-size: 15px; color: #cdd3de; margin: 0 0 12px; }
.proj__links { display: flex; flex-wrap: wrap; gap: 8px; }
.proj__shot { border-radius: 10px; border: 1px solid var(--line-2); margin-top: 16px; }
.proj__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 18px; }
.proj__metrics div { padding: 12px; border-radius: 10px; background: rgba(198,244,50,.06); border: 1px solid rgba(198,244,50,.18); }
.proj__metrics b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--accent); }
.proj__metrics small { color: var(--muted); font-size: 12px; }
.psr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.psr div { padding: 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.psr span { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.psr p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

/* Terminal */
.win__body:has(.term) { background: rgba(6, 8, 11, .92); }
.term { height: 100%; overflow: auto; padding: 12px 16px; font: 13px/1.6 var(--mono); color: #c9d1d9; cursor: text; }
.tline { white-space: pre-wrap; word-break: break-word; min-height: 1.6em; }
.tline--out { color: #b7bfcc; } .tline--dim { color: var(--dim); }
.tline b { color: #fff; } .tline a { color: var(--accent); }
.t-acc { color: var(--accent); } .t-ok { color: var(--ok); } .t-dim { color: var(--dim); }
.term__prompt { color: var(--accent); font-weight: 700; white-space: nowrap; }
.term__prompt span { color: var(--blue); }
.term__line { display: flex; gap: 8px; align-items: center; }
.term__line input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; caret-color: var(--accent); padding: 0; }

/* Resume */
.pdf { display: flex; flex-direction: column; height: 100%; }
.pdf__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.pdf__actions { display: flex; gap: 6px; }
.pdf__view { flex: 1; width: 100%; background: #525659; border: 0; }
.pdf__fallback { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 2rem; background: var(--win-solid); }

/* Activity monitor */
.monitor { display: flex; flex-direction: column; height: 100%; }
.monitor__tabs { display: flex; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.monitor__tabs button { padding: 4px 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.monitor__tabs button.is-active { background: rgba(255,255,255,.1); color: var(--text); }
.monitor__load { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex: none; }
.monitor__load b { color: var(--accent); }
.monitor__load svg { flex: 1; height: 26px; }
.spark { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.monitor__table { flex: 1; overflow: auto; }
.tr { display: grid; grid-template-columns: 70px 1.4fr 1fr 100px; gap: 10px; padding: 6px 16px; font-size: 13px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.03); }
.tbody .tr:nth-child(odd) { background: rgba(255,255,255,.02); }
.tbody .tr:hover { background: rgba(198,244,50,.07); }
.th { position: sticky; top: 0; background: var(--win-solid); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); z-index: 1; }
.tr > span:nth-child(2) { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tr i { font-size: 16px; width: 16px; text-align: center; }
.dotico { display: inline-block; width: 8px !important; height: 8px; border-radius: 50%; background: var(--dim); margin: 0 4px; }
.tr .mono { color: var(--dim); font-size: 12px; }
.tr .ok { font-size: 12px; }
.monitor__foot { margin: 0; padding: 7px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); flex: none; }

/* Experience */
.xp { padding: 6px 26px 26px; }
ol.tl { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line-2); }
ol.tl > li { position: relative; padding-bottom: 20px; }
ol.tl > li::before { content: ''; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--win-solid); border: 3px solid var(--accent); }
.tl__date { font: 11.5px var(--mono); color: var(--accent); }
ol.tl h4 { margin: 3px 0 8px; font-size: 16px; }
ol.tl h4 em { font-style: normal; color: var(--accent); }
ol.tl .ticks li { font-size: 13.5px; }
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trophy { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); display: flex; flex-direction: column; gap: 2px; }
.trophy > span { font-size: 32px; line-height: 1.1; }
.trophy small { color: var(--muted); font-size: 12.5px; }
.trophy .linkish { align-self: flex-start; font-size: 12.5px; margin-top: 4px; }

/* Incidents */
.inc { display: grid; grid-template-columns: 270px 1fr; height: 100%; }
.inc__list { border-right: 1px solid var(--line); overflow: auto; background: rgba(0,0,0,.18); }
.inc__list button { display: block; width: 100%; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.inc__list button:hover { background: rgba(255,255,255,.04); }
.inc__list button.is-active { background: rgba(198,244,50,.1); box-shadow: inset 3px 0 0 var(--accent); }
.inc__list b { display: block; font-size: 13px; line-height: 1.35; margin: 3px 0 2px; }
.inc__list small { color: var(--dim); font-size: 11.5px; }
.inc__id { font: 11px var(--mono); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sev { font-style: normal; font-size: 9.5px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.sev--2 { background: rgba(248,113,113,.18); color: #f87171; }
.sev--3 { background: rgba(251,191,36,.16); color: #fbbf24; }
.sev--chg { background: rgba(103,183,255,.16); color: var(--blue); }
.inc__doc { padding: 22px 26px; overflow: auto; }
.inc__meta { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.inc__doc h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.02em; }
.pm { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0; }
.pm dt { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); padding-top: 3px; }
.pm dd { margin: 0; color: #cdd3de; }
.pm__lesson { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(198,244,50,.08); border: 1px solid rgba(198,244,50,.2); font-weight: 600; }

/* Mail */
.mail { display: flex; flex-direction: column; height: 100%; }
.mail__toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.mail__row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mail__row span { width: 62px; color: var(--muted); font-size: 13px; flex: none; }
.mail input, .mail textarea { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 14px; padding: 10px 0; }
.mail input[readonly] { color: var(--muted); }
.mail textarea { padding: 14px 16px; resize: none; min-height: 140px; line-height: 1.6; }
.mail input::placeholder, .mail textarea::placeholder { color: var(--dim); }
.mail__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mail__status { margin: 0; min-height: 1.2em; color: var(--muted); }
.mail__status.is-ok { color: var(--ok); } .mail__status.is-err { color: #f87171; }

/* Trash */
.trash { padding: 18px 22px; }
.trash .muted { margin: 0 0 10px; }
.trash ul { list-style: none; padding: 0; margin: 0 0 14px; }
.trash li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.trash__file { font-size: 24px; line-height: 1; opacity: .6; filter: grayscale(1); }
.trash b { font: 600 13px var(--mono); text-decoration: line-through; text-decoration-color: rgba(248,113,113,.7); }
.trash small { display: block; color: var(--muted); font-size: 12.5px; }

.noscript { position: fixed; inset: 0; display: grid; place-content: center; background: #000; z-index: 99999; font-size: 18px; }

/* =========================================================
   Mobile: phone-style home screen, full-screen apps
   ========================================================= */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .menubar__app { max-width: 40vw; }
  .sticky, .wall-mark { display: none; }
  .icons {
    position: static; padding: 24px 16px 120px; display: grid; grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr); grid-template-rows: none; gap: 18px 6px; justify-items: center;
  }
  .icon { width: 100%; padding: 4px; }
  .icon:hover { background: none; }
  .icon .tile { width: 58px; height: 58px; }
  .win, .win.is-max { left: 0 !important; top: var(--menubar) !important; width: 100% !important; height: calc(100% - var(--menubar) - 84px) !important; border-radius: 0; min-width: 0; border-left: 0; border-right: 0; }
  .win__grip { display: none; }
  .dock { width: calc(100% - 16px); justify-content: space-around; bottom: 8px; padding: 7px 6px; }
  .dock__sep, .dock__item[data-dock='experience'], .dock__item[data-dock='skills'], .dock__item[data-dock='trash'], .dock__item[data-dock='notes'] { display: none; }
  .dock__item:hover .tile--dock, .dock__item:hover + .dock__item .tile--dock, .dock__item:has(+ .dock__item:hover) .tile--dock { transform: none; }
  .dock__label { display: none; }
  .about, .finder, .inc { grid-template-columns: 1fr; }
  .finder, .inc { grid-template-rows: auto minmax(0, 1fr); }
  .about__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .about__side img { max-width: 200px; }
  .finder__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .finder__group { display: none; }
  .finder__side button, .finder__side a { white-space: nowrap; }
  .finder__grid { grid-template-columns: repeat(2, 1fr); }
  .inc__list { max-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .psr, .cards2, .shelf { grid-template-columns: 1fr; }
  .welcome__grid { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: 1.4fr 1fr 80px; }
  .tr > span:first-child { display: none; }
  .pm { grid-template-columns: 1fr; gap: 2px; }
  .pm dd { margin-bottom: 10px; }
  .boot { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spark { stroke-dashoffset: 0; }
}
