/* sim.css -- the Dock's own apps (sim.js): their windows, Launchpad and its folders, Mail, Calendar, Notes, the browser,
   TV, Music, System Settings and Terminal. The open folder itself is the kit's (glass.css). */

/* ---- the window: traffic lights left, title centred, then the app ---- */
.lg-sim { flex-direction: column; }
.lg-sim-bar { position: relative; flex: none; display: flex; align-items: center; height: 42px; padding: 0 14px; cursor: default; }
.lg-sim-bar .lg-traffic { position: relative; z-index: 1; padding: 0; }
.lg-sim-nav { position: relative; z-index: 1; margin-left: 14px; }      /* back and forward, after the lights, as a Mac window has them */
.lg-sim-nav button:disabled { opacity: .35; }
.lg-sim-title { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; pointer-events: none; }
.lg-sim-body { flex: 1; min-height: 0; overflow: auto; }

/* ---- shared by the apps ---- */
.lg-ui { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 26px; padding: 0; border: 0; border-radius: 7px;
  background: none; color: var(--lg-text-2); cursor: default; }
.lg-icon-btn:hover { background: var(--lg-hover); color: var(--lg-text); }
.lg-icon-btn:disabled { opacity: .4; background: none; }
.lg-pill { height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--lg-control); font-size: 12.5px; cursor: default;
  box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .3); }
.lg-pill.is-primary { background: var(--lg-accent); color: #fff; box-shadow: none; }
.lg-dark-win { --lg-tint: rgb(14 14 16 / calc(.70 + .30 * var(--lg-op))); --lg-text: #f5f5f7; --lg-text-2: rgba(235, 235, 245, .66); --lg-text-3: rgba(235, 235, 245, .40);
  --lg-hover: rgba(255, 255, 255, .08); color: var(--lg-text); }
.lg-dark-win .lg-sim-title { color: rgba(255, 255, 255, .75); }
.lg-shake { animation: lg-shake .35s; }
@keyframes lg-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lg-web-note { margin: 0; padding: 40px 24px; text-align: center; color: var(--lg-text-2); }

/* ---- Launchpad: an iPad's home screen, folders and all ---- */
.lg-launchpad {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 6vw 120px;
  overflow: auto;
  background: rgba(10, 14, 20, .32);
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  transition: opacity .24s, transform .24s;
}
.lg-launchpad.is-open { opacity: 1; transform: none; pointer-events: auto; }
.lg-lp-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .75);
}
.lg-lp-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lg-lp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: #fff; }
.lg-lp-search input::placeholder { color: rgba(255, 255, 255, .6); }
.lg-lp-grid { display: grid; grid-template-columns: repeat(auto-fill, 112px); justify-content: center; gap: 34px 44px; width: 100%; max-width: 1000px; margin-top: 48px; }
.lg-lp-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); cursor: default; }
.lg-lp-item .lg-icon { width: 84px; height: 84px; }
.lg-lp-item[hidden] { display: none; }
.lg-lp-label { display: flex; align-items: center; gap: 5px; max-width: 112px; }
.lg-lp-label > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* a folder on the home screen: a pane of glass holding its first nine icons */
.lg-lp-folder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 5px;
  box-sizing: border-box;
  width: 84px;
  height: 84px;
  padding: 11px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 .6px rgba(255, 255, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 18px rgba(0, 0, 0, .18);
}
.lg-lp-folder i { display: block; aspect-ratio: 1; }
.lg-lp-folder svg { display: block; width: 100%; height: 100%; }

/* ---- Mail ---- */
.lg-sim-mail .lg-sim-body { position: relative; display: flex; overflow: hidden; }
.lg-mail-side { flex: none; display: flex; flex-direction: column; gap: 2px; width: 160px; padding: 0 8px 12px; }
.lg-mail-tools { display: flex; justify-content: flex-end; padding: 0 2px 8px; }
.lg-mail-side .lg-side-item { display: flex; align-items: center; }
.lg-mail-count { margin-left: auto; font-size: 11px; color: var(--lg-text-2); }
.lg-side-item.is-selected .lg-mail-count { color: inherit; }
.lg-mail-list { flex: none; width: 280px; overflow: auto; border-left: .5px solid rgba(128, 128, 128, .25); border-right: .5px solid rgba(128, 128, 128, .25); }
.lg-mail-row { position: relative; display: block; width: 100%; padding: 10px 14px 11px 24px; border: 0; border-bottom: .5px solid rgba(128, 128, 128, .18);
  background: none; text-align: left; cursor: default; }
