#os {
  position:fixed;
  inset:0;
  overflow:hidden;
  background:var(--bg)
}

.wallpaper {
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background-color:#0d0e10;
  background-image:url("../images/wallpaper-1920.jpg");
  background-image:image-set(url("../images/wallpaper-1920.webp") type("image/webp"),url("../images/wallpaper-1920.jpg") type("image/jpeg"));
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover
}

.wallpaper::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.28);
  pointer-events:none
}

.wallpaper-coords,.wp-mark {
  display:none
}

.desktop {
  position:absolute;
  inset:0;
  z-index:1;
  padding:20px 18px 70px;
  overflow:hidden
}

.desktop-icons {
  position:relative;
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(auto-fill,92px);
  grid-auto-columns:86px;
  grid-auto-rows:92px;
  gap:6px;
  align-content:start;
  justify-content:start;
  max-width:100%;
  max-height:100%;
  overflow:hidden
}

.marquee-select {
  position:absolute;
  z-index:3;
  display:none;
  border:1px solid rgba(135,174,243,.9);
  background:rgba(135,174,243,.18);
  box-shadow:inset 0 0 0 1px rgba(135,174,243,.25);
  pointer-events:none
}

.dicon {
  width:86px;
  height:92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  padding:7px 3px;
  border:1px solid transparent;
  border-radius:3px;
  background:transparent;
  cursor:default;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent
}

.dicon:hover {
  background:rgba(255,255,255,.07)
}

.dicon.selected {
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18)
}

.dicon.dragging {
  opacity:.85;
  transform:scale(1.05);
  z-index:10;
  cursor:grabbing;
  transition:none
}

.dicon.drop-target {
  outline:2px dashed var(--accent);
  outline-offset:-2px
}

.desktop-icons.free-mode {
  position:absolute;
  inset:0;
  display:block;
  max-width:none;
  max-height:none;
  overflow:visible
}

.desktop-icons.free-mode .dicon {
  position:absolute;
  margin:0
}

.dicon-glyph {
  position:relative;
  width:40px;
  height:40px;
  flex-shrink:0
}

.dicon-label {
  max-width:82px;
  color:#fff;
  font-family:var(--sans);
  font-size:11px;
  font-weight:500;
  line-height:1.25;
  text-align:center;
  word-break:break-word;
  text-shadow:0 1px 2px #000,0 1px 5px rgba(0,0,0,.8)
}

.glyph-file {
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(218,220,224,.96)),
    #dadce0;
  border:1px solid #9da1a8;
  border-radius:2px;
  clip-path:polygon(0 0,72% 0,100% 28%,100% 100%,0 100%);
  box-shadow:0 2px 4px rgba(0,0,0,.28)
}

