:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --menubar-h: 28px;
  --dock-h: 74px;

  --wallpaper: url("wallpapers/golden-gate-light.svg");
  --wall-1: #c5beb6;
  --wall-2: #e8e2da;
  --wall-3: #5b5d76;
  --wall-base: #7d6c5c;

  --glass: rgba(255, 255, 255, 0.32);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);

  --win-bg: #ffffff;
  --win-side: #f1f1f4;
  --win-border: rgba(0, 0, 0, 0.18);
  --win-title: #1d1d1f;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --chip: #eef0f5;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --menubar-text: #1d1d1f;

  --shadow-win: 0 22px 70px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

:root[data-theme="dark"] {
  --wallpaper: url("wallpapers/golden-gate-dark.svg");
  --wall-1: #1a1b2c;
  --wall-2: #2f3050;
  --wall-3: #47587d;
  --wall-base: #0e0e18;

  --glass: rgba(40, 40, 50, 0.38);
  --glass-strong: rgba(30, 30, 34, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);

  --win-bg: #1e1e20;
  --win-side: #262629;
  --win-border: rgba(255, 255, 255, 0.12);
  --win-title: #f5f5f7;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.08);
  --chip: #2c2c30;
  --accent-soft: rgba(10, 132, 255, 0.22);
  --menubar-text: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: #000;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

#boot {
  position: fixed; inset: 0; z-index: 1000;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 48px;
  transition: opacity 0.6s ease;
}
#boot.fade { opacity: 0; pointer-events: none; }
#boot .apple { width: 72px; height: 72px; }
.boot-bar { width: 180px; height: 5px; border-radius: 4px; background: #3a3a3c; overflow: hidden; }
.boot-fill { height: 100%; width: 0; background: #fff; border-radius: 4px; animation: boot 2.2s ease-in-out forwards; }
@keyframes boot { 0% { width: 0 } 60% { width: 55% } 100% { width: 100% } }

#desktop {
  position: fixed; inset: 0;
  background: var(--wallpaper) center / cover no-repeat, var(--wall-1);
  transition: background 0.6s ease;
  overflow: hidden;
  animation: desk-in 0.8s ease both;
}
@keyframes desk-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

#menubar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--menubar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: transparent;
  color: var(--menubar-text);
  font-size: 13px; font-weight: 500;
  z-index: 500;
  user-select: none;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 2px; height: 100%; }
