
/* Planet OS — XP-inspired, but original.
   Tip: Update data/manifest.json to change icons/links/content. */

:root{
  --xp-blue1:#2f5bd7;
  --xp-blue2:#1d3ea5;
  --xp-blue3:#0a2c8a;
  --xp-green1:#3bb24a;
  --xp-green2:#2a8d38;

  --panel:#f3f2ef;
  --panel2:#e8e6e1;
  --ink:#0b0f1a;

  --win-border:#5a77c7;
  --win-border-dark:#2d3f7a;
  --win-title:#eaf1ff;

  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --shadow-soft: 0 8px 20px rgba(0,0,0,.25);
  --radius: 8px;
  --font: Tahoma, "Segoe UI", Arial, sans-serif;

  --taskbar-h: 40px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family:var(--font); color:var(--ink); }
body{ background:#000; overflow:hidden; }

/* Boot screen */
#boot{
  position:fixed; inset:0;
  display:grid; place-items:center;
  background:
    radial-gradient(circle at 50% 35%, #123a75 0%, #071227 45%, #000 100%);
  z-index:9999;
}
.boot-scanlines{
  position:absolute; inset:0;
  opacity:.06;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.2),
    rgba(255,255,255,.2) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  pointer-events:none;
}
.boot-center{ position:relative; width:min(540px, 92vw); text-align:center; padding:24px; }
.planet-mark{
  width:170px; height:170px; margin:0 auto 16px;
  border-radius:999px;
  background: url("assets/planet.png") center/contain no-repeat;
  box-shadow: 0 18px 55px rgba(0,0,0,.6);
  position:relative;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.55));
}
.planet-mark::after{

  content:"";
  position:absolute; inset:-6px;
  border-radius:inherit;
  background: radial-gradient(circle at 50% 50%, rgba(140,200,255,.12), rgba(0,0,0,0) 55%);
  pointer-events:none;
}

.boot-name{
  font-size:40px;
  letter-spacing:.4px;
  color:#eaf1ff;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.boot-sub{
  margin-top:6px;
  color:rgba(233, 244, 255, .88);
  font-size:14px;
}
.boot-bar{
  margin:20px auto 0;
  width:min(380px, 86vw);
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  overflow:hidden;
}
.boot-bar-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(120,210,255,.9), rgba(80,160,255,.9));
  box-shadow: inset 0 0 10px rgba(255,255,255,.28);
}
.boot-meta{
  margin-top:16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  color:rgba(233, 244, 255, .82);
  font-size:12px;
}
.boot-skip{
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.25);
  color:#eaf1ff;
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
}
.boot-skip:hover{ background:rgba(0,0,0,.35); }

/* Desktop */
.hidden{ display:none !important; }
.desktop{
  position:fixed; inset:0;
  background-image: url("assets/wallpaper.png");
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  user-select:none;
}

.desktop::after{
  /* subtle vignette to keep windows readable */
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 55%, rgba(0,0,0,.24) 100%);
  pointer-events:none;
}

.desktop-icons{
  position:absolute;
  top:18px; left:18px; right:18px;
  bottom: calc(var(--taskbar-h) + 18px);
  display:grid;
  grid-auto-rows: 86px;
  grid-template-columns: repeat(auto-fill, 92px);
  gap:12px;
  align-content:start;
  padding-right: 260px; /* leave space for windows to feel roomy on wide screens */
}

@media (max-width: 900px){
  .desktop-icons{ padding-right: 0; }
}