.lg-mail-row.is-unread::before { content: ""; position: absolute; left: 9px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--lg-accent); }
.lg-mail-row.is-selected { background: var(--lg-accent); color: #fff; }
.lg-mail-row.is-selected small, .lg-mail-row.is-selected p { color: rgba(255, 255, 255, .82); }
.lg-mail-row.is-selected.is-unread::before { background: #fff; }
.lg-mail-row header { display: flex; justify-content: space-between; gap: 8px; }
.lg-mail-row b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.lg-mail-row small { flex: none; font-size: 11px; color: var(--lg-text-2); }
.lg-mail-subj { margin-top: 1px; font-size: 12.5px; }
.lg-mail-row p { display: -webkit-box; margin: 3px 0 0; overflow: hidden; font-size: 12px; color: var(--lg-text-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lg-mail-read { flex: 1; min-width: 0; overflow: auto; padding: 4px 26px 24px; user-select: text; }
.lg-mail-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: .5px solid rgba(128, 128, 128, .25); }
.lg-mail-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(#a0a7b4, #6b7280); color: #fff; font-size: 15px; font-weight: 600; }
.lg-mail-head b { display: block; font-size: 14px; }
.lg-mail-head small { font-size: 12px; color: var(--lg-text-2); }
.lg-mail-read h2 { margin: 16px 0 10px; font-size: 20px; font-weight: 700; }
.lg-mail-text { font-size: 14px; line-height: 1.55; }
.lg-mail-text p { margin: 0 0 10px; }
.lg-mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lg-mail-empty { display: grid; place-items: center; height: 100%; margin: 0; color: var(--lg-text-3); }
.lg-mail-compose { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: flex-start; padding-top: 6px; background: rgba(0, 0, 0, .12); }
.lg-mail-compose[hidden] { display: none; }
.lg-mail-card { display: flex; flex-direction: column; width: min(560px, 94%); height: min(380px, 92%); overflow: hidden; border-radius: 14px;
  background: var(--lg-window-tint); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--lg-shadow), inset 0 0 0 .5px rgba(255, 255, 255, .25); }
.lg-mail-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.lg-mail-card-head b { flex: 1; font-size: 13px; }
.lg-mail-field { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: .5px solid rgba(128, 128, 128, .25); font-size: 13px; color: var(--lg-text-2); }
.lg-mail-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--lg-text); }
.lg-mail-card textarea { flex: 1; min-height: 0; padding: 12px 14px; border: 0; border-top: .5px solid rgba(128, 128, 128, .25); outline: 0;
  resize: none; background: none; font: 14px/1.5 var(--lg-font); color: var(--lg-text); user-select: text; }

/* ---- Calendar ---- */
.lg-sim-calendar .lg-sim-body { display: flex; flex-direction: column; padding: 2px 16px 16px; }
.lg-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; }
.lg-cal-month { margin: 0; font-size: 22px; font-weight: 400; }
.lg-cal-month b { font-weight: 700; }
.lg-cal-head .lg-capsule button { width: auto; min-width: 30px; padding: 0 8px; font-size: 12px; color: var(--lg-text); }
.lg-cal-hint { margin: 0 2px 8px; font-size: 11px; color: var(--lg-text-3); }
.lg-cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); }
.lg-cal-dow { padding: 2px 8px 6px; font-size: 11px; font-weight: 600; text-align: right; color: var(--lg-text-2); }
.lg-cal-day { min-width: 0; padding: 4px 5px; overflow: hidden; border-top: .5px solid rgba(128, 128, 128, .28); font-size: 12px; text-align: right; }
.lg-cal-day i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; font-style: normal; }
.lg-cal-day.is-other { color: var(--lg-text-3); }
.lg-cal-day.is-today i { background: #ff3b30; color: #fff; font-weight: 600; }
.lg-cal-ev { display: flex; align-items: center; gap: 3px; margin-top: 2px; padding: 1px 4px 1px 6px; border-radius: 4px; font-size: 11px; font-style: normal;
  text-align: left; color: var(--lg-text); background: color-mix(in srgb, var(--lg-accent) 24%, transparent); box-shadow: inset 2px 0 0 var(--lg-accent); }
.lg-cal-ev span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-cal-ev button { flex: none; padding: 0 2px; border: 0; background: none; color: inherit; font-size: 12px; line-height: 1; opacity: 0; cursor: default; }
.lg-cal-ev:hover button { opacity: .7; }
.lg-cal-act { display: block; margin-top: 2px; padding: 1px 5px; overflow: hidden; border-radius: 4px; font-size: 10.5px; font-style: normal;
  text-align: left; white-space: nowrap; text-overflow: ellipsis; color: var(--lg-text); background: color-mix(in srgb, #fa233b 20%, transparent); cursor: default; }
.lg-cal-act.is-ph { background: color-mix(in srgb, #8e61d3 22%, transparent); }
.lg-cal-act:hover { filter: brightness(1.25); }
.lg-cal-new { box-sizing: border-box; width: 100%; margin-top: 2px; padding: 1px 5px; border: 0; border-radius: 4px; outline: 2px solid var(--lg-accent);
  background: var(--lg-control); font: 11px var(--lg-font); color: var(--lg-text); }

/* ---- Notes ---- */
.lg-sim-notes .lg-sim-body { display: flex; }
.lg-notes-list { flex: none; width: 200px; padding: 0 8px 10px; overflow: auto; border-right: .5px solid rgba(128, 128, 128, .25); }
.lg-notes-tools { display: flex; justify-content: flex-end; gap: 2px; padding: 0 0 6px; }
.lg-notes-head { margin: 10px 10px 4px; font-size: 11px; font-weight: 600; color: var(--lg-text-3); }
.lg-notes-text[contenteditable="false"] { cursor: text; }
.lg-notes-item { display: block; width: 100%; margin-bottom: 2px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: default; }
.lg-notes-item b { display: block; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.lg-notes-item small { font-size: 11px; color: var(--lg-text-2); }
.lg-notes-item.is-selected { background: #f2bb00; color: #1d1d1f; }
.lg-notes-item.is-selected small { color: rgba(0, 0, 0, .6); }
.lg-notes-page { flex: 1; min-width: 0; padding: 4px 22px 18px; overflow: auto; }
.lg-notes-when { margin-bottom: 12px; font-size: 11px; text-align: center; color: var(--lg-text-3); }
.lg-notes-text { min-height: 60%; outline: none; white-space: pre-wrap; font-size: 14px; line-height: 1.5; user-select: text; }
.lg-notes-text::first-line { font-size: 20px; font-weight: 700; }

/* ---- the browser ---- */
.lg-sim-browser .lg-sim-body { display: flex; flex-direction: column; overflow: hidden; }
.lg-web-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.lg-web-addr { flex: 1; display: flex; justify-content: center; margin: 0; }
.lg-web-addr input { box-sizing: border-box; width: min(540px, 100%); height: 28px; padding: 0 12px; border: 0; border-radius: 8px; outline: 0;
  background: var(--lg-control); box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .3); font: inherit; font-size: 13px; color: var(--lg-text); text-align: center; }
.lg-web-addr input:focus { text-align: left; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lg-accent) 45%, transparent); }
.lg-web-view { position: relative; flex: 1; min-height: 0; border-top: .5px solid rgba(128, 128, 128, .25); }
.lg-web-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.lg-web-view iframe[hidden], .lg-web-start[hidden] { display: none; }
.lg-web-start { position: absolute; inset: 0; overflow: auto; padding: 34px 40px; }
.lg-web-start h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.lg-web-favs { display: grid; grid-template-columns: repeat(auto-fill, 92px); gap: 22px 18px; }
.lg-web-fav { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; font-size: 12px; text-align: center; cursor: default; }
.lg-web-ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 15px; background: var(--lg-panel-tint);
  box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .3); transition: transform .12s; }
.lg-web-ico svg { width: 48px; height: 48px; }
.lg-web-fav:hover .lg-web-ico { transform: translateY(-2px); }

/* ---- TV: dark whatever the appearance ---- */
/* The home scrolls in its own pane, so the player, laid over the body, stays put; it used to ride the body's scroll
   away and uncover the row beneath it (Jay, 2026-10-23). */
.lg-sim-tv .lg-sim-body { position: relative; overflow: hidden; }
.lg-tv-home { position: absolute; inset: 0; overflow: auto; padding: 4px 24px 24px; }
.lg-tv-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 230px; padding: 22px; overflow: hidden; border-radius: 16px; background: #111; }
.lg-tv-art { position: absolute; inset: -30%; z-index: -2; opacity: .9; filter: blur(34px) saturate(1.5); }
.lg-tv-art svg { display: block; width: 100%; height: 100%; }
.lg-tv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 70%); }
.lg-tv-hero small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.lg-tv-hero h2 { margin: 4px 0 6px; font-size: 32px; font-weight: 700; }
.lg-tv-hero p { max-width: 480px; margin: 0 0 14px; color: rgba(255, 255, 255, .82); }
.lg-tv-play { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #000;
  font-size: 13px; font-weight: 600; cursor: default; }
