/* =========================================================
   TylerOS — a macOS-flavoured desktop
   ========================================================= */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --mb-h: 28px;
  --accent: #0a7cff;
  --accent-soft: rgba(10, 124, 255, .14);

  --text: #1d1d1f;
  --text-dim: rgba(0, 0, 0, .55);
  --text-faint: rgba(0, 0, 0, .38);

  --win-bg: rgba(247, 247, 249, .93);
  --win-titlebar: rgba(252, 252, 253, .78);
  --win-border: rgba(0, 0, 0, .14);
  --panel: rgba(250, 250, 252, .82);
  --menu-bg: rgba(250, 250, 252, .9);
  --hair: rgba(0, 0, 0, .09);
  --field: rgba(0, 0, 0, .055);
  --field-hover: rgba(0, 0, 0, .09);
  --dock-bg: rgba(255, 255, 255, .3);
  --dock-border: rgba(255, 255, 255, .34);
  --dot: rgba(0, 0, 0, .55);
  --shadow: 0 34px 80px rgba(0, 0, 0, .34), 0 6px 18px rgba(0, 0, 0, .16);
  --inactive-dot: rgba(0, 0, 0, .16);
}

html[data-theme="dark"] {
  --text: #f2f2f5;
  --text-dim: rgba(255, 255, 255, .62);
  --text-faint: rgba(255, 255, 255, .38);

  --win-bg: rgba(32, 32, 37, .94);
  --win-titlebar: rgba(52, 52, 58, .72);
  --win-border: rgba(255, 255, 255, .14);
  --panel: rgba(38, 38, 43, .86);
  --menu-bg: rgba(42, 42, 48, .88);
  --hair: rgba(255, 255, 255, .1);
  --field: rgba(255, 255, 255, .08);
  --field-hover: rgba(255, 255, 255, .14);
  --dock-bg: rgba(36, 36, 42, .46);
  --dock-border: rgba(255, 255, 255, .16);
  --dot: rgba(255, 255, 255, .8);
  --shadow: 0 34px 80px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .35);
  --inactive-dot: rgba(255, 255, 255, .2);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: #08080c;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; }
input { font: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }

::selection { background: var(--accent-soft); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: rgba(130, 130, 140, .45);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(130, 130, 140, .7); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ Wallpaper ============================ */

.desktop { position: fixed; inset: 0; overflow: hidden; }

.wallpaper {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-color: #0b0a22;
  transform: scale(1.03);
  animation: drift 46s ease-in-out infinite alternate;
  will-change: transform;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wallpaper[data-w="sonoma"] {
  background-image:
    radial-gradient(120% 92% at 12% 6%, #ffd9a0 0%, #ff9d6e 20%, rgba(255, 130, 110, 0) 54%),
    radial-gradient(100% 92% at 88% 10%, #ff8aa8 0%, #e0498b 26%, rgba(224, 73, 139, 0) 60%),
    radial-gradient(130% 110% at 72% 96%, #5a4bd6 0%, #2b2a6b 46%, rgba(20, 16, 58, 0) 74%),
    radial-gradient(90% 80% at 16% 92%, #ff9f5c 0%, rgba(255, 159, 92, 0) 62%),
    linear-gradient(162deg, #241452 0%, #150f38 42%, #0b0a22 100%);
}

.wallpaper[data-w="bigsur"] {
  background-image:
    radial-gradient(100% 80% at 18% 12%, #b6ecff 0%, rgba(182, 236, 255, 0) 58%),
    radial-gradient(92% 90% at 86% 18%, #5bb8ff 0%, rgba(91, 184, 255, 0) 62%),
    radial-gradient(120% 100% at 58% 94%, #1b4bff 0%, rgba(27, 75, 255, 0) 68%),
    radial-gradient(80% 70% at 12% 86%, #14b8b0 0%, rgba(20, 184, 176, 0) 60%),
    linear-gradient(160deg, #0d2a63 0%, #071633 60%, #050b1c 100%);
}

.wallpaper[data-w="graphite"] {
  background-image:
    radial-gradient(80% 70% at 24% 18%, #565660 0%, rgba(86, 86, 96, 0) 58%),
    radial-gradient(90% 90% at 82% 76%, #2a2a33 0%, rgba(42, 42, 51, 0) 62%),
    radial-gradient(70% 60% at 60% 8%, #6e6e7a 0%, rgba(110, 110, 122, 0) 55%),
    linear-gradient(160deg, #16161b 0%, #0b0b0e 60%, #040405 100%);
}

@keyframes drift {
  from { transform: scale(1.03) translate3d(-.6%, -.4%, 0); }
  to { transform: scale(1.07) translate3d(.8%, .6%, 0); }
}

/* ============================ Menu bar ============================ */

.menubar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--mb-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  color: #fff;
  background: rgba(12, 12, 18, .24);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 .5px 0 rgba(255, 255, 255, .12);
  user-select: none;
}

.mb-left, .mb-right { display: flex; align-items: center; gap: 1px; min-width: 0; }

.mb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  text-shadow: 0 1px 1.5px rgba(0, 0, 0, .3);
}

.mb-item:hover, .mb-item[aria-expanded="true"] { background: rgba(255, 255, 255, .2); }
.mb-item:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: -1px; }

.mb-apple { padding: 0 7px; }
.mb-apple svg { width: 14px; height: 14px; display: block; }
.mb-app { font-weight: 600; }

.mb-icon { padding: 0 6px; }
.mb-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mb-clock {
  gap: 8px;
  font-variant-numeric: tabular-nums;
  padding: 0 6px 0 9px;
}
#clock-day { opacity: .92; }

.mb-user { gap: 6px; }
.mb-avatar {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffb08a, #c2426b);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45);
}
.mb-user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* Menu dropdown */
.menu-panel {
  position: fixed;
  z-index: 1350;
  min-width: 224px;
  padding: 5px;
  border-radius: 8px;
  background: var(--menu-bg);
  color: var(--text);
  border: .5px solid var(--win-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .16);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  animation: menu-in .1s ease-out;
  user-select: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.menu-head {
  padding: 6px 10px 7px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.menu-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: default;
}

.menu-entry:hover:not(:disabled) { background: var(--accent); color: #fff; }
.menu-entry:hover:not(:disabled) .shortcut { color: rgba(255, 255, 255, .8); }
.menu-entry:disabled { color: var(--text-faint); }
.menu-entry .shortcut { color: var(--text-faint); font-size: 12px; letter-spacing: .02em; }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--hair); }

/* ============================ Desktop icons ============================ */

.desktop-icons {
  position: absolute;
  inset: var(--mb-h) 0 0 0;
  z-index: 1;
  padding: 12px;
  pointer-events: none;
}

.desk-icon {
  position: absolute;
  width: 96px;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: default;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background .12s ease;
}

.desk-icon .app-icon { width: 56px; }

.desk-icon .name {
  max-width: 92px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  word-break: break-word;
}

.desk-icon:hover { background: rgba(255, 255, 255, .1); }
.desk-icon.selected { background: rgba(255, 255, 255, .18); }
.desk-icon.selected .name { background: var(--accent); text-shadow: none; }
.desk-icon.dragging { opacity: .85; z-index: 6; }

/* App icons: a 64×64 squircle drawn in SVG — gradient, gloss, shade, rim, glyph */
.app-icon {
  position: relative;
  display: block;
  width: var(--icon-size, 48px);
  aspect-ratio: 1;
  flex: none;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .3));
}

.app-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.app-icon svg text { font-family: inherit; }

/* ============================ Windows ============================ */

.windows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 180px;
  border-radius: 12px;
  background: var(--win-bg);
  border: .5px solid var(--win-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  transition: opacity .22s ease, transform .24s ease, box-shadow .2s ease;
  animation: win-open .2s cubic-bezier(.2, .9, .3, 1);
  will-change: transform;
}

@keyframes win-open {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.window.active { box-shadow: 0 40px 100px rgba(0, 0, 0, .42), 0 8px 24px rgba(0, 0, 0, .22); }

/* hairline of light around the glass, like macOS chrome */
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .18), inset 0 0 0 .5px rgba(255, 255, 255, .05);
}
.window.minimizing { pointer-events: none; }
.window.closing { opacity: 0; transform: scale(.95); pointer-events: none; }

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  flex: none;
  padding: 0 14px;
  background: var(--win-titlebar);
  border-bottom: .5px solid var(--hair);
  cursor: default;
  user-select: none;
  touch-action: none;
}

.window:not(.active) .titlebar { background: transparent; }

.traffic { display: flex; gap: 8px; align-items: center; z-index: 3; }

.tl {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--inactive-dot);
  cursor: default;
  display: grid;
  place-items: center;
}

.window.active .tl.close { background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.window.active .tl.min { background: #febc2e; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.window.active .tl.max { background: #28c840; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }

.tl span {
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, .58);
  opacity: 0;
  transform: translateY(-.5px);
  transition: opacity .1s;
}

.traffic:hover .tl span { opacity: 1; }

.title {
  position: absolute;
  left: 80px;
  right: 80px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.window:not(.active) .title { color: var(--text-faint); }

.window-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 4;
  touch-action: none;
}

/* ============================ Buttons / shared ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: default;
  transition: background .13s ease, transform .1s ease;
}

.btn:hover { background: var(--field-hover); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.btn-primary:hover { background: #0a6fe6; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--field);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.section-head h3 { margin: 0; font-size: 13px; letter-spacing: -.01em; }
.section-head span { font-size: 11.5px; color: var(--text-faint); }

.empty {
  padding: 22px 18px;
  border-radius: 10px;
  background: var(--field);
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ============================ Project window ============================ */

.proj { padding: 22px 24px 24px; }

.proj-head { display: flex; align-items: center; gap: 15px; }
.proj-icon .app-icon { width: 62px; }
.proj-id { min-width: 0; }
.proj-id h2 { margin: 0 0 3px; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }

.proj-url {
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  word-break: break-all;
}
.proj-url:hover { text-decoration: underline; }

.proj-sub {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.proj-sum { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--text-dim); }

.proj-points { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }

.proj-points li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.proj-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--c1, var(--accent)), var(--c2, var(--accent)));
  background-image: linear-gradient(150deg, var(--c1, #8ab4ff), var(--c2, #0a7cff));
}

.proj-meta {
  margin: 0 0 20px;
  border-top: .5px solid var(--hair);
  border-bottom: .5px solid var(--hair);
  padding: 10px 0;
  display: grid;
  gap: 7px;
}

.meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.meta-row span { color: var(--text-faint); }
.meta-row b { font-weight: 500; color: var(--text); }

.proj-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.proj-foot-note { margin: 16px 0 0; font-size: 11.5px; color: var(--text-faint); }

/* ============================ Finder ============================ */

.finder { display: grid; grid-template-columns: 170px 1fr; height: 100%; min-height: 0; }

.finder-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-right: .5px solid var(--hair);
  background: var(--field);
  overflow: auto;
}

.side-title {
  margin: 8px 8px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12.5px;
  text-align: left;
  cursor: default;
}
.side-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; flex: none; }
.side-item:hover { background: var(--field); }
.side-item.is-active { background: var(--accent); color: #fff; }

.side-foot {
  margin-top: auto;
  padding: 10px 9px 4px;
  font-size: 11px;
  color: var(--text-faint);
}

.finder-main { min-width: 0; overflow: auto; padding: 16px 18px 22px; }

.finder-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.finder-top h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.finder-top span { font-size: 11.5px; color: var(--text-faint); }

.finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px 4px;
}

.finder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: default;
  text-align: center;
}
.finder-item .app-icon { width: 52px; }
.finder-item:hover { background: var(--field); }
.finder-item.is-sel { background: var(--accent-soft); }
.finder-item .fi-name { font-size: 12px; line-height: 1.3; font-weight: 500; }
.finder-item .fi-host { font-size: 10.5px; color: var(--text-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sites-list { display: grid; gap: 4px; }

.site-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--field);
  text-decoration: none;
  color: var(--text);
}
.site-row:hover { background: var(--field-hover); }
.site-row .app-icon { width: 30px; }
.site-row .site-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-row b { font-size: 12.5px; font-weight: 600; }
.site-row small { font-size: 11.5px; color: var(--text-faint); }
.site-row .site-open { margin-left: auto; color: var(--accent); font-size: 12px; }

/* ============================ About ============================ */

.about { padding: 24px; text-align: center; }

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ff9f7a, #c2426b 70%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 4px 14px rgba(194, 66, 107, .35);
  flex: none;
}
.avatar-lg { width: 82px; height: 82px; font-size: 27px; }

.about-top { display: flex; align-items: center; gap: 16px; text-align: left; margin-bottom: 16px; }
.about-top h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.03em; }
.about-role { margin: 0; font-size: 12.5px; color: var(--text-dim); }

.about-text { margin: 0 0 18px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); text-align: left; }

.specs {
  border-radius: 10px;
  background: var(--field);
  padding: 4px 14px;
  margin-bottom: 18px;
  text-align: left;
}
.spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 12px; border-bottom: .5px solid var(--hair); }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--text-faint); }
.spec-row b { font-weight: 500; }