.icon{
  width:92px; height:86px;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:8px;
  padding:6px;

  /* IMPORTANT: reset button default styles (fixes the big white background) */
  appearance:none;
  -webkit-appearance:none;
  background: transparent;
  border: 0;
  outline: none;

  border-radius:10px;
  cursor:default;
  position:relative;
}
.icon:focus{ outline:none; }
.icon.selected{
  background: rgba(80,160,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.icon:hover{
  background: rgba(255,255,255,.06);
}
.icon .icon-img{
  width:44px; height:44px;
  border-radius:12px;

  /* glassy, subtle tile (not a giant white card) */
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);

  display:grid; place-items:center;
  position:relative;
  backdrop-filter: blur(2px);
}
.icon .icon-img svg{ filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.icon .icon-img::after{
  /* XP-style "shortcut" corner hint */
  content:"";
  position:absolute;
  right:-2px; bottom:-2px;
  width:14px; height:14px;
  border-radius:4px;
  background: linear-gradient(#ffffff, #dedbd3);
  border:1px solid rgba(0,0,0,.22);
  box-shadow: 0 3px 7px rgba(0,0,0,.18);
  opacity:.9;
}
.icon .icon-img::before{
  content:"";
  position:absolute;
  right:3px; bottom:3px;
  width:0; height:0;
  border-left:6px solid rgba(47,155,65,.95);
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  transform: rotate(-35deg);
}
.icon .icon-label{
  font-size:12px;
  color:#fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.7);
  text-align:center;
  line-height:1.15;
  max-width: 92px;

  padding:2px 6px;
  border-radius:6px;
}
.icon.selected .icon-label{
  background: rgba(0, 90, 255, .40);
  border:1px solid rgba(255,255,255,.22);
}

/* Taskbar */
.taskbar{
  position:absolute; left:0; right:0; bottom:0;
  height:var(--taskbar-h);
  background: linear-gradient(#3d63d8, #244fc7);
  box-shadow: 0 -1px 0 rgba(255,255,255,.25), 0 -10px 30px rgba(0,0,0,.25);
  display:flex; align-items:center;
  padding:0 8px;
  z-index: 1000;
}
.start-button{
  height:32px;
  padding:0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.28);
  background: linear-gradient(#53d46a, #2f9f41);
  color:#fff;
  font-weight:700;
  display:flex; align-items:center; gap:8px;
  cursor:pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 6px 12px rgba(0,0,0,.24);
}
.start-button:active{ transform: translateY(1px); }
.start-orb{
  width:16px; height:16px; border-radius:999px;
  background: url("assets/planet.png") center/cover no-repeat;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.18);
}
.taskbar-apps{
  flex:1;
  display:flex;
  gap:6px;
  padding: 0 8px;
  overflow:auto;
  scrollbar-width: thin;
}
.taskbtn{
  height:28px;
  min-width:140px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.25);
  background: linear-gradient(#f8f7f4, #dedbd3);
  color:#0b0f1a;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
  padding:0 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.taskbtn.active{
  background: linear-gradient(#fff, #cfd7f1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 2px rgba(65, 127, 255, .25);
}
.tray{
  display:flex; align-items:center; gap:10px;
  color:#fff;
  padding-left:10px;
}
.tray-time{
  font-size:12px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  padding:5px 10px;
}

/* Start menu */
.start-menu{
  position:absolute;
  left:8px;
  bottom: calc(var(--taskbar-h) + 8px);
  width: 380px;
  height: min(480px, calc(100vh - var(--taskbar-h) - 16px));
  max-height: calc(100vh - var(--taskbar-h) - 16px);
  border-radius: 10px;
  border:1px solid rgba(0,0,0,.35);
  background: linear-gradient(#f8f7f4, #ece9e1);
  box-shadow: var(--shadow);
  overflow: visible;
  z-index: 1500;
}
.start-banner{
  height:58px;
  background: linear-gradient(var(--xp-blue1), var(--xp-blue2));
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  color:#fff;
}
.start-avatar{
  width:36px; height:36px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0) 55%),
              linear-gradient(#ffe08a, #ff9b3d);
  border:1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.start-banner-title{ font-weight:700; }
.start-banner-sub{ font-size:12px; opacity:.9; }

.start-columns{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
}
.start-col{ padding:10px; }
.start-left{ border-right:1px solid rgba(0,0,0,.12); }

.start-item{
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  padding:8px 8px;
  border-radius:8px;
  cursor:pointer;
  font-size:13px;
  display:flex; align-items:center; gap:10px;
  overflow:auto;

}
.start-item:hover{
  background: rgba(80,160,255,.16);
  border-color: rgba(65,127,255,.22);
}
.start-item .chev{ margin-left:auto; opacity:.7; }
.start-sep{
  height:1px;
  background: rgba(0,0,0,.12);
  margin:8px 0;
}
.start-item.danger:hover{
  background: rgba(255,80,80,.14);
  border-color: rgba(255,80,80,.22);
}

.start-submenu{  position:absolute;
  width: 250px;
  border-radius: 10px;
  border:1px solid rgba(0,0,0,.25);
  background: linear-gradient(#ffffff, #ece9e1);
  box-shadow: var(--shadow-soft);
  padding:8px;
  padding-right:6px;
  overflow:auto;
  z-index: 2000;
}
.subitem{
  width:100%;
  display:flex; align-items:center; gap:10px;
  border:1px solid transparent;
  background:transparent;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
  font-size:13px;
}
.subitem:hover{
  background: rgba(80,160,255,.16);
  border-color: rgba(65,127,255,.22);
}

/* Windows */
.window{
  position:absolute;
  width: min(560px, calc(100vw - 24px));
  height: min(420px, calc(100vh - var(--taskbar-h) - 24px));
  left: 220px; top: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--win-border-dark);
  box-shadow: var(--shadow);
  background: var(--panel);
  overflow:hidden;
  z-index: 1100;
  display:flex;
  flex-direction:column;
}
@media (max-width: 720px){
  .window{
    left: 12px !important;
    top: 12px !important;
    width: calc(100vw - 24px);
    height: calc(100vh - var(--taskbar-h) - 24px);
  }
}
.win-titlebar{
  height:34px;
  background: linear-gradient(#3d63d8, #244fc7);
  color: var(--win-title);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px;
  border-bottom:1px solid rgba(0,0,0,.22);
  cursor:grab;
}
.window.active .win-titlebar{
  background: linear-gradient(#4a74f0, #2a56d7);
}
.win-title{
  display:flex; align-items:center; gap:8px;
  font-weight:700;
  font-size:13px;
}
.win-controls{
  display:flex; gap:6px; align-items:center;
}
.win-btn{
  width:26px; height:22px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,.22);
  background: linear-gradient(#f8f7f4, #dedbd3);
  cursor:pointer;
}
.win-btn:active{ transform: translateY(1px); }
.win-btn.close{
  background: linear-gradient(#ff9a9a, #ff5f5f);
}

.win-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px;
  background: linear-gradient(#fdfcf8, #f1efe9);
}
.win-body h2{ margin:0 0 8px 0; font-size:18px; }
.win-body p{ margin:0 0 10px 0; line-height:1.35; }
.win-body .muted{ opacity:.78; font-size:12px; }

.win-body .grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:10px;
}
.card{
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  padding:10px;
}
.card .row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.badge{
  font-size:11px;
  padding:3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(80,160,255,.12);
}
.badge.live{ background: rgba(70, 210, 120, .14); }
.badge.wip{ background: rgba(255, 190, 70, .16); }
.badge.idea{ background: rgba(190, 190, 190, .18); }

.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.tag{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
}
.actions{ display:flex; gap:8px; margin-top:10px; }
.btn{
  border-radius: 8px;
  border:1px solid rgba(0,0,0,.18);
  background: linear-gradient(#ffffff, #e2dfd8);
  padding:7px 10px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.btn.primary{
  background: linear-gradient(#dff0ff, #cfe0ff);
  border-color: rgba(65,127,255,.35);
}
.btn:active{ transform: translateY(1px); }

/* Modal */
.modal{ position:absolute; inset:0; z-index: 2000; }
.modal-window{
  position:absolute;
  left:50%; top:40%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  border-radius: var(--radius);
  border: 1px solid var(--win-border-dark);
  box-shadow: var(--shadow);
  background: var(--panel);
  overflow:hidden;
  z-index: 2001;
}
.modal-body{ padding:12px; background: linear-gradient(#fdfcf8, #f1efe9); }
.modal-body code{ background: rgba(0,0,0,.06); padding:1px 5px; border-radius:6px; }
.run-row{
  display:flex; gap:10px; align-items:center;
  margin-top:10px;
}
.run-row span{ width:62px; font-weight:700; }
.run-row input{
  flex:1;
  height:32px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.18);
  padding:0 10px;
}
.modal-actions{
  display:flex; justify-content:flex-end; gap:8px;
  margin-top:10px;
}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.25);
}

/* Shutdown tiles */
.shutdown-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:10px;
}
.shutdown-tile{
  text-align:left;
  border-radius: 10px;
  border:1px solid rgba(0,0,0,.14);
  background: linear-gradient(#ffffff, #ece9e1);
  padding:10px;
  cursor:pointer;
}
.shutdown-tile:hover{
  background: linear-gradient(#f2f8ff, #e0ebff);
  border-color: rgba(65,127,255,.28);
}
.sd-title{ font-weight:800; }
.sd-sub{ font-size:12px; opacity:.85; margin-top:4px; }

/* Tiny inline icons */
.ico{
  width:18px; height:18px; display:inline-block;
  border-radius:5px;
  background: linear-gradient(#ffffff, #cfd9ff);
  border:1px solid rgba(0,0,0,.18);
  box-shadow: 0 3px 7px rgba(0,0,0,.22);
}
.ico-games{ background: linear-gradient(#fff4bf, #ffd86a); }
.ico-globe{ background: linear-gradient(#d9f4ff, #8ed4ff); }
.ico-folder{ background: linear-gradient(#ffe9c8, #ffcc7a); }
.ico-doc{ background: linear-gradient(#f2f2f2, #d9d9d9); }
.ico-info{ background: linear-gradient(#e9e2ff, #b9a8ff); }
.ico-run{ background: linear-gradient(#d7fff0, #8ef3c9); }
.ico-help{ background: linear-gradient(#fff2d7, #ffd08e); }
.ico-power{ background: linear-gradient(#ffd7d7, #ff8e8e); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .boot-bar-fill{ transition:none !important; animation:none !important; }
  .start-button:active, .btn:active, .win-btn:active{ transform:none !important; }
}


/* --- XP icon pack integration --- */
.icon .icon-img{
  width:48px; height:48px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}
.icon .icon-img::before,
.icon .icon-img::after{ content:none !important; display:none !important; }

.icon .icon-img img{
  width:48px; height:48px;
  image-rendering: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

.ico{
  width:18px; height:18px;
  display:inline-block;
  background: center/contain no-repeat;
  border:0;
  box-shadow:none;
  border-radius:0;
}
.ico-games{ background-image: url("assets/icons/games.png"); }
.ico-globe{ background-image: url("assets/icons/sites.png"); }
.ico-folder{ background-image: url("assets/icons/works.png"); }
.ico-doc{ background-image: url("assets/icons/changelog.png"); }
.ico-info{ background-image: url("assets/icons/about.png"); }
.ico-run{ background-image: url("assets/icons/run.png"); }
.ico-help{ background-image: url("assets/icons/help.png"); }
.ico-power{ background-image: url("assets/icons/power.png"); }

/* Desktop icon label: closer to XP selection look */
.icon .icon-label{ padding:2px 6px; }
.icon.selected{ background: transparent !important; box-shadow:none !important; }
.icon.selected .icon-label{
  background: rgba(0, 70, 200, .65);
  border:1px solid rgba(255,255,255,.20);
}




/* Planet OS titlebar icon (so Start menu keeps XP icons) */
.win-icon.ico{
  background-image: url("assets/planet.png");
}


/* Embedded app window (iframe) */
.appframe{
  height: 100%;
  min-height: 0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.appbar{
  display:flex;
  gap:8px;
  align-items:center;
}
.app-iframe{
  flex:1;
  min-height:0;
  width:100%;
  border:0;
  border-radius:10px;
  background:#000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}


/* Window resize handle */
.win-resizer{
  position:absolute;
  right:4px;
  bottom:4px;
  width:14px;
  height:14px;
  cursor: nwse-resize;
  opacity: .55;
  background:
    linear-gradient(135deg,
      transparent 0 45%,
      rgba(0,0,0,.30) 45% 48%,
      transparent 48% 62%,
      rgba(0,0,0,.30) 62% 65%,
      transparent 65% 100%);
}
.window:hover .win-resizer{ opacity: .75; }




.tray-vol{  position: relative;

  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.25);
  background: linear-gradient(#fefefe, #dadada);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 3px rgba(0,0,0,.18);
  cursor: default;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.tray-vol:active{ transform: translateY(1px); }
/* XP tray volume */
.tray-vol{
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.22);
  background: linear-gradient(#fefefe, #dadada);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  cursor: default;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.tray-vol:active{ transform: translateY(1px); }
.tray-vol::before{
  content:"";
  width: 16px;
  height: 16px;
  display:block;
  background-size: 16px 16px;
  background-repeat:no-repeat;
  background-image: url("assets/volume-16.png");
}


/* XP-style volume popup */
.xpvol{
  position: fixed;
  right: 6px;
  bottom: calc(var(--taskbar-h) + 6px);
  width: 150px;
  background: #efe9d6;
  border: 1px solid #7a7a7a;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  padding: 6px 6px 10px;
  z-index: 5000;
  font-family: Tahoma, Arial, sans-serif;
}
.xpvol-title{
  font-size: 16px;
  color: #000;
  padding: 2px 4px 6px;
}
.xpvol-body{
  height: 165px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 4px 0;
}
.xpvol-slider{
  -webkit-appearance: none;
  appearance: none;
  width: 140px;      /* becomes height once rotated */
  height: 26px;
  transform: rotate(-90deg);
  background: transparent;
}

/* Track */
.xpvol-slider::-webkit-slider-runnable-track{
  height: 10px;
  border-radius: 3px;
  border: 1px solid #8c8c8c;
  background: linear-gradient(#d9d4c4, #f6f2e7);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.22),
    inset 0 -1px 0 rgba(255,255,255,.8);
}

/* Thumb (classic green-ish XP knob) */
.xpvol-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid #2b6b2b;
  background: linear-gradient(#f2fff0, #7eea68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 1px 0 rgba(0,0,0,.25);
  margin-top: -5px; /* centers on 10px track */
}

/* Firefox */
.xpvol-slider::-moz-range-track{
  height: 10px;
  border-radius: 3px;
  border: 1px solid #8c8c8c;
  background: linear-gradient(#d9d4c4, #f6f2e7);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,255,255,.8);
}
.xpvol-slider::-moz-range-thumb{
  width: 28px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid #2b6b2b;
  background: linear-gradient(#f2fff0, #7eea68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.25);
}

/* Edge/IE (best-effort) */
.xpvol-slider::-ms-track{
  height: 10px;
  border-radius: 3px;
  border: 1px solid #8c8c8c;
  background: transparent;
  color: transparent;
}
.xpvol-slider::-ms-fill-lower,
.xpvol-slider::-ms-fill-upper{
  background: linear-gradient(#d9d4c4, #f6f2e7);
  border-radius: 3px;
}
.xpvol-slider::-ms-thumb{
  width: 28px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid #2b6b2b;
  background: linear-gradient(#f2fff0, #7eea68);
}
.xpvol-slider:focus{ outline: none; }

.xpvol-mute{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 4px 6px 0;
  font-size: 16px;
  color:#000;
}
.xpvol-mute input{ width: 18px; height: 18px; }


/* --- XP volume slider (more like the classic screenshot) --- */
.xpvol-body{
  height: 178px !important;
  padding: 0 !important;
}

.xpvol-slider{
  -webkit-appearance: none;
  appearance: none;
  width: 160px;      /* becomes height once rotated */
  height: 34px;
  transform: rotate(-90deg);
  background: transparent;
  margin: 0;
}

/* Track: narrow rail + groove + tick marks */
.xpvol-slider::-webkit-slider-runnable-track{
  height: 14px;
  border-radius: 2px;
  border: 1px solid #8a8a8a;
  background:
    /* ticks */
    repeating-linear-gradient(
      to right,
      rgba(0,0,0,.18) 0px,
      rgba(0,0,0,.18) 1px,
      transparent 1px,
      transparent 12px
    ),
    /* inner groove */
    linear-gradient(#f6f2e7, #d6d0c0);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.85),
    inset 0 -2px 3px rgba(0,0,0,.20);
}

/* Thumb: XP-ish green knob with bevel + inner ridges */
.xpvol-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid #2a6a2a;
  background:
    /* ridges */
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,.55) 0px,
      rgba(255,255,255,.55) 1px,
      rgba(0,0,0,.06) 1px,
      rgba(0,0,0,.06) 2px,
      transparent 2px,
      transparent 6px
    ),
    /* bevel */
    linear-gradient(#f2fff0 0%, #bdf7b1 35%, #70e65e 70%, #5ad64a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 1px 0 rgba(0,0,0,.30);
  margin-top: -5px; /* centers on 14px track */
}

/* Firefox */
.xpvol-slider::-moz-range-track{
  height: 14px;
  border-radius: 2px;
  border: 1px solid #8a8a8a;
  background:
    repeating-linear-gradient(to right, rgba(0,0,0,.18) 0px, rgba(0,0,0,.18) 1px, transparent 1px, transparent 12px),
    linear-gradient(#f6f2e7, #d6d0c0);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -2px 3px rgba(0,0,0,.20);
}
.xpvol-slider::-moz-range-thumb{
  width: 34px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid #2a6a2a;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,.55) 0px, rgba(255,255,255,.55) 1px, rgba(0,0,0,.06) 1px, rgba(0,0,0,.06) 2px, transparent 2px, transparent 6px),
    linear-gradient(#f2fff0 0%, #bdf7b1 35%, #70e65e 70%, #5ad64a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.30);
}

/* Focus ring disabled to match XP feel */
.xpvol-slider:focus{ outline: none; }


/* --- Polish pass: XP-ish volume popup behavior + icon states --- */
.xpvol{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .12s ease-out, transform .12s ease-out;
  /* subtle XP bevel */
  background:
    linear-gradient(#f4f0e2, #ebe3cd);
  border: 1px solid #6f6f6f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(0,0,0,.10),
    0 3px 14px rgba(0,0,0,.30);
}
.xpvol.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.xpvol-title{
  font-weight: 700;
}

/* tray icon states */

/* checkbox feel slightly closer to XP */
.xpvol-mute input{
  accent-color: #3a66d6;
}


/* tray icon states (using custom Volume icon) */
.tray-vol.is-low::before{ opacity: .70; }
.tray-vol.is-mid::before{ opacity: .88; }
.tray-vol.is-muted::before{ opacity: .55; filter: grayscale(20%); }
.tray-vol.is-muted::after{
  content:"";
  position:absolute;
  width: 14px;
  height: 14px;
  right: 3px;
  bottom: 3px;
  background-size: 14px 14px;
  background-repeat:no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8' stroke='%23b00000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M11 3L3 11' stroke='%23b00000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