.mb-item {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px;
  white-space: nowrap;
}
.mb-item.mb-hide:hover, .mb-apple:hover, .mb-icon:hover, .mb-app:hover { background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(20px); }
:root[data-theme="dark"] .mb-item.mb-hide:hover, :root[data-theme="dark"] .mb-apple:hover, :root[data-theme="dark"] .mb-icon:hover, :root[data-theme="dark"] .mb-app:hover { background: rgba(255, 255, 255, 0.16); }
.mb-app { font-weight: 700; }
.mb-item.active { background: rgba(255, 255, 255, 0.35); }
:root[data-theme="dark"] .mb-item.active { background: rgba(255, 255, 255, 0.16); }
#batBtn { gap: 6px; }
.bat-pct { font-size: 12px; font-weight: 500; }
.bat-bolt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; line-height: 1; color: var(--menubar-text); mix-blend-mode: difference; }
.bat-fill.low { background: #ff453a; }
.bat-fill.charging { background: #30d158; }
#wifiBtn svg .w1, #wifiBtn svg .w2, #wifiBtn svg .w3 { transition: opacity 0.2s; }
#wifiBtn.off svg .w1, #wifiBtn.off svg .w2, #wifiBtn.off svg .w3, #wifiBtn.off svg .w0 { opacity: 0.35; }
#wifiBtn svg [hidden] { display: none; }
#wifiBtn.off svg .wslash { display: block; }
#wifiBtn.sig1 svg .w2, #wifiBtn.sig1 svg .w3, #wifiBtn.sig2 svg .w3 { opacity: 0.3; }
#clockBtn { position: relative; }
.notif-dot { position: absolute; top: 3px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: #ff453a; }
.mb-apple svg { width: 15px; height: 15px; }
.mb-icon svg { width: 16px; height: 16px; }
.bat { position: relative; display: inline-block; width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.95; }
.bat::after { content: ""; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.bat-fill { position: absolute; inset: 1.5px; width: 78%; background: currentColor; border-radius: 1.5px; }

.dropdown {
  position: absolute; top: calc(var(--menubar-h) + 4px); left: 8px;
  min-width: 230px; padding: 5px;
  background: var(--glass-strong);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  color: var(--text);
  text-shadow: none;
  z-index: 600;
  animation: pop 0.12s ease-out;
}
.dropdown button {
  display: block; width: 100%; text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 13px;
}
.dropdown button:hover { background: var(--accent); color: #fff; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.popover {
  position: absolute; top: calc(var(--menubar-h) + 6px); right: 8px;
  width: 300px; max-width: calc(100vw - 16px); padding: 10px; box-sizing: border-box;
  background: var(--glass-strong);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  color: var(--text); font-size: 13px; text-shadow: none;
  z-index: 600; animation: pop 0.14s ease-out;
}
.pop-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; padding: 4px 6px 8px; }
.pop-sec { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 8px 6px 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.pop-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; font-size: 13px; }
.pop-row:hover { background: var(--accent-soft); }
.pop-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-row .sub { display: block; font-size: 11.5px; color: var(--text-2); }
.pop-row .check { color: var(--accent); font-weight: 700; width: 14px; }
.pop-row .lock { color: var(--text-3); font-size: 12px; }
.pop-row .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.pop-row .bars i { width: 3px; background: var(--text-3); border-radius: 1px; }
.pop-row .bars i.on { background: var(--text); }
.pop-hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.pop-foot { display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--text); }
.pop-foot:hover { background: var(--accent-soft); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--text-3); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.popover.mm { width: 292px; padding: 5px; border-radius: 11px; font-size: 13px; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 12px; font-weight: 700; font-size: 13.5px; }
.mm-dim { color: var(--text-2); font-weight: 400; }
.mm-line { padding: 4px 12px; font-size: 13px; }
.mm-sec { padding: 6px 12px 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.mm-hr { border: 0; border-top: 1px solid var(--line); margin: 5px 10px; }
.mm-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 10px 5px 12px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--text); min-height: 30px; }
.mm-row:hover { background: var(--accent); color: #fff; }
.mm-row:hover .mm-dim, .mm-row:hover .glyph, .mm-row:hover .fan { color: #fff; }
.mm-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-row .circ, .st-row .circ { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: rgba(120, 120, 128, 0.3); color: var(--text); }
:root[data-theme="dark"] .mm-row .circ, .st-row .circ { background: rgba(255, 255, 255, 0.18); color: #fff; }
.mm-row .circ.on, .st-row .circ.on { background: var(--accent); color: #fff; }
.mm-row .circ svg, .st-row .circ svg { width: 15px; height: 15px; }
.mm-row .circ svg path, .mm-row .circ svg circle, .st-row .circ svg path, .st-row .circ svg circle { opacity: 1 !important; }
.mm-row .glyph { width: 13px; height: 13px; color: var(--text-2); flex: 0 0 auto; }
.mm-row .fan.sig { width: 17px; height: 17px; color: var(--text); flex: 0 0 auto; }
.mm-row .hs-bat { position: relative; width: 20px; height: 9px; border: 1.3px solid var(--text-2); border-radius: 2.5px; flex: 0 0 auto; }
.mm-row .hs-bat::after { content: ""; position: absolute; right: -3.5px; top: 2px; width: 1.5px; height: 3px; background: var(--text-2); border-radius: 1px; }
.mm-row .hs-bat i { position: absolute; inset: 1px; width: 70%; background: var(--text-2); border-radius: 1px; }
.mm-row.exp .chev { width: 12px; height: 12px; color: var(--text-2); transition: transform 0.15s; }
.mm-row.exp.open .chev { transform: rotate(90deg); }
.mm-row:hover .chev { color: #fff; }
.mm-ico { width: 20px; height: 20px; }
.mm-row .spinner { border-color: var(--text-2); border-top-color: transparent; }

.tgl { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #c7c7cc; transition: background 0.2s; flex: 0 0 auto; }
:root[data-theme="dark"] .tgl { background: #48484a; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.2s; }
.tgl.on, :root[data-theme="dark"] .tgl.on { background: var(--accent); }
.tgl.on::after { left: 18px; }
.tgl.sm { width: 30px; height: 18px; border-radius: 9px; }
.tgl.sm::after { width: 14px; height: 14px; }
.tgl.sm.on::after { left: 14px; }

.bat-big { display: flex; align-items: center; gap: 12px; padding: 6px 8px 10px; }
.bat-big .pct { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.bat-big .meter { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--chip); overflow: hidden; }
.bat-big .meter i { position: absolute; inset: 0; width: 50%; background: #30d158; border-radius: 5px; transition: width 0.4s; }
.bat-big .meter i.low { background: #ff453a; }
.bat-big .meter i.mid { background: #ffd60a; }
.pop-kv { display: flex; justify-content: space-between; padding: 5px 8px; font-size: 12.5px; }
.pop-kv span:last-child { color: var(--text-2); }

.popover.cc { width: 320px; padding: 12px; box-sizing: border-box; }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cc-tile { min-width: 0; background: rgba(255, 255, 255, 0.55); border-radius: 14px; padding: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); box-sizing: border-box; }
:root[data-theme="dark"] .cc-tile { background: rgba(255, 255, 255, 0.08); }
.cc-tile.tall { grid-row: span 2; display: flex; flex-direction: column; gap: 8px; }
.cc-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; text-align: left; border-radius: 10px; padding: 4px; }
.cc-btn > span:last-child { min-width: 0; flex: 1; }
.cc-btn .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #c7c7cc; color: #fff; flex: 0 0 auto; transition: background 0.2s; }
.cc-btn.on .ico { background: var(--accent); }
.cc-btn .ico svg { width: 16px; height: 16px; }
.cc-btn b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-btn small { display: block; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile.wide { grid-column: span 2; }
.cc-tile h6 { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; }
.cc-slider { display: flex; align-items: center; gap: 8px; }
.cc-slider .sico { font-size: 14px; width: 18px; text-align: center; flex: 0 0 auto; }
.cc-slider input[type="range"] {
  --v: 50%;
  flex: 1; min-width: 0; margin: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  height: 22px; border-radius: 11px; outline: 0; cursor: pointer;
  background: linear-gradient(to right, #fff 0, #fff var(--v), rgba(120, 120, 128, 0.28) var(--v), rgba(120, 120, 128, 0.28) 100%);
}
:root[data-theme="dark"] .cc-slider input[type="range"] { background: linear-gradient(to right, #e5e5ea 0, #e5e5ea var(--v), rgba(120, 120, 128, 0.35) var(--v), rgba(120, 120, 128, 0.35) 100%); }
.cc-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 22px; }
.cc-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.cc-slider input[type="range"]::-moz-range-track { background: transparent; height: 22px; }
.cc-slider input[type="range"]::-moz-range-progress { background: transparent; }
.cc-slider input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.cc-appearance { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.cc-appearance .seg { display: inline-flex; background: rgba(120, 120, 128, 0.18); border-radius: 8px; padding: 2px; }
.cc-appearance .seg button { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.cc-appearance .seg button.on { background: var(--win-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

#dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 900; transition: opacity 0.2s; }

#desktop-icons {
  position: absolute; inset: var(--menubar-h) 0 var(--dock-h) 0;
  pointer-events: none; z-index: 1;
}
.dicon {
  position: absolute; left: 0; top: 0;
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px;
  padding: 6px 4px; border-radius: 8px;
  color: var(--menubar-text); font-size: 12px; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  touch-action: none; user-select: none;
}
:root[data-theme="dark"] .dicon { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.dicon:focus-visible { outline: 0; }
.dicon.dragging { opacity: 0.75; z-index: 5; transition: none; }
.dicon .dicon-label { padding: 1px 6px; border-radius: 4px; line-height: 1.25; text-align: center; }
.dicon.selected .dicon-label { background: var(--accent); color: #fff; text-shadow: none; }
.dicon.selected .dicon-img { background: rgba(255, 255, 255, 0.25); border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.dicon-img { width: 60px; height: 60px; display: grid; place-items: center; }
.dicon-doc {
  width: 42px; height: 52px; background: #fff; border-radius: 4px; color: #333; font-weight: 700; font-size: 12px;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: grid; place-items: center;
}
.dicon-folder {
  position: relative; width: 54px; height: 42px; margin-top: 8px; border-radius: 4px 6px 6px 6px;
  background: linear-gradient(180deg, #7dc4ff, #3f9ff0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dicon-folder::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 22px; height: 9px; border-radius: 3px 5px 0 0;
  background: #5eb2f8;
}
.dicon-img.dicon-folder { display: block; }
.dicon.selected .dicon-img.dicon-folder { background: linear-gradient(180deg, #7dc4ff, #3f9ff0); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3); }

#selection {
  position: absolute; z-index: 2; pointer-events: none;
  border: 1px solid var(--accent); background: rgba(10, 132, 255, 0.15); border-radius: 2px;
}

#windows { position: absolute; inset: var(--menubar-h) 0 0 0; z-index: 10; pointer-events: none; }

.window {
  position: absolute;
  min-width: 320px; min-height: 240px;
  background: var(--win-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  display: flex; flex-direction: column;
  pointer-events: auto;
  transform-origin: center bottom;
  animation: win-open 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  outline: 1px solid var(--win-border);
}
.window.closing { animation: win-close 0.18s ease-in forwards; }
.window.minimizing { animation: win-min 0.3s ease-in forwards; }
.window.maximized {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: calc(100% - var(--dock-h) - 6px) !important;
  border-radius: 0;
}
@keyframes win-open { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes win-close { to { opacity: 0; transform: scale(0.92); } }
@keyframes win-min { to { opacity: 0; transform: translateY(60vh) scale(0.2); } }

.win-header {
  height: 40px; flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--win-side);
  border-bottom: 1px solid var(--line);
  cursor: default; user-select: none;
  position: relative;
}
.window.focused .win-header { background: var(--win-side); }
.window:not(.focused) { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.window:not(.focused) .lights span { background: #d0d0d5 !important; }
.win-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--win-title); pointer-events: none;
}
.window:not(.focused) .win-title { color: var(--text-3); }

.lights { display: flex; gap: 8px; z-index: 1; }
.lights span {
  width: 12px; height: 12px; border-radius: 50%; display: inline-grid; place-items: center;
  cursor: pointer; position: relative;
}
.lights .l-close { background: #ff5f57; }
.lights .l-min   { background: #febc2e; }
.lights .l-max   { background: #28c840; }
.lights span::before {
  content: ""; width: 6px; height: 6px; opacity: 0; transition: opacity 0.1s;
  background: currentColor; color: rgba(0, 0, 0, 0.55);
}
.lights:hover span::before { opacity: 1; }
.lights .l-close::before { clip-path: polygon(20% 0, 0 20%, 30% 50%, 0 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0, 50% 30%); }
.lights .l-min::before   { height: 1.5px; width: 7px; }
.lights .l-max::before   { clip-path: polygon(0 0, 55% 0, 0 55%, 0 0, 100% 100%, 45% 100%, 100% 45%); }

.win-body { flex: 1; min-height: 0; overflow: auto; display: flex; }
.win-body > * { min-width: 0; }

.sidebar {
  flex: 0 0 190px; background: var(--win-side); border-right: 1px solid var(--line);
  padding: 10px 8px; overflow: auto;
}
.sidebar h6 { margin: 8px 8px 4px; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.02em; }
.sidebar button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px;
  font-size: 13px; color: var(--text); text-align: left;
}
.sidebar button .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.sidebar button:hover { background: rgba(0, 0, 0, 0.05); }
:root[data-theme="dark"] .sidebar button:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar button.active { background: var(--accent); color: #fff; }
.content { flex: 1; overflow: auto; padding: 26px 30px; }
.content h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.content h3 { margin: 26px 0 10px; font-size: 15px; font-weight: 600; }
.content p { margin: 0 0 12px; line-height: 1.6; font-size: 14px; color: var(--text); }
.content .muted { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--chip); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }

.about-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #0a84ff, #bf5af2); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
  background-size: cover; background-position: center;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
}
.about-hero .role { color: var(--text-2); font-size: 14px; margin: 0; }
.about-hero .tag { margin-top: 6px; font-style: italic; color: var(--text-2); }
.meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.skill-group { margin-bottom: 16px; }
.skill-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.finder-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px; }
.ffile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; font-size: 12px; text-align: center; }
.ffile:hover { background: var(--accent-soft); }
.ffile .ficon { font-size: 34px; }

.safari-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--win-side); border-bottom: 1px solid var(--line);
}
.safari-bar .nav { display: flex; gap: 4px; color: var(--text-3); font-size: 16px; }
.safari-bar .url {
  flex: 1; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--win-bg); border-radius: 8px; font-size: 12.5px; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.safari-body { padding: 28px 32px; overflow: auto; flex: 1; }
.safari-body h2 { margin: 0 0 6px; font-size: 26px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.pcard {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--win-bg);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.pcard .picon { font-size: 30px; line-height: 1; }
.pcard h4 { margin: 0; font-size: 15px; }
.pcard p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.pcard .chips .chip { font-size: 11px; padding: 3px 8px; }
.pcard { cursor: pointer; }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcard .more { font-size: 13px; font-weight: 600; color: var(--accent); }

.window.app-safari .win-body { position: relative; }
.pdetail { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade 0.15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pdetail-inner { position: relative; width: min(680px, 100%); max-height: 100%; overflow: auto; background: var(--win-bg); border-radius: 18px; padding: 28px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); animation: win-open 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.pdetail-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--text-2); font-size: 13px; display: grid; place-items: center; }
.pdetail-close:hover { background: var(--accent); color: #fff; }
.pdetail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.pdetail-head .picon { font-size: 54px; line-height: 1; }
.pdetail-head h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.pdetail .lead { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.pdetail-list { margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.65; }
.pdetail-list li { margin-bottom: 6px; }
.pdetail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.ghost { background: var(--chip); color: var(--text) !important; }
@media (max-width: 720px) { .pdetail { padding: 0; align-items: stretch; } .pdetail-inner { border-radius: 0; width: 100%; padding: 22px 16px; } }

.press { display: grid; gap: 8px; margin-top: 16px; }
.press-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none !important; transition: background 0.15s; }
.press-item:hover { background: var(--accent-soft); }
.press-item .outlet { font-weight: 700; font-size: 13px; color: var(--accent); }
.press-item .ptitle { font-size: 13.5px; line-height: 1.4; }
.press-item .pdate { font-size: 12px; color: var(--text-2); white-space: nowrap; }
@media (max-width: 720px) { .press-item { grid-template-columns: 1fr; gap: 4px; } }

.window.app-terminal .win-header { background: #2b2b2e; border-bottom-color: rgba(255, 255, 255, 0.06); }
.window.app-terminal .win-title { color: #d0d0d5; }
.terminal {
  flex: 1; background: #1a1a1d; color: #e5e5ea; font-family: var(--mono); font-size: 13px; line-height: 1.55;
  padding: 12px 14px; overflow: auto; cursor: text; white-space: pre-wrap; word-break: break-word;
}
.terminal .prompt { color: #30d158; }
.terminal .path { color: #64d2ff; }
.terminal .cmd { color: #fff; }
.terminal .dim { color: #8e8e93; }
.terminal .hl { color: #ffd60a; }
.terminal .err { color: #ff453a; }
.terminal .ok { color: #30d158; }
.terminal .line { display: block; }
.terminal .input-line { display: flex; }
.terminal input {
  flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; padding: 0; margin: 0; caret-color: #30d158;
}
.terminal .ascii { color: #bf5af2; }

.window.app-notes .sidebar { background: #f7f2dc; }
:root[data-theme="dark"] .window.app-notes .sidebar { background: #2a2820; }
.window.app-notes .sidebar button.active { background: #e3b52a; color: #1d1d1f; }
.note { padding: 26px 34px; overflow: auto; flex: 1; }
.note .date { text-align: center; font-size: 11px; color: var(--text-3); margin-bottom: 14px; }
.note h2 { margin: 0 0 18px; font-size: 24px; }
.xp { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.xp:last-child { border-bottom: 1px solid var(--line); }
.xp .period { font-size: 12px; color: var(--text-2); font-weight: 500; padding-top: 2px; }
.xp h4 { margin: 0; font-size: 15px; }
.xp .place { font-size: 13px; color: var(--text-2); margin: 2px 0 6px; }
.xp p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.note ul { padding-left: 20px; line-height: 1.8; font-size: 14px; }

.mail-list { flex: 0 0 240px; border-right: 1px solid var(--line); overflow: auto; background: var(--win-bg); }
.mail-list h6 { margin: 12px 14px 6px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.mail-row { display: block; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mail-row:hover { background: var(--accent-soft); }
.mail-row .from { font-size: 13px; font-weight: 600; }
.mail-row .subj { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.mail-read { flex: 1; padding: 26px 30px; overflow: auto; }
.mail-read .hdr { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.mail-read .hdr h3 { margin: 0 0 6px; font-size: 18px; }
.mail-read .hdr .sm { font-size: 12.5px; color: var(--text-2); }
.mail-read p { font-size: 14px; line-height: 1.65; }
.socials { display: grid; gap: 10px; margin: 16px 0; }
.social {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none !important;
  transition: background 0.15s;
}
.social:hover { background: var(--accent-soft); }
.social .sicon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.social .sname { font-size: 13.5px; font-weight: 600; }
.social .shandle { font-size: 12.5px; color: var(--text-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px;
  background: var(--accent); color: #fff !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important;
}
.btn:hover { filter: brightness(1.08); }

.about-mac { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; gap: 6px; }
.about-mac .laptop { width: 120px; height: 76px; border-radius: 8px; background: linear-gradient(180deg, #5d5f66, #2c2d31); position: relative; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.about-mac .laptop::before { content: ""; position: absolute; inset: 5px 5px 8px; border-radius: 4px; background: radial-gradient(ellipse at 30% 80%, var(--wall-3), transparent 55%), radial-gradient(ellipse at 80% 20%, var(--wall-2), transparent 60%), linear-gradient(160deg, var(--wall-1), var(--wall-base)); }
.about-mac .laptop::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: -6px; height: 6px; border-radius: 0 0 6px 6px; background: #9a9ba3; }
.about-mac h2 { margin: 0; font-size: 22px; }
.about-mac .v { color: var(--text-2); font-size: 13px; }
.about-mac dl { display: grid; grid-template-columns: auto auto; gap: 4px 12px; font-size: 12.5px; margin: 14px 0 0; text-align: left; }
.about-mac dt { color: var(--text-2); text-align: right; }
.about-mac dd { margin: 0; }

.trash-body { flex: 1; display: grid; place-items: center; text-align: center; color: var(--text-2); font-size: 14px; padding: 30px; }
.trash-body .big { font-size: 56px; margin-bottom: 10px; }

#notifCenter {
  position: absolute; top: var(--menubar-h); right: 0; bottom: 0; width: 350px; max-width: 100%;
  padding: 12px 12px 20px; overflow: auto; z-index: 450;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  color: var(--text);
  animation: nc-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#notifCenter.closing { animation: nc-out 0.22s ease-in forwards; }
@keyframes nc-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes nc-out { to { transform: translateX(100%); } }
.nc-date { padding: 6px 6px 12px; }
.nc-date b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-transform: capitalize; }
.nc-date span { font-size: 13px; color: var(--text-2); }
.nc-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.widget { background: var(--glass-strong); border-radius: 18px; padding: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); min-height: 150px; }
.widget h6 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #ff453a; }
.widget.weather { background: linear-gradient(160deg, #3a8dff, #1b5fd6); color: #fff; }
.widget.weather h6 { color: rgba(255, 255, 255, 0.85); }
.widget.weather .temp { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.widget.weather .desc { font-size: 12.5px; margin-top: 4px; opacity: 0.95; }
.widget.weather .emoji { font-size: 30px; float: right; }
.widget.weather .range { font-size: 12px; opacity: 0.85; margin-top: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 10.5px; }
.cal .dow { color: var(--text-3); font-weight: 600; padding-bottom: 2px; }
.cal .d { height: 18px; line-height: 18px; border-radius: 50%; }
.cal .d.today { background: #ff453a; color: #fff; font-weight: 700; }
.cal .d.dim { color: var(--text-3); }
.widget.cal-w h6 { color: #ff453a; }
.widget.cal-w .daynum { font-size: 22px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.nc-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 8px; font-size: 13px; font-weight: 600; }
.nc-head button { font-size: 12px; font-weight: 500; color: var(--text-2); padding: 4px 8px; border-radius: 6px; background: rgba(120, 120, 128, 0.16); }
.nc-head button:hover { background: rgba(120, 120, 128, 0.28); }
.nc-empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 30px 10px; }
.notif {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--glass-strong); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); position: relative;
}
.notif:hover { filter: brightness(1.02); }
.notif img { width: 34px; height: 34px; flex: 0 0 auto; }
.notif .nt { flex: 1; min-width: 0; }
.notif .nt b { display: block; font-size: 13px; font-weight: 600; }
.notif .nt span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.notif .when { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.notif .x { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--win-side); color: var(--text); font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.15s; }
.notif:hover .x { opacity: 1; }

#toasts { position: absolute; top: calc(var(--menubar-h) + 10px); right: 12px; width: 340px; max-width: calc(100% - 24px); display: flex; flex-direction: column; gap: 8px; z-index: 800; pointer-events: none; }
#toasts .notif { pointer-events: auto; margin: 0; animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2); cursor: pointer; }
#toasts .notif.out { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(80px); } }

.dock-item .badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #ff3b30; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.offline { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--text-2); }
.offline .big { font-size: 54px; margin-bottom: 10px; }
.offline h3 { margin: 0 0 6px; color: var(--text); font-size: 18px; }
.offline p { margin: 0 0 16px; font-size: 13.5px; }

#dock {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  z-index: 400;
}
.dock-inner {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.dock-item {
  position: relative; width: 54px; height: 54px; border-radius: 13px;
  display: grid; place-items: center;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1.4), margin 0.18s;
  transform-origin: bottom center;
}
.dock-item:hover { transform: scale(1.22) translateY(-8px); margin: 0 6px; }
.dock-item:active { transform: scale(1.05) translateY(-4px); filter: brightness(0.85); }
.dock-item::after {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--glass-strong); color: var(--text); font-size: 12.5px; font-weight: 500;
  padding: 5px 10px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0;
  border: 1px solid var(--glass-border);
  transition: opacity 0.12s, transform 0.12s;
}
.dock-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.dock-item.running::before {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--text); opacity: 0.7;
}
.dock-item.bounce { animation: bounce 0.5s ease 2; }
@keyframes bounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
.dock-sep { width: 1px; height: 46px; background: rgba(0, 0, 0, 0.18); margin: 0 4px 4px; }
:root[data-theme="dark"] .dock-sep { background: rgba(255, 255, 255, 0.2); }

.icon { width: 52px; height: 52px; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28)); user-select: none; -webkit-user-drag: none; }

@media (max-width: 720px) {
  :root { --dock-h: 66px; }
  .mb-hide { display: none; }
  .dicon { width: 76px; font-size: 11px; }
  #notifCenter { width: 100%; }
  .popover { right: 6px; left: 6px; width: auto; }
  .popover.cc { width: auto; }
  .window {
    left: 0 !important; top: 0 !important;
    width: 100% !important; height: calc(100% - var(--dock-h) - 6px) !important;
    border-radius: 0; min-width: 0;
  }
  .sidebar, .mail-list { display: none; }
  .content, .safari-body, .note, .mail-read { padding: 20px 16px; }
  .xp { grid-template-columns: 1fr; gap: 4px; }
  .dock-inner { gap: 3px; padding: 5px 6px; border-radius: 18px; }
  .dock-item { width: 42px; height: 42px; }
  .icon { width: 38px; height: 38px; }
  .dock-sep { margin: 0 2px 4px; }
  .dock-item:hover { transform: none; margin: 0; }
  .dock-item::after { display: none; }
  .dock-sep { height: 38px; }
}

.window.app-settings .win-body { display: flex; }
.st-side { flex: 0 0 205px; background: var(--win-side); border-right: 1px solid var(--line); padding: 10px 8px; overflow: auto; }
.st-search { display: flex; align-items: center; gap: 6px; margin: 2px 2px 12px; padding: 5px 8px; border-radius: 7px; background: var(--win-bg); border: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.st-group { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.st-group:last-child { border-bottom: 0; }
.st-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 8px; border-radius: 7px; font-size: 13px; color: var(--text); text-align: left; }
.st-item:hover { background: rgba(120, 120, 128, 0.14); }
.st-item.active { background: var(--accent); color: #fff; }
.st-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.st-ico svg { width: 14px; height: 14px; }
.st-main { flex: 1; min-width: 0; overflow: auto; padding: 18px 24px 24px; }
.st-main h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.st-main h4 { margin: 18px 4px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.st-card { background: var(--win-side); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-card.st-gap { margin-top: 14px; }
.st-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 42px; font-size: 13px; }
.st-row + .st-row, .st-kv + .st-row, .st-row + .st-kv { border-top: 1px solid var(--line); }
.st-row .grow { flex: 1; min-width: 0; }
.st-row b { display: block; font-weight: 500; font-size: 13px; }
.st-row small { display: block; font-size: 11.5px; color: var(--text-2); }
.st-row .fan { width: 16px; height: 16px; flex: 0 0 auto; }
.st-row .glyph { width: 12px; height: 12px; color: var(--text-2); flex: 0 0 auto; }
.st-row .avatar { width: 40px; height: 40px; font-size: 15px; box-shadow: none; }
.st-app { width: 28px; height: 28px; }
.st-btn { padding: 4px 11px; border-radius: 6px; background: var(--win-bg); border: 1px solid var(--line); font-size: 12px; color: var(--text); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); white-space: nowrap; }
.st-btn:hover { background: var(--chip); }
.st-btn.st-more { padding: 4px 8px; font-weight: 700; }
.st-btn.st-help { width: 26px; padding: 4px 0; border-radius: 50%; text-align: center; font-weight: 700; }
.st-select { appearance: auto; font: inherit; font-size: 12.5px; color: var(--text); background: var(--win-bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.st-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 13px; }
.st-kv + .st-kv { border-top: 1px solid var(--line); }
.st-kv span:last-child { color: var(--text-2); text-align: right; }
.st-details { margin-top: 10px; }
.st-actions { justify-content: flex-end; }
.st-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.st-hint { color: var(--text-2); font-size: 13px; margin: 14px 4px; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: #30d158; flex: 0 0 auto; }
.st-dot.off { background: #8e8e93; }
.st-slider { gap: 10px; }
.st-slider input[type="range"] { flex: 1; }
.st-look { gap: 14px; }
.st-look button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.st-look .prev { width: 96px; height: 62px; border-radius: 9px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.st-look button.on .prev { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.st-look .prev.light { background: linear-gradient(160deg, #e8e2da, #c5beb6 60%, #5b5d76); }
.st-look .prev.dark { background: linear-gradient(160deg, #2f3050, #1a1b2c 60%, #47587d); }
.st-look .prev.auto { background: linear-gradient(115deg, #e8e2da 0 50%, #1a1b2c 50% 100%); }
.st-colors { display: inline-flex; gap: 8px; }
.st-colors i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.st-colors i.on { box-shadow: 0 0 0 2px var(--win-side), 0 0 0 3.5px var(--accent); }
.st-muted { color: var(--text-2); font-size: 12.5px; }
.st-pct { font-size: 15px; font-weight: 700; }
.st-meter { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.st-meter i { position: absolute; inset: 0; background: #30d158; border-radius: 4px; }
.st-meter i.low { background: #ff453a; }
@media (max-width: 720px) {
  .window.app-settings .win-body { flex-direction: column; }
  .st-side { flex: 0 0 auto; display: flex; gap: 2px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .st-search { display: none; }
  .st-group { display: flex; margin: 0; padding: 0 6px 0 0; border: 0; }
  .st-item { width: auto; white-space: nowrap; padding: 5px 7px; }
  .st-main { padding: 14px 14px 20px; }
}