.glyph-file::before {
  content:"";
  position:absolute;
  left:7px;
  right:7px;
  top:12px;
  height:12px;
  background:
    linear-gradient(var(--ext-color,var(--accent)),var(--ext-color,var(--accent))) 0 0/100% 2px no-repeat,
    linear-gradient(#8b8e94,#8b8e94) 0 6px/82% 1px no-repeat,
    linear-gradient(#8b8e94,#8b8e94) 0 11px/64% 1px no-repeat;
  opacity:.9
}

.glyph-file::after {
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:11px;
  height:11px;
  background:var(--ext-color,var(--accent));
  clip-path:polygon(0 0,100% 100%,0 100%)
}

.glyph-ext {
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  text-align:center;
  color:#34363a;
  font-family:var(--mono);
  font-size:7px;
  font-weight:800;
  letter-spacing:.02em
}

.glyph-folder {
  position:absolute;
  inset:0 0 3px
}

.glyph-folder::before {
  content:"";
  position:absolute;
  left:1px;
  top:5px;
  width:20px;
  height:8px;
  background:#b98c38;
  border-radius:3px 3px 0 0
}

.glyph-folder::after {
  content:"";
  position:absolute;
  left:1px;
  right:1px;
  top:10px;
  bottom:0;
  background:#d2a24b;
  border:1px solid #a47c30;
  border-radius:2px
}

.glyph-app {
  position:absolute;
  inset:1px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#24262a;
  border:1px solid #65686e;
  border-radius:7px;
  color:#e6e6e6;
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:-.08em;
  box-shadow:0 2px 4px rgba(0,0,0,.28)
}

.glyph-app::before {
  content:">_"
}

.glyph-app.icon-explorer::before {
  content:">"
}

.glyph-app.icon-terminal::before {
  content:">_"
}

.glyph-app.icon-taskmanager::before {
  content:"|||"
  letter-spacing:-.18em
}

.glyph-app.icon-calculator::before {
  content:"+ -";
  letter-spacing:-.12em
}

.glyph-app.icon-notepad::before {
  content:"N";
  letter-spacing:0
}

.glyph-app.icon-deviceinfo::before {
  content:"i";
  border:1px solid currentColor;
  border-radius:50%;
  width:13px;
  height:13px;
  line-height:12px;
  letter-spacing:0
}

.glyph-app.icon-sysinfo::before {
  content:"PC";
  font-size:8px;
  letter-spacing:-.12em
}

.glyph-app.icon-about::before {
  content:"TC";
  font-size:8px;
  letter-spacing:-.1em
}

.glyph-app.icon-settings::before {
  content:"*";
  font-size:18px;
  line-height:1
}

.glyph-link {
  position:absolute;
  inset:1px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#24262a;
  border:1px solid #65686e;
  border-radius:7px
}

.glyph-link svg {
  width:18px;
  height:18px
}

.win-ttl-icon .glyph-file,.win-ttl-icon .glyph-folder,.win-ttl-icon .glyph-app,.win-ttl-icon .glyph-link {
  width:28px;
  height:28px;
  transform:scale(.5);
  transform-origin:top left
}

.fx-row .glyph-wrap {
  position:relative;
  width:26px;
  height:26px;
  flex-shrink:0
}

.fx-row .glyph-wrap .glyph-folder,.fx-row .glyph-wrap .glyph-file {
  width:42px;
  height:42px;
  transform:scale(.62);
  transform-origin:top left
}

.sm-recent-chip .g .glyph-file,.sm-recent-chip .g .glyph-folder,.sm-recent-chip .g .glyph-app,.sm-recent-chip .g .glyph-link {
  width:32px;
  height:32px;
  transform:scale(.4);
  transform-origin:top left
}

.sm-item .g .glyph-file,.sm-item .g .glyph-folder,.sm-item .g .glyph-app,.sm-item .g .glyph-link {
  width:40px;
  height:40px;
  transform:scale(.5);
  transform-origin:top left
}

.ext-blue {
  --ext-color:var(--blue)
}

.ext-accent {
  --ext-color:var(--accent)
}

.ext-green {
  --ext-color:var(--green)
}

.ext-danger {
  --ext-color:var(--danger)
}

.ext-purple {
  --ext-color:var(--purple)
}

.link-blue {
  color:var(--blue)
}

/* ============================================================
   ALT+TAB / LOCK / SECURITY SCREENS
   ============================================================ */

.altab {
  position:absolute;
  inset:0;
  z-index:250;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  background:rgba(0,0,0,.45)
}

.altab-row {
  display:flex;

  gap:8px;

  max-width:100%;

  overflow-x:auto;

  padding:12px;

  background:var(--surface);

  border:1px solid var(--line-strong);
  border-radius:6px;

  box-shadow:var(--shadow)
}

.altab-app {
  display:flex;
  flex-direction:column;
  align-items:center;

  gap:8px;

  width:96px;

  flex-shrink:0;

  padding:12px 6px;

  border:1px solid transparent;
  border-radius:4px;

  background:none;
  color:var(--text);

  font-size:11px;

  cursor:default
}

.altab-app .g {
  position:relative;

  width:28px;
  height:28px
}

.altab-app .g .glyph-file,
.altab-app .g .glyph-folder,
.altab-app .g .glyph-app,
.altab-app .g .glyph-link {
  width:56px;
  height:56px;

  transform:scale(.5);
  transform-origin:top left
}

.altab-app .t {
  max-width:88px;

  overflow:hidden;

  white-space:nowrap;
  text-overflow:ellipsis
}

.altab-app.active {
  background:var(--surface-3);

  border-color:var(--accent)
}

.lock-screen {
  position:absolute;
  inset:0;
  z-index:300;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:6px;

  background:rgba(8,8,8,.92);

  font-family:var(--mono);

  cursor:pointer
}

.lock-time {
  color:#fff;

  font-size:clamp(56px, 12vw, 110px);
  font-weight:700;

  letter-spacing:-.04em
}

.lock-date {
  color:#b1b3b8;

  font-size:14px
}

.lock-hint {
  margin-top:26px;

  color:#73767d;

  font-size:11px
}

.cad-screen {
  position:absolute;
  inset:0;
  z-index:300;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  background:rgba(8,8,8,.9)
}

.cad-box {
  width:min(300px, 100%);

  display:flex;
  flex-direction:column;

  gap:6px;

  padding:14px;

  background:var(--surface);

  border:1px solid var(--line-strong);
  border-radius:6px;

  box-shadow:var(--shadow)
}

.cad-btn {
  padding:11px 12px;

  border:none;
  border-radius:3px;

  background:none;
  color:var(--text);

  font-size:13px;
  text-align:left;

  cursor:pointer
}

.cad-btn:hover {
  background:var(--surface-3);
  color:var(--accent)
}

.uac-screen {
  position:absolute;
  inset:0;
  z-index:320;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  background:rgba(8,8,8,.88)
}

.uac-box {
  width:min(360px, 100%);

  padding:20px;

  background:var(--surface);

  border:1px solid var(--line-strong);
  border-radius:6px;

  box-shadow:var(--shadow)
}

.uac-title {
  color:var(--accent);

  font-family:var(--mono);
  font-size:11px;
  font-weight:700;

  letter-spacing:.04em;
  text-transform:uppercase
}

.uac-text {
  margin-top:10px;

  color:var(--text);

  font-size:13px;
  line-height:1.6
}

.uac-btns {
  display:flex;
  justify-content:flex-end;

  gap:8px;

  margin-top:16px
}
