/* Rap Aware window style: cream title bar, title on the left, square buttons on the right,
   black body, 8-bit stepped corners and a hard offset shadow */
.xp-window{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
/* the black outline with pixel-stepped corners, drawn on top of the window's edge */
.xp-window::after{content:"";position:absolute;inset:0;z-index:60;pointer-events:none;box-sizing:border-box;border:6px solid transparent;
  border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cg fill='%23000'%3E%3Crect x='4' y='0' width='6' height='2'/%3E%3Crect x='4' y='12' width='6' height='2'/%3E%3Crect x='0' y='4' width='2' height='6'/%3E%3Crect x='12' y='4' width='2' height='6'/%3E%3Crect x='2' y='2' width='2' height='2'/%3E%3Crect x='10' y='2' width='2' height='2'/%3E%3Crect x='2' y='10' width='2' height='2'/%3E%3Crect x='10' y='10' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E") 6 stretch}
/* cut the corners of what's inside so they follow the steps */
.xp-window>:first-child{clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% 100%,0 100%,0 4px,2px 4px,2px 2px,4px 2px)}
.xp-window>:last-child{clip-path:polygon(0 0,100% 0,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px))}
.mac-titlebar{height:32px!important;padding:0 8px 0 12px!important;gap:8px!important;border-bottom:2px solid #000!important;
  background-color:#e9e6de!important;background-image:radial-gradient(rgba(0,0,0,.22) .9px,transparent 1.1px)!important;background-size:4px 4px!important}
.mac-title{order:0;margin:0!important;max-width:60%!important;padding:0!important;background:none!important;color:#000!important;font-size:10px!important;letter-spacing:.04em}
.mac-titlebar::after{content:"";order:1;flex:1;min-width:16px}
.mac-max{order:2}.mac-close{order:3}
.mac-close,.mac-max{width:20px!important;height:20px!important;border-radius:0!important;background:#e9e6de!important;border:2px solid #000!important;
  clip-path:polygon(2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px),0 2px,2px 2px)}
.mac-close:hover,.mac-max:hover{background:#000!important;color:#e9e6de!important}

/* taskbar: same cream bar as the window title bars, with stepped-corner buttons */
.xp-taskbar{height:30px!important;background-color:#e9e6de!important;background-image:none!important;
  border-top:2px solid #000!important;box-shadow:none!important;padding:0 4px!important;gap:6px!important;align-items:center!important}
.xp-start,.xp-taskbtn,.xp-tray{height:22px!important;display:flex!important;align-items:center!important;gap:6px!important;background:#e9e6de!important;color:#000!important;
  border:2px solid #000!important;border-radius:0!important;box-shadow:none!important;padding:0 10px!important;font-size:11px!important;text-transform:none!important;
  clip-path:polygon(2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px),0 2px,2px 2px)}
.xp-start{font-weight:800!important;letter-spacing:.04em}
.xp-start,.xp-taskbtn,.xp-tray{margin:0!important;align-self:center!important;line-height:1!important}.xp-start svg{color:#000!important;fill:currentColor}
.xp-start:hover,.xp-taskbtn:hover{background:#fff!important}
.xp-taskbtn.active{background:#000!important;color:#e9e6de!important}
.xp-taskbtn.active img{filter:invert(1)}
.xp-tray{font-variant-numeric:tabular-nums;border-left:2px solid #000!important}
.xp-taskbar>div{padding:0 4px!important;gap:6px!important;align-items:center!important}
/* the hard shadow: same stepped shape as the window, offset down and right */
.xp-window::before{content:"";position:absolute;left:9px;top:9px;right:-9px;bottom:-9px;z-index:-1;background:#000;pointer-events:none;
  clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px),0 4px,2px 4px,2px 2px,4px 2px)}

/* start button: small pixel grid icon + "start", kept compact */
.xp-start{padding:0 7px!important;width:auto!important;min-width:0!important;gap:5px!important;flex:none!important}
.xp-start svg{display:none!important}
.xp-start span{display:inline!important;font-size:10px!important;color:#000!important;-webkit-font-smoothing:none;font-weight:400!important;letter-spacing:0!important;line-height:1!important;transform:none!important}
.xp-start::before{content:"";width:10px;height:10px;flex:none;background:
  linear-gradient(#000,#000) 0 0/4px 4px no-repeat,linear-gradient(#000,#000) 6px 0/4px 4px no-repeat,
  linear-gradient(#000,#000) 0 6px/4px 4px no-repeat,linear-gradient(#000,#000) 6px 6px/4px 4px no-repeat}

/* contact photo captions: room between two-line captions and the card edge */
.ra-cap{line-height:1.5!important;padding:0 4px 2px}
.ra-stack{height:262px!important}