.lg-tv-play .lg-ui { width: 14px; height: 14px; }
.lg-tv-home h3 { margin: 22px 2px 10px; font-size: 15px; font-weight: 700; }
.lg-tv-row { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 14px; padding-bottom: 6px; overflow-x: auto; }
.lg-tv-card { position: relative; isolation: isolate; height: 124px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #1a1a1d;
  color: #fff; text-align: left; cursor: default; transition: box-shadow .15s; }
.lg-tv-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%); }
.lg-tv-card:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, .65); }
.lg-tv-ico { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; }
.lg-tv-ico svg { display: block; width: 100%; height: 100%; }
.lg-tv-card b { position: absolute; left: 14px; bottom: 12px; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.lg-tv-player { position: absolute; inset: 0; background: #000; }
.lg-tv-player[hidden] { display: none; }
.lg-tv-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.lg-tv-chrome { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px;
  background: rgba(30, 30, 32, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 12px; opacity: 0; transition: opacity .2s; }
.lg-tv-player:hover .lg-tv-chrome, .lg-tv-chrome:focus-within { opacity: 1; }

/* TV's home videos: the video's own frame (or the GIF) is the card */
.lg-tv-home-card video, .lg-tv-home-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.lg-tv-player video, .lg-tv-still { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lg-tv-player video[hidden], .lg-tv-still[hidden], .lg-tv-player iframe[hidden] { display: none; }

/* ---- Photos ---- */
.lg-sim-photos .lg-sim-body { position: relative; display: flex; flex-direction: column; overflow: hidden; }
/* the windows whose content is laid out against the body, not the window: below the title bar, not under it */
.lg-sim-videos .lg-sim-body { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.lg-sim-finder .lg-sim-body, .lg-sim-trash .lg-sim-body { position: relative; overflow: hidden; }
.lg-phx-bar { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 0 18px 10px; }
.lg-phx-bar b { font-size: 20px; font-weight: 700; }
.lg-phx-count { color: var(--lg-text-2); }
.lg-phx-grid { --phx: 128px; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--phx), 1fr)); align-content: start; gap: 6px;
  padding: 0 12px 16px; overflow: auto;
  /* each row as tall as what is in it. Left auto, the rows of a fixed-height grid whose tiles clip (no minimum height)
     shrank to nothing, so 1,781 photos piled up and the day headings showed through as a column (Jay, 2026-10-23) */
  grid-auto-rows: max-content; }
.lg-phx-grid h3 { grid-column: 1 / -1; margin: 14px 4px 6px; font-size: 13px; font-weight: 700; }
.lg-phx-tile { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: rgba(128, 128, 128, .15); cursor: default; }   /* soft corners, as Photos has */
.lg-phx-bar .lg-phx-views { margin-left: auto; align-self: center; }
.lg-phx-views button.is-on { background: var(--lg-selected); color: var(--lg-text); }
.lg-phx-grid.v-s { --phx: 84px; gap: 4px; }
.lg-phx-grid.v-l { --phx: 230px; gap: 8px; }
.lg-phx-meta { display: none; }
.lg-phx-tile video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.lg-phx-grid.v-list .lg-phx-tile video { flex: none; width: 46px; height: 46px; border-radius: 7px; }
.lg-phx-view video { max-width: calc(100% - 120px); max-height: calc(100% - 70px); border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lg-phx-view video[hidden], .lg-phx-view img[hidden] { display: none; }
/* ---- Finder (sim.js): the sidebar's frost, icon and list views, the path bar, Quick Look ---- */
.lg-fd { position: absolute; inset: 0; display: flex; }
.lg-fd-side { width: 180px; margin: 0 0 8px 8px; }
.lg-fd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-fd-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 16px 8px; }
.lg-fd-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-fd-count { font-size: 12px; color: var(--lg-text-2); white-space: nowrap; }
.lg-fd-hide { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lg-text-2); white-space: nowrap; }
.lg-fd-views button.is-on { background: var(--lg-selected); color: var(--lg-text); }
.lg-fd-items { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 12px; outline: none; }
.lg-fd-items.v-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); align-content: start; gap: 4px; }
.lg-fd-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 6px; border: 0; border-radius: 10px;
              background: none; color: inherit; font: inherit; cursor: default; min-width: 0; }