.about-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 16px; }
.about-links a {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--field);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}
.about-links a:hover { background: var(--field-hover); }
.about-foot { margin: 0; font-size: 11.5px; color: var(--text-faint); }

/* ============================ Music ============================ */

.music { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 18px; }

.music-now { display: flex; gap: 18px; align-items: flex-end; }

.art {
  position: relative;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 12px;
  flex: none;
  overflow: hidden;
  background: linear-gradient(150deg, #3a3a44, #131318);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .12) inset;
  display: grid;
  place-items: center;
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .art-fallback {
  font-size: 34px;
  color: rgba(255, 255, 255, .3);
  line-height: 1;
}
.art .eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 14px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.art.is-playing .eq { opacity: 1; }
.eq i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #4ade80;
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: -.35s; background: #a3e635; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; background: #34d399; }
.eq i:nth-child(5) { animation-delay: -.45s; }

@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}

.music-meta { min-width: 0; flex: 1; padding-bottom: 2px; }

.music-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1db954;
}
html[data-theme="dark"] .music-label { color: #4ade80; }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1db954;
  box-shadow: 0 0 0 0 rgba(29, 185, 84, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, .5); }
  70% { box-shadow: 0 0 0 7px rgba(29, 185, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.music-meta .song {
  margin: 0 0 2px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-meta .artist { margin: 0 0 2px; font-size: 13px; font-weight: 500; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-meta .album { margin: 0 0 12px; font-size: 11.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.progress { height: 4px; border-radius: 4px; background: var(--field-hover); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0%; border-radius: 4px; background: var(--text-dim); transition: width .9s linear; }
.times { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.music-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.music-user {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-dim);
  min-width: 0;
}
.music-user img { width: 20px; height: 20px; border-radius: 50%; display: block; }
.music-user .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; flex: none; }
.music-user .status-dot.online { background: #23a55a; }
.music-user .status-dot.idle { background: #f0b232; }
.music-user .status-dot.dnd { background: #f23f43; }

.music-recent { border-top: .5px solid var(--hair); padding-top: 14px; }

.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.track {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}
.track:hover { background: var(--field); }
.track-art {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, #4b4b55, #1a1a20);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
}
.track-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.track-txt b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-txt small { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-when { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }

.music-note { margin: 0; font-size: 11px; color: var(--text-faint); line-height: 1.5; }

/* ============================ Contact ============================ */

.contact { padding: 22px 24px 24px; }
.contact-head { display: flex; align-items: center; gap: 14px; }
.contact-head .app-icon { width: 54px; }
.contact-kicker { margin: 0 0 1px; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.contact-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.soon-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(10, 124, 255, .45); }
  70% { box-shadow: 0 0 0 6px rgba(10, 124, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 124, 255, 0); }
}

.contact-lead { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

.contact-preview { position: relative; margin-bottom: 14px; padding: 12px 14px; border-radius: 11px; background: var(--field); overflow: hidden; }
.cp-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: .5px solid var(--hair); font-size: 12px; color: var(--text-faint); }
.cp-row b { font-weight: 500; color: var(--text); }
.cp-lines { display: grid; gap: 7px; padding: 14px 2px 26px; }
.cp-lines i { display: block; height: 7px; border-radius: 4px; background: var(--field-hover); }
.cp-lines i:nth-child(1) { width: 88%; }
.cp-lines i:nth-child(2) { width: 96%; }
.cp-lines i:nth-child(3) { width: 54%; }
.cp-tag { position: absolute; right: 12px; bottom: 10px; padding: 3px 8px; border-radius: 5px; background: var(--field-hover); color: var(--text-faint); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.contact-note { margin: 0 0 16px; font-size: 11.5px; color: var(--text-faint); }

/* ============================ Terminal ============================ */

.term {
  min-height: 100%;
  background: rgba(16, 16, 20, .96);
  color: #e7e7ee;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  padding: 14px 16px 18px;
  cursor: text;
  display: flex;
  flex-direction: column;
}

.term-out { flex: 1; min-height: 120px; }
.term-row { white-space: pre-wrap; word-break: break-word; }
.term-row.dim { color: rgba(231, 231, 238, .5); }
.term-row.err { color: #ff8a8a; }
.term-row.ok { color: #7ee2a8; }
.term-row a { color: #74b8ff; }
.term-echo { color: #e7e7ee; }
.term-echo b { color: #7ee2a8; font-weight: 600; }
.term-echo i { color: #74b8ff; font-style: normal; }

.term-line { display: flex; align-items: center; gap: 7px; padding-top: 2px; }
.term-prompt { white-space: nowrap; color: #e7e7ee; }
.term-prompt b { color: #7ee2a8; font-weight: 600; }
.term-prompt i { color: #74b8ff; font-style: normal; }
.term-prompt em { color: #ffb86b; font-style: normal; }

.term-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #e7e7ee;
  font-family: var(--mono);
  font-size: 12.5px;
  caret-color: #7ee2a8;
}

/* ============================ Dock ============================ */

.dock {
  position: fixed;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  max-width: calc(100vw - 16px);
  padding: 7px 9px 8px;
  border-radius: 20px;
  background: var(--dock-bg);
  border: .5px solid var(--dock-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .22) inset;
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
}

.dock-item {
  --s: 1;
  position: relative;
  width: clamp(38px, 4.2vw, 52px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  transform-origin: bottom center;
  transform: scale(var(--s));
  transition: transform .22s cubic-bezier(.25, .9, .3, 1);
  z-index: 1;
}

.dock.magnifying .dock-item { transition: none; }
.dock-item:hover { z-index: 4; }
.dock-item .app-icon { width: 100%; }

.dock-item.running::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4.5px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dot);
}

@keyframes dock-bounce {
  0%, 100% { translate: 0 0; }
  28% { translate: 0 -18px; }
  52% { translate: 0 0; }
  70% { translate: 0 -7px; }
  84% { translate: 0 0; }
}
.dock-item.bounce { animation: dock-bounce .7s ease; }

.dock-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) scale(.92);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(28, 28, 34, .86);
  color: #fff;
  border: .5px solid rgba(255, 255, 255, .16);
  font-size: 11.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.dock-item:hover .dock-label { opacity: 1; transform: translateX(-50%) scale(1); }

.dock-sep {
  width: 1px;
  align-self: stretch;
  margin: 6px 5px;
  background: rgba(255, 255, 255, .3);
  flex: none;
}

.dock-min { display: flex; align-items: flex-end; gap: 4px; }
.dock-min:empty { display: none; }

.dock-min-item {
  --s: 1;
  position: relative;
  width: clamp(34px, 3.6vw, 46px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  transform-origin: bottom center;
  transform: scale(var(--s));
  transition: transform .22s cubic-bezier(.25, .9, .3, 1);
}
.dock.magnifying .dock-min-item { transition: none; }
.dock-min-item .app-icon { width: 100%; border-radius: 26%; }
.dock-min-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4.5px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dot);
}

/* ============================ Spotlight ============================ */

.spotlight-layer {
  position: fixed;
  inset: 0;
  z-index: 1260;
  background: rgba(0, 0, 0, .1);
  padding: 13vh 16px 16px;
}

.spotlight {
  width: min(620px, 100%);
  margin: 0 auto;
  border-radius: 13px;
  background: var(--panel);
  border: .5px solid var(--win-border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  overflow: hidden;
  animation: sp-in .16s cubic-bezier(.2, .9, .3, 1);
}

@keyframes sp-in {
  from { opacity: 0; transform: scale(.97) translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.spotlight-field { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: .5px solid var(--hair); }
.spotlight-field svg { width: 19px; height: 19px; fill: none; stroke: var(--text-faint); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.spotlight-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -.02em;
}
.spotlight-field input::placeholder { color: var(--text-faint); }
.spotlight-field kbd {
  font-family: var(--font);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--field);
  color: var(--text-faint);
}

.spotlight-results { max-height: min(380px, 52vh); overflow: auto; padding: 6px; }

.sp-group-title {
  padding: 6px 9px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sp-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: default;
}

.sp-result .app-icon { width: 24px; border-radius: 7px; }
.sp-result .sp-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sp-result b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-result small { font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-result .sp-kind { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.sp-result[aria-selected="true"] { background: var(--accent); color: #fff; }
.sp-result[aria-selected="true"] small, .sp-result[aria-selected="true"] .sp-kind { color: rgba(255, 255, 255, .8); }
.sp-empty { padding: 22px; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* ============================ Control Centre ============================ */

.control {
  position: fixed;
  top: 34px;
  right: 10px;
  z-index: 1200;
  width: 318px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  background: var(--panel);
  border: .5px solid var(--win-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  animation: cc-in .16s cubic-bezier(.2, .9, .3, 1);
  transform-origin: top right;
}

@keyframes cc-in {
  from { opacity: 0; transform: scale(.96) translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.control-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  text-align: left;
  cursor: default;
  min-width: 0;
}
.control-toggle:hover { background: var(--field-hover); }
.control-toggle.on { background: var(--accent); color: #fff; }

.cc-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  flex: none;
}
.control-toggle:not(.on) .cc-ico { background: var(--field-hover); }
.cc-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-text b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-text small { font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.control-toggle.on .cc-text small { color: rgba(255, 255, 255, .8); }

.control-slider, .control-wall { padding: 10px 11px; border-radius: 12px; background: var(--field); }

.control-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; }
.control-row span:last-child { color: var(--text-faint); font-weight: 400; font-size: 10.5px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: default;
  display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--text-dim) var(--fill, 100%), rgba(130, 130, 140, .28) var(--fill, 100%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 50%;
  background: #fff;
  border: .5px solid rgba(0, 0, 0, .12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.swatch {
  height: 46px;
  border-radius: 8px;
  border: 0;
  padding: 0;
  cursor: default;
  position: relative;
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .3) inset, 0 2px 6px rgba(0, 0, 0, .18);
}
.swatch.is-active { outline: 2.5px solid var(--accent); outline-offset: 1.5px; }

.control-foot { display: flex; gap: 8px; }
.control-link {
  flex: 1;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--field);
  font-size: 11.5px;
  font-weight: 500;
  cursor: default;
}
.control-link:hover { background: var(--field-hover); }

/* ============================ Context menu ============================ */

.context-menu {
  position: fixed;
  z-index: 1300;
  min-width: 196px;
  padding: 5px;
  border-radius: 8px;
  background: var(--menu-bg);
  border: .5px solid var(--win-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  animation: menu-in .1s ease-out;
  user-select: none;
}

.cm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12.5px;
  text-align: left;
  cursor: default;
}
.cm-item:hover:not(:disabled) { background: var(--accent); color: #fff; }
.cm-item:hover:not(:disabled) .cm-shortcut { color: rgba(255, 255, 255, .75); }
.cm-item:disabled { color: var(--text-faint); }
.cm-shortcut { color: var(--text-faint); font-size: 11px; }
.cm-sep { height: 1px; margin: 4px 8px; background: var(--hair); }

/* ============================ Toasts ============================ */

.toasts {
  position: fixed;
  top: calc(var(--mb-h) + 10px);
  right: 12px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--panel);
  border: .5px solid var(--win-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  font-size: 12.5px;
  line-height: 1.4;
  animation: toast-in .24s cubic-bezier(.2, .9, .3, 1);
}
.toast .app-icon { width: 30px; }
.toast.out { animation: toast-out .24s ease forwards; }
.toast b { display: block; font-weight: 600; }
.toast small { color: var(--text-dim); font-size: 11.5px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(.98); }
}

/* ============================ Boot + Lock ============================ */

.boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #000;
  color: #fff;
  transition: opacity .55s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-logo { width: 76px; height: 76px; color: #f5f5f7; }
.boot-bar { width: 168px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: #f5f5f7; animation: boot 1.5s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes boot {
  0% { width: 0; }
  55% { width: 64%; }
  100% { width: 100%; }
}

/* ============================ Sign in ============================ */

.login {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vh, 38px);
  padding: 28px 18px;
  color: #fff;
  background: rgba(8, 8, 14, .44);
  backdrop-filter: blur(44px) saturate(135%) brightness(.66);
  -webkit-backdrop-filter: blur(44px) saturate(135%) brightness(.66);
  overflow: auto;
  animation: login-in .45s ease;
}
@keyframes login-in { from { opacity: 0; } to { opacity: 1; } }
.login.leaving { opacity: 0; pointer-events: none; transition: opacity .28s ease; }

.login-top { text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.login-clock {
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.login-date { margin-top: 6px; font-size: 14px; font-weight: 500; opacity: .82; }

.login-card {
  width: min(392px, 100%);
  padding: 24px 24px 18px;
  border-radius: 20px;
  background: rgba(30, 30, 37, .58);
  border: .5px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  text-align: center;
}
.login-card.shake { animation: login-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes login-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.login-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffb08a, #c2426b 72%);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.login-name { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.login-role { margin: 3px 0 16px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

.login-fields { display: grid; gap: 8px; }
.login-field {
  position: relative;
  display: block;
  padding: 7px 12px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
  border: .5px solid rgba(255, 255, 255, .14);
  text-align: left;
}
.login-field:focus-within { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .13); }
.login-field label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.login-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 1px 0 0;
}
.login-field input::placeholder { color: rgba(255, 255, 255, .32); }
#login-pass { padding-right: 34px; }

.login-go {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: default;
  transition: background .14s ease;
}
.login-go:hover { background: var(--accent); }
.login-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.login-error { min-height: 16px; margin: 8px 0 2px; font-size: 11.5px; color: #ff9b9b; }

.login-accounts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; margin-top: 6px; border-top: .5px solid rgba(255, 255, 255, .12); }
.login-accounts-label { margin-right: 2px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.login-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 4px;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 11.5px;
  cursor: default;
}
.login-account:hover { background: rgba(255, 255, 255, .16); }
.login-account.is-active { background: var(--accent); color: #fff; }
.login-mini { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(150deg, #ffb08a, #c2426b); color: #fff; font-size: 8px; font-weight: 700; }
.login-account[data-account="guest"] .login-mini { background: linear-gradient(150deg, #9fd8ff, #3a6bb8); }
.login-foot { margin: 0; font-size: 11px; letter-spacing: .03em; color: rgba(255, 255, 255, .45); }

.dim { position: fixed; inset: 0; z-index: 1150; background: #000; opacity: 0; pointer-events: none; transition: opacity .18s ease; }

/* ============================ Responsive ============================ */

@media (max-width: 860px) {
  .mb-item[data-menu="file"], .mb-item[data-menu="window"], .mb-item[data-menu="help"] { display: none; }
  #clock-day { display: none; }

  .desktop-icons {
    inset: var(--mb-h) 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    align-content: start;
    gap: 4px;
    padding: 18px 12px 110px;
    overflow: auto;
    pointer-events: auto;
  }

  .desk-icon { position: static !important; width: auto; padding: 10px 4px; }
  .desk-icon .app-icon { width: 52px; }

  .window {
    left: 8px !important;
    top: calc(var(--mb-h) + 6px) !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - var(--mb-h) - 6px - 82px) !important;
    border-radius: 12px;
  }
  .window.maximized { border-radius: 12px; }
  .titlebar { height: 44px; }
  .resizer { display: none; }

  .finder { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .finder-side {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: .5px solid var(--hair);
    overflow-x: auto;
  }
  .side-title, .side-foot { display: none; }
  .side-item { width: auto; white-space: nowrap; }

  .music { padding: 16px; gap: 14px; }
  .music-now { gap: 14px; align-items: center; }
  .art { width: 120px; }
  .music-meta .song { font-size: 16px; }
  .music-meta .album { margin-bottom: 8px; }
  .music-user { margin-left: 0; }

  .control { width: min(318px, calc(100vw - 20px)); }

  .dock { gap: 2px; padding: 6px 7px 7px; bottom: 6px; }
  .dock-item { width: clamp(34px, 8.4vw, 44px); }
  .dock-label { display: none; }

  .terminal-input, .term-line input { font-size: 16px; }
  .spotlight-field input { font-size: 17px; }

  .mb-user-name { display: none; }
  .login { gap: 20px; padding: 22px 14px; }
  .login-clock { font-size: clamp(46px, 13vw, 62px); }
  .login-card { padding: 20px 18px 16px; border-radius: 18px; }
  .login-avatar { width: 60px; height: 60px; font-size: 20px; }
  .login-name { font-size: 19px; }
  .contact { padding: 18px; }
}

@media (max-width: 420px) {
  .music-now { flex-direction: column; align-items: center; text-align: center; }
  .music-meta { width: 100%; }
  .music-meta .song, .music-meta .artist, .music-meta .album { white-space: normal; }
  .music-actions { justify-content: center; }
  .music-user { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wallpaper { animation: none; }
  .window, .spotlight, .control, .toast { animation-duration: .01ms; }
  .live-dot, .eq i { animation: none; }
  .boot-bar span { animation-duration: .4s; }
}
