/* BunchOS apps: Profile Pic.app, Wallpaper.app + Finder. Reuses the Webflow tokens (--off-black, --lila, ...). */

/* ---------- dock tiles ---------- */
.menu_item.is-pfp { color: #a3f0a1; }
.menu_item.is-finder { color: #7fbee9; }
.menu_item.is-wallpaper { color: #ffc2ad; }
.menu_item-icon.is-pfp, .menu_item-icon.is-finder, .menu_item-icon.is-wallpaper { color: var(--off-black); width: 30px; height: 30px; }
@media screen and (max-width: 991px) {
  .menu_item-icon.is-pfp, .menu_item-icon.is-finder, .menu_item-icon.is-wallpaper { width: 28px; height: 28px; }
}
@media screen and (max-width: 479px) {
  /* 11 tiles: tighten the dock again so it still fits a 375px phone (11 x 29 + gaps = 359px) */
  .menu { grid-column-gap: .2rem; grid-row-gap: .2rem; padding-left: .4rem; padding-right: .4rem; }
  .menu_item { width: 29px; height: 29px; }
  .menu_item-icon { transform: scale(.78); }
  .menu_item-icon.is-pfp, .menu_item-icon.is-finder, .menu_item-icon.is-wallpaper { width: 17px; height: 17px; transform: none; }
  .menu_item-icon.is-maker { width: 16px; height: 16px; }
  .menu_item-icon.is-terminal { width: 18px; height: 18px; }
}

/* shared: a square that crops a 2000x2000 SVG (img positioned by JS) */
.pfp_crop, .finder_thumb, .finder_preview-thumb { position: relative; overflow: hidden; display: block; flex: none; }
.pfp_crop img, .finder_thumb img, .finder_preview-thumb img {
  position: absolute; max-width: none; height: auto; aspect-ratio: 1 / 1; display: block; pointer-events: none;
}

/* =====================================================================
   Profile Pic.app
   ===================================================================== */
.window.is-pfp {
  z-index: 1000;
  top: 52px;
  left: 50%;
  width: 720px;
  margin-left: -360px;
  height: min(700px, calc(100dvh - 185px));
}
.window_content.is-pfp {
  background-color: var(--off-white);
  color: var(--off-black);
  justify-content: flex-start;
  align-items: stretch;
  padding: 1.25rem;
  gap: 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  line-height: 1.4;
  font-size: 12px;
}
.pfp_head { display: flex; align-items: center; gap: .75rem; }
.pfp_current { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 2px solid var(--off-black); flex: none; }
.pfp_crop.is-current { width: 100%; height: 100%; }
.pfp_arrow {
  flex: none; width: 32px; height: 32px; border-radius: 100px; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--off-black); color: var(--off-white); cursor: pointer;
}
.pfp_arrow:hover { background: #5a2224; }
.pfp_arrow:focus-visible, .pfp_download:focus-visible, .finder_folder:focus-visible, .finder_item:focus-visible, .finder_open:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 2px;
}
.pfp_meta { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin-left: .5rem; }
.pfp_name { font-size: 16px; font-weight: 700; }
.pfp_file { opacity: .55; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.pfp_make { color: var(--off-black); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink); text-decoration-thickness: 2px; width: max-content; margin-top: .25rem; }
.pfp_make:hover { color: #c186ff; }

.pfp_frames { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pfp_frame { display: flex; flex-direction: column; border: 1px solid rgba(55, 16, 17, .14); border-radius: 8px; overflow: hidden; background: var(--white); }
.pfp_frame.is-x { grid-column: 1 / -1; }
.pfp_frame > :first-child { flex: 1; }
.pfp_frame-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .625rem .5rem .75rem; background: var(--white-green); border-top: 1px solid rgba(55, 16, 17, .1);
}
.pfp_frame-label { font-size: 11px; opacity: .7; white-space: nowrap; }
.pfp_download {
  border: 0; border-radius: 100px; padding: .4rem .8rem; cursor: pointer; white-space: nowrap;
  background: var(--off-black); color: var(--off-white); font: inherit; font-size: 11px;
}
.pfp_download:hover { background: #5a2224; }
.pfp_download:disabled { opacity: .7; cursor: default; }

/* mock UIs: platform-ish sans so they read as "somewhere else", no real marks */
.pfx, .pfs, .pfg, .pfl { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.35; }

/* X-style: banner, circle avatar overlapping it, name + @handle */
.pfx { background: #fff; color: #0f1419; }
.pfx_banner { aspect-ratio: 3 / 1; background: #ead0ff center / cover no-repeat; }
.pfx_row { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 1rem 0 .75rem; margin-top: -56px; }
.pfx_avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid #fff; background: #fff; }
.pfx_follow { background: #0f1419; color: #fff; border-radius: 100px; padding: .45rem 1rem; font-weight: 700; font-size: 13px; margin-bottom: .25rem; }
.pfx_body { padding: .5rem 1rem 1rem; }
.pfx_name { font-weight: 800; font-size: 18px; }
.pfx_handle { color: #536471; font-size: 13px; }
.pfx_bio { font-size: 13px; margin: .5rem 0; }
.pfx_meta { display: flex; gap: 1rem; color: #536471; font-size: 12px; }

/* LinkedIn-style: cover strip (4:1), circle avatar on its lower left, headline, two buttons */
.pfl { background: #fff; color: #1f1f1f; }
.pfl_cover { aspect-ratio: 1584 / 396; background: #ead0ff center / cover no-repeat; }
.pfl_avatar { width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; background: #fff; margin: -56px 0 0 1rem; position: relative; }
.pfl_body { padding: .4rem 1rem 1rem; }
.pfl_name { font-weight: 700; font-size: 18px; }
.pfl_headline { font-size: 13px; margin-top: .15rem; }
.pfl_meta { color: #666; font-size: 12px; margin-top: .25rem; }
.pfl_actions { display: flex; gap: .5rem; margin-top: .65rem; }
.pfl_btn { border: 1px solid #0a66c2; color: #0a66c2; border-radius: 100px; padding: .3rem .9rem; font-weight: 600; font-size: 12px; }
.pfl_btn.is-primary { background: #0a66c2; color: #fff; }
.pfp_frame.is-linkedin { grid-column: 1 / -1; }

/* the locked banner, said out loud above the mockups */
.pfp_lock-note {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .5rem .75rem; border-radius: 8px; background: rgba(55, 16, 17, .05); font-size: 11.5px; color: rgba(55, 16, 17, .75);
}
.pfp_lock-note.is-locked { background: #e3fbd9; color: var(--off-black); }
.pfp_lock-pin { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--off-black); color: #a3f0a1; font-size: 11px; font-weight: 700; }
.pfp_lock-undo { margin-left: auto; border: 0; background: none; padding: 0; font: inherit; color: var(--off-black); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pfp_lock-undo:focus-visible, .pfb_lock:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pfb_lock {
  flex: none; border: 1px solid var(--off-black); border-radius: 100px; padding: .4rem .8rem; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--off-black); font: inherit; font-size: 11px; margin-left: auto;
}
.pfb_lock:hover { background: rgba(55, 16, 17, .06); }
.pfb_lock.is-on { background: #a3f0a1; border-color: #a3f0a1; font-weight: 700; }

/* Slack-style: channel, small rounded-square avatar */
.pfs { background: #fff; color: #1d1c1d; font-size: 13px; display: flex; flex-direction: column; }
.pfs_channel { display: flex; gap: .3rem; align-items: center; padding: .6rem .875rem; font-weight: 800; border-bottom: 1px solid #e8e8e8; }
.pfs_hash { color: #616061; font-weight: 400; }
.pfs_msg { display: flex; gap: .55rem; padding: .55rem .875rem .1rem; }
.pfs_msg.is-cont { padding-top: 0; }
.pfs_avatar { width: 36px; height: 36px; border-radius: 8px; }
.pfs_time-gutter { width: 36px; flex: none; color: #616061; font-size: 10px; text-align: right; padding-top: 2px; visibility: hidden; }
.pfs_who { display: flex; gap: .4rem; align-items: baseline; }
.pfs_name { font-weight: 800; }
.pfs_time { color: #616061; font-size: 11px; }
.pfs_input { margin: auto .875rem .875rem; margin-top: auto; border: 1px solid #bbb; border-radius: 8px; padding: .5rem .625rem; color: #8b8a8b; font-size: 12px; }
.pfs_msg:last-of-type { margin-bottom: 1rem; }

/* GitHub-style: big circle, sidebar profile */
.pfg { background: #fff; color: #1f2328; padding: 1rem; font-size: 13px; }
.pfg_avatar { width: 112px; height: 112px; border-radius: 50%; border: 1px solid #d1d9e0; }
.pfg_name { font-size: 18px; font-weight: 600; margin-top: .6rem; }
.pfg_handle { color: #59636e; font-size: 14px; font-weight: 300; }
.pfg_bio { margin: .4rem 0 .6rem; }
.pfg_edit { text-align: center; border: 1px solid #d1d9e0; background: #f6f8fa; border-radius: 6px; padding: .3rem; font-weight: 500; font-size: 12px; }
.pfg_meta { color: #59636e; font-size: 12px; margin: .6rem 0; }
.pfg_grid { display: grid; grid-template-columns: repeat(14, 1fr); grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 2px; }
.pfg_grid i { aspect-ratio: 1; border-radius: 2px; background: #eff2f5; }
.pfg_grid { max-width: 260px; }
.pfg_grid i.is-l1 { background: #c6e48b; }
.pfg_grid i.is-l2 { background: #7bc96f; }
.pfg_grid i.is-l3 { background: #239a3b; }

/* ---------- Profile Pic: upload, Yours, tabs ---------- */
.pfp_links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-top: .25rem; }
.pfp_links .pfp_make { margin-top: 0; }
.pfp_upload { position: relative; cursor: pointer; color: var(--off-black); opacity: .7; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(55, 16, 17, .3); }
.pfp_upload:hover { opacity: 1; }
.pfp_upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pfp_upload:focus-within { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 2px; }
.pfp_status { font-size: 11px; color: #b4232f; min-height: 0; }
.pfp_status:empty { display: none; }
.window.is-yours .pfp_current { border-color: var(--off-black); box-shadow: 0 0 0 3px #a3f0a1; }

.pfp_tabs { display: flex; gap: .25rem; padding: .25rem; border-radius: 100px; background: rgba(55, 16, 17, .07); width: max-content; flex: none; }
.pfp_tab {
  border: 0; border-radius: 100px; padding: .4rem 1rem; cursor: pointer; background: transparent;
  color: var(--off-black); font: inherit; font-size: 12px; font-weight: 700; opacity: .65;
}
.pfp_tab:hover { opacity: 1; }
.pfp_tab.is-on { background: var(--off-black); color: var(--off-white); opacity: 1; }
.pfp_tab:focus-visible, .pfb_chip:focus-visible, .pfb_style:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[data-panel][hidden] { display: none !important; }

/* ---------- Profile Pic: banners ---------- */
.pfb { display: flex; flex-direction: column; gap: .875rem; }
.pfb_styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.pfb_style {
  display: flex; flex-direction: column; gap: .35rem; padding: .3rem .3rem .4rem; border: 1px solid rgba(55, 16, 17, .14);
  border-radius: 8px; background: var(--white); color: var(--off-black); font: inherit; font-size: 11px; cursor: pointer; text-align: left;
}
.pfb_style:hover { border-color: rgba(55, 16, 17, .4); }
.pfb_style.is-on { border-color: var(--off-black); box-shadow: 0 0 0 1px var(--off-black); }
.pfb_thumb { width: 100%; height: auto; aspect-ratio: 3 / 1; display: block; border-radius: 4px; background: rgba(55, 16, 17, .06); }
.pfb_style-label { padding: 0 .2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfb_row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.pfb_group { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pfb_group[hidden], .pfb_seg[hidden] { display: none; }
.pfb_label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.pfb_seg { display: flex; flex-wrap: wrap; gap: .3rem; }
.pfb_chip {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(55, 16, 17, .18); border-radius: 100px;
  padding: .3rem .65rem; background: var(--white); color: var(--off-black); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.pfb_chip:hover { border-color: rgba(55, 16, 17, .45); }
.pfb_chip.is-on { background: var(--off-black); border-color: var(--off-black); color: var(--off-white); }
.pfb_chip-dim { opacity: .55; font-variant-numeric: tabular-nums; }
.pfb_swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pfb_swatch.is-print { background-size: 18px 18px; background-position: center; }
.pfb_style[hidden] { display: none; }
.pfb_styles.has-pattern { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pfb_swatch.is-wall { background: conic-gradient(#ff8fd0, #d49eff, #a3f0a1, #fdcf28, #ff8fd0); }
.pfb_preview {
  margin: 0; padding: 1rem; border-radius: 8px; border: 1px solid rgba(55, 16, 17, .14);
  display: flex; justify-content: center; align-items: center; min-height: 140px;
  background: repeating-conic-gradient(rgba(55, 16, 17, .045) 0 25%, transparent 0 50%) 0 0 / 16px 16px, var(--white);
}
.pfb_stage { position: relative; width: 100%; max-height: 340px; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 0 rgba(55, 16, 17, .1), 0 6px 20px -8px rgba(55, 16, 17, .35); }
.pfb_stage.is-phone { width: auto; height: 340px; }
.pfb_stage.is-youtube, .pfb_stage.is-desktop { width: min(100%, 604px); }
.pfb_stage.is-x-header, .pfb_stage.is-linkedin { overflow: visible; margin-bottom: 1.5rem; }
.pfb_canvas { width: 100%; height: 100%; display: block; border-radius: 4px; }
.pfb_overlay { position: absolute; inset: 0; pointer-events: none; }
.pfb_avatar-ghost { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .9); background: rgba(47, 15, 15, .18); box-shadow: 0 0 0 1px rgba(47, 15, 15, .25); }
.pfb_safe { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(47, 15, 15, .3); }
.pfb_safe-label { position: absolute; left: 6px; top: 4px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pfb_foot { border: 1px solid rgba(55, 16, 17, .14); border-radius: 8px; }
.pfb_foot .pfp_frame-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pfb_foot .pfp_download { flex: none; }
.pfb_foot { flex-wrap: wrap; }

/* =====================================================================
   Finder
   ===================================================================== */
.window.is-finder {
  z-index: 1000;
  top: 72px;
  left: 50%;
  width: 800px;
  margin-left: -400px;
  height: min(540px, calc(100dvh - 180px));
  min-height: 360px;
}
.window_content.is-finder {
  background-color: var(--off-white);
  color: var(--off-black);
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
}
.finder_bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .5rem .875rem; border-bottom: 1px solid rgba(55, 16, 17, .12); background: var(--white-green);
}
.finder_path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder_total { opacity: .55; white-space: nowrap; }
.finder_body { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 1fr 200px; }

.finder_side { display: flex; flex-direction: column; gap: 1px; padding: .625rem .5rem; border-right: 1px solid rgba(55, 16, 17, .12); overflow: auto; background: var(--white-green); }
.finder_side-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .5; padding: .25rem .5rem .375rem; }
.finder_folder {
  display: flex; align-items: center; gap: .5rem; width: 100%; padding: .375rem .5rem; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.finder_folder:hover { background: rgba(55, 16, 17, .06); }
.finder_folder.is-active { background: var(--off-black); color: var(--off-white); }
.finder_folder-icon { width: 14px; height: 14px; flex: none; color: #7fbee9; }
.finder_folder-name { flex: 1; }
.finder_count { font-size: 10px; opacity: .55; }

.finder_grid {
  overflow: auto; overscroll-behavior: contain; padding: .75rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); grid-auto-rows: max-content; gap: .5rem .25rem;
  align-content: start;
}
.finder_item {
  display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: .375rem .25rem; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; cursor: default; min-width: 0;
}
.finder_thumb { width: 72px; height: 72px; border-radius: 8px; background: #f3ecfb; box-shadow: inset 0 0 0 1px rgba(55, 16, 17, .1); }
.finder_name { font-size: 10.5px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 .2rem; border-radius: 4px; }
.finder_item:hover .finder_thumb { box-shadow: inset 0 0 0 1px rgba(55, 16, 17, .25); }
.finder_item.is-selected .finder_thumb { box-shadow: 0 0 0 2px #7fbee9; }
.finder_item.is-selected .finder_name { background: var(--off-black); color: var(--off-white); }

.finder_preview { border-left: 1px solid rgba(55, 16, 17, .12); padding: 1rem .875rem; display: flex; flex-direction: column; gap: .75rem; overflow: auto; background: var(--white-green); }
.finder_preview-empty { opacity: .5; margin: auto; text-align: center; line-height: 1.5; }
.finder_preview-thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; background: #f3ecfb; box-shadow: inset 0 0 0 1px rgba(55, 16, 17, .1); }
.finder_preview-name { font-size: 14px; font-weight: 700; margin-bottom: .25rem; }
.finder_preview-meta { opacity: .6; overflow-wrap: anywhere; }
.finder_open {
  border: 0; border-radius: 100px; padding: .5rem .8rem; cursor: pointer; margin-top: auto;
  background: var(--pink); color: var(--off-black); font: inherit; font-weight: 700;
}
.finder_open:hover { background: #ff9bd6; }

/* =====================================================================
   Wallpaper.app
   ===================================================================== */
.window.is-wallpaper {
  z-index: 1000;
  top: 60px;
  left: 50%;
  width: 640px;
  margin-left: -320px;
  height: min(680px, calc(100dvh - 185px));
}
.window_content.is-wallpaper {
  background-color: var(--off-white); color: var(--off-black);
  justify-content: flex-start; align-items: stretch; padding: 1.25rem; gap: 1.5rem;
  overflow: auto; overscroll-behavior: contain; font-size: 12px; line-height: 1.4;
}
.wp_section { display: flex; flex-direction: column; gap: .75rem; }
.wp_head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wp_title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.wp_reset { border: 0; background: none; padding: 0; font: inherit; color: var(--off-black); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .7; }
.wp_reset:hover { opacity: 1; }
.wp_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.wp_pic { position: relative; padding: 0; border: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; background: rgba(55, 16, 17, .08); }
.wp_pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp_pic::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(55, 16, 17, .12); }
.wp_pic:hover::after { box-shadow: inset 0 0 0 2px rgba(55, 16, 17, .4); }
.wp_pic.is-on::after { box-shadow: inset 0 0 0 3px var(--off-black), inset 0 0 0 5px var(--off-white); }
.wp_pic.is-on::before { content: "✓"; position: absolute; z-index: 1; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--off-black); color: #a3f0a1; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
/* Type: the text field */
.pfb_text { display: flex; flex-direction: column; gap: .35rem; }
.pfb_text[hidden] { display: none; }
.pfb_input {
  width: 100%; max-width: 360px; box-sizing: border-box; padding: .55rem .75rem; border-radius: 8px; border: 1px solid rgba(55, 16, 17, .25);
  background: var(--white); color: var(--off-black); font: inherit; font-size: 16px; /* 16px: no iOS zoom */
}
.pfb_input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: var(--off-black); }
.pfb_hint { font-size: 10.5px; opacity: .55; }

/* Wallpaper: flat desktop colours */
.wp_colors { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.wp_color {
  position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(55, 16, 17, .2);
}
.wp_color.is-wall { background: conic-gradient(#ff8fd0, #d49eff, #a3f0a1, #fdcf28, #ff8fd0); }
.wp_color.is-custom { display: inline-grid; place-items: center; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.wp_color.is-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.wp_color.is-on { box-shadow: 0 0 0 2px var(--off-white), 0 0 0 4px var(--off-black); }
.wp_color:focus-visible, .wp_color:focus-within { outline: 2px solid var(--pink); outline-offset: 4px; }

/* a flat off-black / off-white desk: give windows and the dock an edge so they don't dissolve */
[data-desk-tone="dark"] .window { box-shadow: 0 0 0 1px rgba(235, 249, 228, .22); }
[data-desk-tone="dark"] .menu { box-shadow: 0 0 0 1px rgba(235, 249, 228, .25); }
[data-desk-tone="light"] .window { box-shadow: 0 0 0 1px rgba(47, 15, 15, .16), 0 10px 30px -14px rgba(47, 15, 15, .4); }

.wp_make { display: flex; flex-direction: column; gap: .875rem; }
.wp_who { display: flex; align-items: center; gap: .6rem; }
.wp_av { width: 56px; height: 56px; border-radius: 10px; border: 2px solid var(--off-black); }
.wp_name { font-size: 14px; font-weight: 700; margin-left: .25rem; }
.wp_styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.wp_styles.has-pattern { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wp_style[hidden] { display: none; }
.wp_thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 4px; background: rgba(55, 16, 17, .06); }
.wp_actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.wp_set {
  border: 0; border-radius: 100px; padding: .55rem 1.1rem; cursor: pointer; background: var(--off-black); color: var(--off-white);
  font: inherit; font-weight: 700;
}
.wp_set:hover { background: #5a2224; }
.wp_dl {
  display: inline-flex; gap: .4rem; align-items: center; border: 1px solid rgba(55, 16, 17, .25); border-radius: 100px; padding: .5rem .9rem;
  background: var(--white); color: var(--off-black); font: inherit; cursor: pointer; white-space: nowrap;
}
.wp_dl:hover { border-color: var(--off-black); }
.wp_set:disabled, .wp_dl:disabled { opacity: .7; cursor: default; }
.wp_pic:focus-visible, .wp_set:focus-visible, .wp_dl:focus-visible, .wp_reset:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---------- tablet: tighter windows ---------- */
@media screen and (max-width: 991px) and (min-width: 768px) {
  .window.is-pfp { width: calc(100vw - 48px); margin-left: 0; left: 24px; }
  .window.is-finder { width: calc(100vw - 48px); margin-left: 0; left: 24px; }
  .window.is-wallpaper { width: calc(100vw - 48px); margin-left: 0; left: 24px; }
}

/* ---------- phone: full-screen sheets ---------- */
@media screen and (max-width: 767px) {
  .window.is-pfp, .window.is-finder, .window.is-wallpaper {
    z-index: 9000 !important;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    transform: none !important;
  }
  .window_content.is-pfp, .window_content.is-wallpaper { padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .wp_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wp_styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp_actions { flex-direction: column; align-items: stretch; }
  .pfp_frames { grid-template-columns: 1fr; }
  .pfp_current { width: 72px; height: 72px; }
  .pfp_meta { margin-left: .25rem; }
  .pfp_name { font-size: 14px; }
  .pfb_styles, .pfb_styles.has-pattern { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfb_seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 2px; }
  .pfb_seg::-webkit-scrollbar { display: none; }
  .pfb_row, .pfb_group { width: 100%; }
  .pfb_preview { padding: .75rem; }
  .pfb_stage { max-height: 300px; }
  .pfb_stage.is-phone { height: 300px; }
  .pfb_stage.is-youtube, .pfb_stage.is-desktop { width: min(100%, 533px); }
  .pfp_tabs { width: 100%; }
  .pfp_tab { flex: 1; }

  .window.is-finder .ui-resizable-handle { display: none !important; }
  .finder_body { display: flex; flex-direction: column; }
  .finder_side {
    flex-direction: row; gap: .375rem; overflow-x: auto; overflow-y: hidden; flex: none;
    border-right: 0; border-bottom: 1px solid rgba(55, 16, 17, .12); padding: .5rem .75rem; scrollbar-width: none;
  }
  .finder_side::-webkit-scrollbar { display: none; }
  .finder_side-label { display: none; }
  .finder_folder { width: auto; flex: none; border-radius: 100px; padding: .375rem .75rem; background: rgba(55, 16, 17, .06); white-space: nowrap; }
  .finder_folder-icon { display: none; }
  .finder_grid { flex: 1; min-height: 0; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); padding: .625rem; }
  .finder_preview {
    flex: none; flex-direction: row; align-items: center; gap: .75rem; border-left: 0; border-top: 1px solid rgba(55, 16, 17, .12);
    padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom)); overflow: hidden; min-height: 76px;
  }
  .finder_preview-thumb { width: 56px; flex: none; border-radius: 8px; }
  .finder_preview-info { flex: 1; min-width: 0; }
  .finder_preview-name { font-size: 13px; margin-bottom: .1rem; }
  .finder_preview-meta:last-child { display: none; }
  .finder_open { margin-top: 0; flex: none; padding: .55rem .8rem; }
}

/* Finder mannequin: stacked layers share the thumb's crop */
.finder_layer { position: absolute; inset: 0; overflow: hidden; }
.finder_layer img { position: absolute; max-width: none; height: auto; aspect-ratio: 1 / 1; display: block; pointer-events: none; }