.lg-fd-ico { position: relative; display: grid; place-items: center; width: 64px; height: 52px; border-radius: 8px; }
.lg-fd-ico svg { width: 64px; height: 52px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
.lg-fd-app svg { width: 50px; height: 50px; }
.lg-fd-alias { position: absolute; left: 4px; bottom: 2px; width: 14px; height: 14px; border-radius: 4px; font: 700 10px/14px var(--lg-font);
               font-style: normal; text-align: center; color: #333; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); }
.lg-fd-name { max-width: 100%; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; line-height: 1.3; text-align: center; word-break: break-word;
              display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lg-fd-item.is-sel .lg-fd-ico { background: var(--lg-selected); }
.lg-fd-item.is-sel .lg-fd-name { color: #fff; background: var(--lg-accent); }
.is-hidden { opacity: .55; }
.lg-fd-items.v-list { display: block; padding-top: 0; }
.lg-fd-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 170px 80px 140px; align-items: center; gap: 8px; height: 26px; padding: 0 8px;
             border-radius: 6px; font-size: 12.5px; white-space: nowrap; }
.lg-fd-row > span { overflow: hidden; text-overflow: ellipsis; }
.lg-fd-row > span:nth-child(n+3) { color: var(--lg-text-2); }
.lg-fd-row:nth-child(even):not(.lg-fd-head) { background: rgba(128, 128, 128, .07); }
.lg-fd-row.is-sel, .lg-fd-row.is-sel:nth-child(even) { color: #fff; background: var(--lg-accent); }
.lg-fd-row.is-sel > span { color: #fff; }
.lg-fd-head { position: sticky; top: 0; z-index: 1; height: 24px; font-size: 11.5px; font-weight: 600; color: var(--lg-text-2);
              background: var(--lg-tint, rgba(30, 30, 34, .8)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lg-fd-sm { position: relative; display: grid; place-items: center; }
.lg-fd-sm svg { width: 18px; height: 15px; }
.lg-fd-sm .lg-fd-app svg { width: 16px; height: 16px; }
.lg-fd-sm .lg-fd-alias { display: none; }
.lg-fd-path { flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 14px 7px; border-top: .5px solid rgba(128, 128, 128, .22);
              font-size: 11.5px; color: var(--lg-text-2); white-space: nowrap; overflow: hidden; }
.lg-fd-path button { padding: 1px 4px; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: default; }
.lg-fd-path button:hover { background: var(--lg-hover); color: var(--lg-text); }
.lg-fd-path i { font-style: normal; opacity: .6; }
.lg-fd-ql { position: absolute; inset: 18px 28px; z-index: 5; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
            background: rgba(28, 28, 32, .94); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .45); }
:root[data-theme="light"] .lg-fd-ql { background: rgba(250, 250, 252, .97); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .lg-fd-ql { background: rgba(250, 250, 252, .97); } }
.lg-fd-ql[hidden] { display: none; }
.lg-fd-ql-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: .5px solid rgba(128, 128, 128, .25); font-size: 13px; }
.lg-fd-ql-bar a { font-size: 12px; color: var(--lg-accent-text, var(--lg-accent)); text-decoration: none; }
.lg-fd-ql-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--lg-control); color: var(--lg-text); font-size: 15px; cursor: default; }
.lg-fd-ql-body { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; }
.lg-fd-ql-body img, .lg-fd-ql-body video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lg-fd-ql-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lg-fd-ql-body pre { align-self: start; justify-self: stretch; margin: 0; padding: 14px 18px; font: 12px/1.5 "SF Mono", "Cascadia Code", Consolas, monospace;
                     white-space: pre-wrap; word-break: break-word; }
.lg-fd-info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lg-fd-info svg { width: 120px; height: 98px; }
.lg-fd-info small { color: var(--lg-text-2); }
/* the Trash: a Finder window with what was retired */
.lg-trash { position: absolute; inset: 0; padding: 4px 22px 18px; overflow: auto; }
.lg-trash-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.lg-trash-head b { font-size: 20px; font-weight: 700; }
.lg-trash-head small { color: var(--lg-text-2); }
.lg-trash-item { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 110px; padding: 10px 6px; border: 0; border-radius: 10px;
                 background: none; color: inherit; font: 12px var(--lg-font); cursor: default; }
.lg-trash-item .lg-icon { width: 58px; height: 58px; }
.lg-trash-item.is-selected { background: var(--lg-selected); }
.lg-trash-item.is-selected span { padding: 0 6px; border-radius: 4px; background: var(--lg-accent); color: #fff; }
.lg-trash-note { margin: 22px 2px 0; font-size: 12px; color: var(--lg-text-2); }
.lg-phx-grid.v-list { grid-template-columns: 1fr; gap: 1px; }
.lg-phx-grid.v-list .lg-phx-tile { aspect-ratio: auto; display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 8px;
                                   background: none; color: inherit; font: inherit; text-align: left; }
.lg-phx-grid.v-list .lg-phx-tile:hover { background: var(--lg-hover); }
.lg-phx-grid.v-list .lg-phx-tile img { flex: none; width: 46px; height: 46px; border-radius: 7px; }
.lg-phx-grid.v-list .lg-phx-tile:hover img { transform: none; }
.lg-phx-grid.v-list .lg-phx-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lg-phx-meta b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-phx-meta small { font-size: 11.5px; color: var(--lg-text-2); }
.lg-phx-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.lg-phx-tile:hover img { transform: scale(1.04); }
.lg-phx-view { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .88); }
.lg-phx-view[hidden] { display: none; }
.lg-phx-view img { max-width: calc(100% - 120px); max-height: calc(100% - 70px); object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lg-phx-cap { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 12px; text-align: center; color: rgba(255, 255, 255, .75); }
.lg-phx-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-50%); cursor: default; }
.lg-phx-nav[data-d="-1"] { left: 16px; }
.lg-phx-nav[data-d="1"] { right: 16px; }
.lg-phx-nav .lg-ui { width: 20px; height: 20px; }
.lg-phx-close { position: absolute; top: 10px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 18px; line-height: 1; cursor: default; }

/* ---- Music ---- */
.lg-sim-music .lg-sim-body { display: flex; }
.lg-music-side { flex: none; width: 160px; padding: 0 8px 12px; }
.lg-music-side h4 { margin: 4px 10px 4px; font-size: 11px; font-weight: 600; color: var(--lg-text-3); }
.lg-music-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-music-now { flex: none; display: flex; align-items: center; gap: 18px; padding: 2px 20px 14px; border-bottom: .5px solid rgba(128, 128, 128, .25); }
.lg-music-art { flex: none; width: 96px; height: 96px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.lg-music-meta { flex: 1; min-width: 0; }
.lg-music-meta b { display: block; font-size: 16px; }
.lg-music-meta small { color: var(--lg-text-2); }
.lg-music-ctrl { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.lg-music-ctrl .lg-icon-btn { width: 34px; height: 30px; color: var(--lg-text); }
.lg-music-ctrl .lg-ui { width: 18px; height: 18px; }
.lg-music-ctrl [data-m="toggle"] .lg-ui { width: 22px; height: 22px; }
.lg-music-prog { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--lg-text-2); }
.lg-music-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(128, 128, 128, .3); }
.lg-music-views { display: flex; flex-direction: column; gap: 2px; }
.lg-music-bar i { display: block; width: 0; height: 100%; background: var(--lg-text-2); }
.lg-music-list { flex: 1; min-height: 0; margin: 0; padding: 6px 12px 14px; overflow: auto; list-style: none; }
.lg-music-list button { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0;
  border-radius: 8px; background: none; font-size: 13px; text-align: left; cursor: default; }
.lg-music-list button:hover { background: var(--lg-hover); }
.lg-music-list button > span:first-child { color: var(--lg-text-3); font-variant-numeric: tabular-nums; }
.lg-music-list small { color: var(--lg-text-2); font-variant-numeric: tabular-nums; }
.lg-music-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-music-t small { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.lg-music-list .is-current button, .lg-music-list .is-current button > span:first-child { color: #fa233b; font-weight: 600; }

/* ---- System Settings ---- */
.lg-sim-settings .lg-sim-body, .lg-sim-phone .lg-sim-body { display: flex; }
/* Phone: System Settings' rows, plus a text field and a status line (2026-10-25) */
.lg-ph-input { flex: 1; min-width: 0; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--lg-control);
  font: inherit; font-size: 13px; color: var(--lg-text); outline: 0; }
.lg-ph-input:focus { box-shadow: 0 0 0 2px var(--lg-accent); }
.lg-ph-edit { display: flex; gap: 8px; align-items: center; }
.lg-ph-cfg { width: 190px; flex: none; }
.lg-ph-note { min-height: 1.3em; margin: 10px 4px 6px; font-size: 12px; color: var(--lg-text-2); }
.lg-sim-phone a.lg-pill { display: inline-flex; align-items: center; color: var(--lg-text); text-decoration: none; }
/* Phone, the iPhone way (2026-10-25): a home screen, Recents, Contacts, a contact and Settings in the desktop's own glass.
   --pp-k is the type size, from the A A in the bar; every size on these screens is a multiple of it. */
.lg-pp { flex: 1; min-width: 0; display: flex; flex-direction: column; --pp-k: 1; }
.lg-pp-nav { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 34px; padding: 0 12px 4px; }
.lg-pp-back { justify-self: start; padding: 2px 4px; border: 0; background: none; color: var(--lg-accent); font: inherit;
              font-size: calc(15px * var(--pp-k)); white-space: nowrap; cursor: default; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lg-pp-back[hidden] { display: block; visibility: hidden; }
.lg-pp-navtitle { font-size: calc(15px * var(--pp-k)); font-weight: 600; }
.lg-pp-size { justify-self: end; display: flex; gap: 4px; }
.lg-pp-size button { width: 30px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: var(--lg-frost); box-shadow: var(--lg-frost-rims);
                     color: var(--lg-text); font: inherit; line-height: 1; cursor: default; }
.lg-pp-size button:first-child { font-size: 11px; }
.lg-pp-size button:last-child { font-size: 17px; font-weight: 600; }
.lg-pp-size button:hover { background: var(--lg-frost-hover); }
.lg-pp-screen { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 18px; font-size: calc(14px * var(--pp-k)); }
.lg-pp-h1 { margin: 2px 4px 12px; font-size: calc(28px * var(--pp-k)); font-weight: 700; letter-spacing: -.3px; }
.lg-pp-status { margin: 4px 4px 0; font-size: calc(13px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(76px * var(--pp-k)), 1fr)); gap: 20px 6px; padding: 20px 2px; }
.lg-pp-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--lg-text);
             font: inherit; font-size: calc(12px * var(--pp-k)); text-decoration: none; cursor: default; }
.lg-pp-app .lg-icon { width: calc(60px * var(--pp-k)); height: calc(60px * var(--pp-k)); }
.lg-pp-app span { font-size: calc(12.5px * var(--pp-k)); }     /* the same under a link (Messages) as under a button */
.lg-pp-group { border-radius: 14px; background: var(--lg-frost); box-shadow: var(--lg-frost-rims); overflow: hidden; }
.lg-pp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; background: none; color: inherit;
             font: inherit; text-align: left; cursor: default; }
.lg-pp-row + .lg-pp-row, .lg-pp-field + .lg-pp-field { border-top: .5px solid rgb(128 128 128 / .24); }
.lg-pp-row:hover { background: var(--lg-hover); }
.lg-pp-av { flex: none; display: grid; place-items: center; width: calc(36px * var(--pp-k)); height: calc(36px * var(--pp-k)); border-radius: 50%;
            overflow: hidden; background: linear-gradient(#a7acb4, #7f848c); color: #fff; font-size: calc(14px * var(--pp-k)); font-weight: 600; }
.lg-pp-av img { width: 100%; height: 100%; object-fit: cover; }
.lg-pp-av svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.lg-pp-av.is-big { width: calc(92px * var(--pp-k)); height: calc(92px * var(--pp-k)); font-size: calc(34px * var(--pp-k)); }
.lg-pp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lg-pp-main b, .lg-pp-field b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pp .is-missed { color: #ff453a; }
.lg-pp-main small, .lg-pp-when small, .lg-pp-field small { font-size: calc(12px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: calc(13px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-seg { display: flex; margin: 0 2px 12px; padding: 2px; border-radius: 9px; background: rgb(128 128 128 / .18); }
.lg-pp-seg button { flex: 1; height: calc(26px * var(--pp-k)); border: 0; border-radius: 7px; background: none; color: var(--lg-text); font: inherit;
                    font-size: calc(13px * var(--pp-k)); font-weight: 500; cursor: default; }
.lg-pp-seg button.is-on { background: var(--lg-frost-hover); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.lg-pp-search { display: block; width: 100%; box-sizing: border-box; height: calc(32px * var(--pp-k)); margin: 0 0 6px; padding: 0 12px; border: 0;
                border-radius: 10px; background: rgb(128 128 128 / .18); color: var(--lg-text); font: inherit; font-size: calc(14px * var(--pp-k)); outline: 0; }
.lg-pp-search:focus { box-shadow: 0 0 0 2px var(--lg-accent); }
.lg-pp-sec { margin: 14px 6px 6px; font-size: calc(12px * var(--pp-k)); font-weight: 700; color: var(--lg-text-2); }
.lg-pp-card { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 18px; }
.lg-pp-card h2 { margin: 0; font-size: calc(24px * var(--pp-k)); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.lg-pp-field { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.lg-pp-field > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lg-pp-field a { color: var(--lg-accent); text-decoration: none; overflow-wrap: anywhere; }
.lg-pp-sub { margin: 18px 6px 6px; font-size: calc(12px * var(--pp-k)); font-weight: 600; color: var(--lg-text-2); }
.lg-pp-empty { margin: 30px 8px; text-align: center; color: var(--lg-text-2); }
.lg-pp-hint { margin: -6px 6px 12px; font-size: calc(13px * var(--pp-k)); }   /* Messages: the way to reply, a thread's bubbles */
.lg-pp-hint a { color: var(--lg-accent); text-decoration: none; }
.lg-pp-main b.is-unread { font-weight: 700; }
.lg-pp-main b.is-unread::before { content: '● '; color: var(--lg-accent); }
.lg-pp-snip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lg-pp-thead { margin: 0 4px 12px; font-size: calc(17px * var(--pp-k)); font-weight: 600; text-align: center; }
.lg-pp-thread { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.lg-pp-sep { align-self: center; margin: 12px 0 4px; font-size: calc(11.5px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-bub { align-self: flex-start; max-width: 78%; padding: 7px 12px; border-radius: 18px; background: rgb(128 128 128 / .22);
             font-size: calc(14px * var(--pp-k)); line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-pp-bub.is-out { align-self: flex-end; background: var(--lg-accent); color: #fff; }
.lg-pp-bub small { display: block; margin-top: 2px; font-size: calc(11px * var(--pp-k)); opacity: .7; }
.lg-pp-ctl { display: flex; flex-direction: column; }            /* Settings: the control panel, its panes along the top */
.lg-pp-ctl .lg-set-side { width: auto; display: flex; gap: 4px; padding: 0 0 10px; }
.lg-pp-ctl .lg-set-side .lg-side-item { width: auto; }
.lg-pp-ctl .lg-set-main { padding: 0; overflow: visible; }
.lg-pp-ctl .lg-set-row { flex-wrap: wrap; row-gap: 6px; }          /* a narrow window: the cue's slider and Play go under */
.lg-pp-ctl .lg-ph-edit { flex-wrap: wrap; justify-content: flex-end; }
/* Files and Photos (2026-10-26): a folder's crumbs, a file's picture or player, the photo grid, a photo with its date.
   Every size a multiple of --pp-k, like the rest. */
.lg-pp-note { margin: -4px 6px 12px; font-size: calc(12.5px * var(--pp-k)); line-height: 1.4; color: var(--lg-text-2); }
.lg-pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin: 0 4px 4px; font-size: calc(13px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-crumbs i { font-style: normal; opacity: .6; }
.lg-pp-crumbs button, .lg-pp button.lg-pp-link { padding: 0; border: 0; background: none; color: var(--lg-accent); font: inherit; text-align: left;
                                    overflow-wrap: anywhere; cursor: default; }
.lg-pp-th { flex: none; display: grid; place-items: center; width: calc(36px * var(--pp-k)); height: calc(36px * var(--pp-k)); border-radius: 7px;
            overflow: hidden; background: rgb(128 128 128 / .18); color: var(--lg-text-2); }
.lg-pp-th img { width: 100%; height: 100%; object-fit: cover; }
.lg-pp-th svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-pp-th.is-folder { background: none; color: #3d9bff; }
.lg-pp-th.is-folder svg { width: 100%; height: 100%; fill: rgb(61 155 255 / .22); }
.lg-pp-th.is-big { width: calc(96px * var(--pp-k)); height: calc(96px * var(--pp-k)); border-radius: 20px; }
.lg-pp-ic { flex: none; display: grid; width: calc(32px * var(--pp-k)); height: calc(32px * var(--pp-k)); }
.lg-pp-ic .lg-icon, .lg-pp-ic img { width: 100%; height: 100%; }
.lg-pp-ic img { border-radius: 23%; }
.lg-pp-chev { flex: none; color: var(--lg-text-2); font-size: calc(18px * var(--pp-k)); line-height: 1; }
.lg-pp-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pp-main small.lg-pp-snip { white-space: normal; }
.lg-pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 14px; }
.lg-pp-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 5px 11px; border: 0; border-radius: 999px;
              background: var(--lg-frost); box-shadow: var(--lg-frost-rims); color: var(--lg-accent); font: inherit;
              font-size: calc(12.5px * var(--pp-k)); text-align: left; overflow-wrap: anywhere; cursor: default; }
.lg-pp-chip small { color: var(--lg-text-2); }
.lg-pp-more { margin: 14px 8px; text-align: center; font-size: calc(12px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(86px * var(--pp-k)), 1fr)); gap: 2px; margin: 0 -10px; }
.lg-pp-month { grid-column: 1 / -1; margin: 14px 12px 6px; font-size: calc(15px * var(--pp-k)); font-weight: 700; }
.lg-pp-month:first-child { margin-top: 2px; }
.lg-pp-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: rgb(128 128 128 / .18); overflow: hidden; cursor: default; }
.lg-pp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lg-pp-tile small { position: absolute; right: 5px; bottom: 4px; color: #fff; font-size: calc(11px * var(--pp-k)); font-weight: 600;
                    text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
.lg-pp-view { display: block; width: 100%; max-height: 58vh; margin: 0 0 12px; object-fit: contain; border-radius: 10px; background: rgb(0 0 0 / .22); }
.lg-pp-audio { display: block; width: 100%; margin: 4px 0 14px; }
.lg-pp-pdf { display: block; width: 100%; height: 58vh; margin: 0 0 12px; border: 0; border-radius: 10px; background: #fff; }
.lg-pp-pre { max-height: 52vh; margin: 0 0 12px; padding: 10px 12px; overflow: auto; border-radius: 10px; background: rgb(128 128 128 / .14);
             font: calc(12px * var(--pp-k)) / 1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-pp-save { margin-top: 12px; }
.lg-pp-photo { display: flex; flex-direction: column; gap: 10px; height: 100%; outline: 0; }
.lg-pp-photo .lg-pp-view { flex: 1; min-height: 0; max-height: none; margin: 0; }
.lg-pp-pdate { display: flex; flex-direction: column; gap: 1px; margin: 0 4px; text-align: center; }
.lg-pp-pdate b { font-size: calc(15px * var(--pp-k)); font-weight: 600; }
.lg-pp-pdate small { font-size: calc(12px * var(--pp-k)); color: var(--lg-text-2); }
.lg-pp-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lg-pp-pager > button { width: calc(46px * var(--pp-k)); height: calc(34px * var(--pp-k)); border: 0; border-radius: 10px; background: var(--lg-frost);
                        box-shadow: var(--lg-frost-rims); color: var(--lg-text); font: inherit; font-size: calc(22px * var(--pp-k)); line-height: 1; cursor: default; }
.lg-pp-pager > button:hover:not(:disabled) { background: var(--lg-frost-hover); }
.lg-pp-pager > button:disabled { opacity: .35; }
.lg-pp-pager span { font-size: calc(12.5px * var(--pp-k)); color: var(--lg-text-2); text-align: center; }
/* WhatsApp (2026-10-26): Messages' screens, its own green, and who said it in a group */
.lg-pp-from { display: block; margin-bottom: 1px; font-size: calc(11.5px * var(--pp-k)); font-weight: 600; color: #25a85f; }
.lg-pp-thread.is-wa .lg-pp-bub.is-out { background: #1f8f5f; }
/* Activity Monitor: FoldView's dashboard, the desktop's glass (2026-10-25) */
.lg-mon { padding: 6px 16px 14px; }
.lg-mon-row { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.lg-mon-k { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--lg-text-2); }
.lg-mon-row b { margin-left: auto; font-size: 15px; font-weight: 600; color: #f0b54a; font-variant-numeric: tabular-nums; }
.lg-mon-u { min-width: 24px; font-size: 11px; color: var(--lg-text-2); }
.lg-mon-spark { display: block; width: 100%; height: 40px; border-radius: 6px; background: rgb(0 0 0 / .14); }
.lg-mon-note { margin: 10px 0 0; font-size: 11px; color: var(--lg-text-2); }
.lg-mon-note:empty { display: none; }
/* Claude Meter (2026-10-25): the kit's widget layout -- the 5-hour limit a wide card, each weekly a ring -- in the desktop's
   own glass. The first take painted a wallpaper and glows of its own and read as garish (Jay: "use L&F we have for now"):
   the cards are the sidebar's frost, the colour is the accent, amber at 80 % and red at 95 %. */
.lg-cm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 14px 14px; }
.lg-cm-card { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border-radius: 18px; box-sizing: border-box;
  background: var(--lg-frost); box-shadow: var(--lg-frost-rims); }
.lg-cm-wide { grid-column: 1 / -1; }
.lg-cm-sq { aspect-ratio: 1; align-items: center; text-align: center; }
.lg-cm-label { align-self: flex-start; max-width: 100%; font-size: 12px; font-weight: 600; color: var(--lg-text-2); text-align: left;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-cm-big { font-size: 38px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.lg-cm-big small { margin-left: 1px; font-size: 19px; font-weight: 400; color: var(--lg-text-2); }
.lg-cm-bar { height: 8px; margin: 6px 0 8px; border-radius: 999px; background: rgb(128 128 128 / .22); overflow: hidden; }
.lg-cm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lg-accent); transition: width .4s ease; }
.lg-cm-bar i.is-amber { background: #ff9f0a; }
.lg-cm-bar i.is-red { background: #ff453a; }
.lg-cm-ring { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 6px 0 4px; }
.lg-cm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-cm-ring circle { fill: none; stroke: rgb(128 128 128 / .22); stroke-width: 8; }
.lg-cm-ring circle + circle { stroke: var(--lg-accent); stroke-linecap: round; }
.lg-cm-ring circle.is-amber { stroke: #ff9f0a; }
.lg-cm-ring circle.is-red { stroke: #ff453a; }
.lg-cm-ring .lg-cm-big { font-size: 26px; }
.lg-cm-ring .lg-cm-big small { font-size: 13px; }
.lg-cm-reset { font-size: 11px; line-height: 1.35; color: var(--lg-text-2); }
.lg-cm-note { margin: 0; padding: 0 14px 12px; font-size: 11px; text-align: center; color: var(--lg-text-2); }
.lg-cm-empty { grid-column: 1 / -1; margin: 40px 0; font-size: 13px; text-align: center; color: var(--lg-text-2); }
.lg-set-side { flex: none; width: 180px; padding: 0 8px 12px; }
.lg-set-side .lg-side-item:disabled { opacity: .55; }
.lg-set-side .lg-side-item.is-selected { background: var(--lg-accent); color: #fff; }
.lg-set-main { flex: 1; min-width: 0; padding: 0 18px 18px 8px; overflow: auto; }
.lg-set-title { margin: 2px 0 12px; font-size: 15px; font-weight: 700; }
.lg-set-sub { margin: 18px 4px 8px; font-size: 13px; font-weight: 700; }
.lg-set-group { border-radius: 12px; background: var(--lg-panel-tint); box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .28); }
.lg-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.lg-set-row + .lg-set-row { border-top: .5px solid rgba(128, 128, 128, .22); }
.lg-set-row > span { font-size: 13px; }
.lg-set-row small { display: block; font-size: 11px; color: var(--lg-text-2); }
.lg-set-val { color: var(--lg-text-2); text-align: right; }
.lg-set-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.lg-set-choices button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-size: 11px; color: var(--lg-text-2); cursor: default; }
.lg-set-choices button.is-on { color: var(--lg-text); font-weight: 600; }
.lg-thumb { display: block; width: 62px; height: 40px; border-radius: 8px; box-shadow: 0 0 0 .5px rgba(128, 128, 128, .45); }
.lg-set-choices button.is-on .lg-thumb { box-shadow: 0 0 0 2.5px var(--lg-accent); }
.lg-thumb-auto { background: linear-gradient(90deg, #e9eef6 50%, #1c1f2a 50%); }
.lg-thumb-light { background: linear-gradient(160deg, #f4f7fb, #c9d6ea); }
.lg-thumb-dark { background: linear-gradient(160deg, #2a3042, #0f121a); }
.lg-thumb-clear { background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(120, 170, 255, .2)), url("wallpaper.jpg") center / cover; }
.lg-thumb-tinted { background: linear-gradient(135deg, rgba(20, 20, 30, .78), rgba(40, 40, 60, .62)), url("wallpaper.jpg") center / cover; }
.lg-thumb-ico { width: 40px; height: 40px; padding: 3px; box-sizing: border-box; box-shadow: none; }
.lg-thumb-svg { display: block; width: 100%; height: 100%; }
.lg-thumb-ico[data-style="dark"] .lg-thumb-svg { filter: brightness(.6) saturate(.85); }
.lg-thumb-ico[data-style="clear"] .lg-thumb-svg { filter: grayscale(1) brightness(1.3) opacity(.78); }
.lg-thumb-ico[data-style="tinted"] .lg-thumb-svg { filter: grayscale(1) sepia(1) hue-rotate(180deg) saturate(2.4); }
.lg-thumb-dock { display: flex; align-items: flex-end; justify-content: center; gap: 3px; box-sizing: border-box; padding-bottom: 6px;
  background: url("wallpaper.jpg") center / cover; }
.lg-thumb-dock b { display: block; width: var(--d); height: var(--d); border-radius: 3px; background: rgba(255, 255, 255, .88); }
.lg-thumb-dock[data-size="small"] { --d: 7px; }
.lg-thumb-dock[data-size="medium"] { --d: 9px; }
.lg-thumb-dock[data-size="large"] { --d: 11px; }
.lg-thumb-wp { width: 84px; height: 54px; }
.lg-thumb-wp-photo { background: url("wallpaper.jpg") center / cover; }
.lg-thumb-wp-dusk { background: var(--lg-wp-dusk); }
.lg-thumb-wp-aurora { background: var(--lg-wp-aurora); }
.lg-thumb-wp-graphite { background: var(--lg-wp-graphite); }
.lg-set-dots { display: flex; gap: 8px; }
.lg-set-dots button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); cursor: default; }
.lg-set-dots button[data-v=""] { background: conic-gradient(#ff453a, #ff9f0a, #ffd60a, #30d158, #0a84ff, #bf5af2, #ff375f, #ff453a); }
.lg-set-dots button.is-on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 4px var(--dot); }
.lg-toggle { position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 11px; background: rgba(128, 128, 128, .45);
  cursor: default; transition: background .2s; }
.lg-toggle::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, .3); transition: transform .2s; }
.lg-toggle[aria-checked="true"] { background: #30d158; }
.lg-toggle[aria-checked="true"]::after { transform: translateX(16px); }
.lg-set-about { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 18px; text-align: center; }
.lg-set-about .lg-apple { width: 60px; height: 60px; margin-bottom: 10px; color: var(--lg-text); opacity: .88; }
.lg-set-about b { font-size: 18px; }
.lg-set-about small { font-size: 12px; color: var(--lg-text-2); }

/* ---- Terminal: dark whatever the appearance ---- */
.lg-term-win { --lg-tint: rgb(18 18 20 / calc(.62 + .38 * var(--lg-op))); color: #e8e8e8; }
.lg-term-win .lg-sim-title { color: rgba(255, 255, 255, .75); }
.lg-term { height: 100%; box-sizing: border-box; padding: 2px 14px 12px; overflow: auto; cursor: text; user-select: text;
  font: 12.5px/1.5 "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace; }
.lg-term-out div { white-space: pre-wrap; word-break: break-word; }
.lg-term-line { display: flex; gap: 7px; }
.lg-term-in { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: inherit; caret-color: #e8e8e8; }
.lg-nf-k { color: #64aaff; }

/* ---- a project or dashboard in a window (sim.js openPage): the page fills the window under its title bar ---- */
.lg-page .lg-sim-body { overflow: hidden; }
.lg-page iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }

/* ---- System Settings: a slider row (Glass opacity, Output volume) ---- */
.lg-set-range { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.lg-set-range input { width: 170px; margin: 0; accent-color: var(--lg-accent); }
.lg-set-range output { min-width: 3.2em; color: var(--lg-text-2); font-variant-numeric: tabular-nums; text-align: right; }
