/* ==========================================================================
   Jenny 98 — the "apps" that live inside the windows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared list/table view (Explorer, Media Player, Find, Recycle Bin)
   -------------------------------------------------------------------------- */
.listview { width: 100%; border-collapse: collapse; font-size: 12px; }
.listview caption { text-align: left; }
.listview thead th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: normal; white-space: nowrap;
  background: var(--face); box-shadow: var(--raised-soft), inset -1px -1px var(--shadow); padding: 2px 6px;
}
.listview td { padding: 2px 6px; vertical-align: top; }
.listview tbody tr:hover td { background: #fbe3ee; }
.listview tbody tr.selected td { background: var(--select); color: var(--select-text); }
.listview tbody tr.selected a { color: var(--select-text); }
.listview .name { display: flex; gap: 5px; align-items: flex-start; min-width: 200px; }
.listview .name .ico { width: 16px; height: 16px; margin-top: 1px; }
.listview a { color: #000; text-decoration: none; }
.listview a:hover, .listview a:focus-visible { text-decoration: underline; color: var(--link); }
.listview .group-row th {
  text-align: left; padding: 8px 6px 3px; font-weight: bold; color: var(--title-a);
  border-bottom: 1px solid #f0c9da;
}
.listview .muted { color: var(--muted); white-space: nowrap; }
.listview .wrap { white-space: normal; min-width: 140px; }
.award { display: inline-block; margin-left: 4px; padding: 0 4px; background: #ffe58a; color: #5a3b00; font-size: 10px; border: 1px solid #c9a227; white-space: nowrap; }

.tree { list-style: none; margin: 0; padding: 6px 4px; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; }
.tree button {
  display: flex; align-items: center; gap: 5px; width: 100%; padding: 2px 4px; text-align: left;
  background: none; border: 0; cursor: pointer; color: #000; white-space: nowrap;
}
.tree button .ico { width: 16px; height: 16px; }
.tree button[aria-pressed="true"] span { background: var(--select); color: var(--select-text); }
.tree button span { padding: 0 2px; }
.tree .count { color: var(--muted); }
.tree button[aria-pressed="true"] .count { color: #ffd6e8; }

.split { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--side, 190px) 7px minmax(0, 1fr); }
.split > .pane { height: 100%; }

/* --------------------------------------------------------------------------
   Profile (the MySpace homage)
   -------------------------------------------------------------------------- */
.space {
  --ms-blue: #003399;
  --ms-blue-2: #6699cc;
  --pink: #c2185b;
  --pink-dark: #8c1a4f;
  --pink-soft: #ffe1ee;
  --pink-line: #f48fb8;
  font: 12px/1.45 Verdana, Arial, Helvetica, sans-serif;
  color: #222;
  background:
    radial-gradient(circle at 20px 20px, #fff 0 1.4px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle at 34px 8px, #ffd2e6 0 1.2px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle at 8px 36px, #fff6 0 1px, transparent 1.6px) 0 0 / 46px 46px,
    linear-gradient(#ffc6dd, #ffc6dd);
}
.space a { color: var(--pink-dark); }
.space a:hover { color: var(--pink); }

.ms-top { background: var(--ms-blue); color: #fff; }
.ms-top-inner { max-width: 820px; margin: 0 auto; padding: 6px 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-logo { font: bold italic 22px/1 Arial, sans-serif; letter-spacing: -1px; display: flex; align-items: center; gap: 6px; }
.ms-logo svg { width: 26px; height: 26px; }
.ms-logo small { font: normal 11px Verdana, sans-serif; letter-spacing: 0; opacity: .85; margin-left: 2px; }
.ms-search { margin-left: auto; display: flex; gap: 4px; align-items: center; font-size: 11px; }
.ms-search input { min-height: 0; height: 21px; padding: 1px 4px; width: 150px; box-shadow: none; border: 1px solid #7f9db9; }
.ms-search button { height: 21px; font-size: 11px; padding: 0 6px; background: #fff; border: 1px solid #7f9db9; cursor: pointer; color: #000; }
.ms-nav { background: var(--ms-blue-2); }
.ms-nav ul { max-width: 820px; margin: 0 auto; padding: 4px 10px; list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.ms-nav li + li::before { content: "|"; color: #dbe6f2; padding: 0 6px; }
.ms-nav a { color: #fff; font-weight: bold; text-decoration: none; font-size: 11px; }
.ms-nav a:hover, .ms-nav a:focus-visible { text-decoration: underline; color: #fff; }

.marquee { overflow: hidden; white-space: nowrap; background: #fff0f6; border-bottom: 1px dashed var(--pink-line); color: var(--pink); font: bold 12px "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; }
.marquee span { display: inline-block; padding: 3px 0 3px 100%; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { padding-left: 10px; animation: none; } }

.ms-page { max-width: 820px; margin: 0 auto; padding: 14px 10px 18px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.ms-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ms-card { background: #fff; border: 1px solid var(--pink-line); padding: 10px; }
.ms-card--flush { padding: 0; }

.glitter {
  font: bold 26px/1.1 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  background: linear-gradient(100deg, #b0105a 0%, #ff4fa0 22%, #ffe0f0 32%, #ff4fa0 42%, #c2185b 60%, #ff79b8 78%, #fff 84%, #b0105a 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glitter 3.2s linear infinite; position: relative; display: inline-block;
  filter: drop-shadow(1px 1px 0 #fff);
}
.glitter::after { content: "✦"; position: absolute; right: -16px; top: -4px; font-size: 14px; color: #ff4fa0; -webkit-text-fill-color: #ff4fa0; animation: twinkle 1.4s ease-in-out infinite; }
@keyframes glitter { to { background-position: -250% 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

.ms-name small { display: block; font-size: 11px; color: #666; margin-top: 2px; }
.ms-intro { display: grid; grid-template-columns: 128px 1fr; gap: 10px; margin-top: 8px; align-items: start; }
.nowrap { white-space: nowrap; }
.ms-photo { border: 1px solid #999; padding: 3px; background: #fff; align-self: start; }
.ms-photo img { width: 100%; height: auto; }
.ms-quote { font-style: italic; color: #444; margin-bottom: 6px; font-size: 11.5px; line-height: 1.35; }
.ms-facts { list-style: none; padding: 0; margin: 0; font-size: 11px; color: #333; }
.ms-facts li { margin-bottom: 1px; }
.online { display: inline-flex; align-items: center; gap: 4px; color: #e8590c; font-weight: bold; font-size: 11px; margin-top: 3px; }
.online svg { width: 14px; height: 14px; animation: bob 1.1s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.ms-mood { margin-top: 10px; font-size: 11px; }
.ms-mood b { color: var(--pink); }
.ms-viewmy { margin-top: 4px; font-size: 11px; }
.ms-viewmy b { color: var(--pink); }

.ms-boxhead { background: var(--pink); color: #fff; font: bold 12px Verdana, sans-serif; padding: 4px 8px; }
.ms-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; padding: 8px; background: var(--pink-soft); }
.ms-contact a, .ms-contact button {
  display: flex; align-items: center; gap: 6px; padding: 3px 2px; font-size: 11px; font-weight: bold;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--pink-dark); text-decoration: none;
}
.ms-contact a:hover, .ms-contact button:hover { text-decoration: underline; }
.ms-contact .ico { width: 16px; height: 16px; }

.ms-url { padding: 8px; font-size: 11px; }
.ms-url b { display: block; color: var(--pink); }

.ms-table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 11px; background: var(--pink-soft); }
.ms-table th { width: 92px; text-align: left; vertical-align: top; padding: 4px 6px; background: #ffc7de; color: var(--pink-dark); font-weight: bold; }
.ms-table td { padding: 4px 6px; background: #fff; vertical-align: top; }

.ms-network { border: 1px solid var(--pink-line); background: #fff; padding: 12px 14px; font: bold 17px/1.25 Verdana, sans-serif; color: #222; }

.ms-section-title { font: bold 13px Verdana, sans-serif; color: #e0115f; background: #ffe1ee; padding: 4px 8px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ms-section-title small { font-weight: normal; font-size: 10px; }
.ms-section-body { padding: 8px 10px 10px; }
.ms-blog-list { margin: 0; padding-left: 18px; }
.ms-blog-list li { margin-bottom: 4px; }
.ms-more { font-size: 11px; margin-top: 6px; }
.ms-blurb-h { color: #e0115f; font: bold 12px Verdana, sans-serif; margin: 8px 0 4px; }
.ms-blurb-h:first-child { margin-top: 0; }
.ms-section-body p + p { margin-top: 8px; }

.top8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin-top: 8px; }
.friend { text-align: center; font-size: 11px; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--pink-dark); background: none; border: 0; cursor: pointer; padding: 0; }
.friend:hover .friend-name, .friend:focus-visible .friend-name { text-decoration: underline; }
.friend-pic {
  width: 90px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  border: 1px solid #999; padding: 2px; background: #fff;
}
.friend-pic > * { width: 100%; height: 100%; display: grid; place-items: center; }
.friend-pic img { object-fit: cover; }
.friend-pic .ico { width: 48px; height: 48px; }
.friend-name { font-weight: bold; line-height: 1.2; }
.fp-1 { background: linear-gradient(135deg, #fff1f7, #ffd0e4); }
.fp-2 { background: linear-gradient(135deg, #eef3ff, #cddcff); }
.fp-3 { background: linear-gradient(135deg, #fff6e5, #ffe0a8); }
.fp-4 { background: linear-gradient(135deg, #f0fff4, #c4f0d2); }
.fp-5 { background: linear-gradient(135deg, #f6efff, #dccbff); }
.fp-6 { background: linear-gradient(135deg, #fff0f0, #ffc9c9); }
.fp-7 { background: linear-gradient(135deg, #eafcff, #bdeef7); }


.ms-footer { max-width: 820px; margin: 0 auto; padding: 0 10px 18px; text-align: center; font-size: 10px; color: #6b0f3a; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.badge88 {
  width: 88px; height: 31px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  font: bold 9px/1.1 Verdana, sans-serif; text-transform: uppercase; letter-spacing: .3px; color: #fff;
  border: 1px solid #000; box-shadow: inset 1px 1px #fff8, inset -1px -1px #0006; text-decoration: none;
  overflow: hidden; white-space: nowrap;
}
.badge88 em { font-style: normal; font-size: 11px; letter-spacing: 0; }
.badge88.b1 { background: linear-gradient(#ff7ab8, #c2185b); }
.badge88.b2 { background: linear-gradient(#5e8be0, #003399); }
.badge88.b3 { background: #111; color: #7cff9b; font-family: var(--font-mono); }
.badge88.b4 { background: linear-gradient(#ffd36e, #e08a00); color: #3b1d00; }
.badge88.b5 { background: repeating-linear-gradient(45deg, #ffe600 0 6px, #111 6px 12px); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.badge88.b5 em { font-size: 9px; letter-spacing: 0; }
.counter { display: inline-flex; gap: 1px; padding: 2px; background: #000; vertical-align: middle; margin: 0 4px; }
.counter span { width: 11px; height: 16px; background: linear-gradient(#333, #000 50%, #222 50%, #111); color: #7cff9b; font: bold 12px/16px var(--font-mono); text-align: center; }

.blink { animation: blink 1s steps(1) infinite; }
.new-badge { display: inline-block; font: bold 9px/1 Verdana, sans-serif; color: #fff; background: #e0115f; padding: 2px 3px; margin-left: 4px; vertical-align: 1px; transform: rotate(-4deg); }

@media (max-width: 760px) {
  .ms-page { grid-template-columns: minmax(0, 1fr); }
  .ms-search { margin-left: 0; width: 100%; }
  .ms-search input { flex: 1; }
}
@media (max-width: 420px) {
  .top8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-intro { grid-template-columns: 120px 1fr; }
}

/* --------------------------------------------------------------------------
   Notepad
   -------------------------------------------------------------------------- */
.notepad-text {
  flex: 1; margin: 0; padding: 6px 8px; overflow: auto;
  font: 13px/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-word; color: #000;
}
.notepad-text h3, .notepad-text h4 { font: inherit; display: inline; }
.notepad-text a { color: #000; }
.notepad-text a:hover { color: var(--link); }
.notepad-text .rule { color: #888; }
.notepad-text strong { font-weight: bold; }

/* --------------------------------------------------------------------------
   Media Player (talks)
   -------------------------------------------------------------------------- */
.player { background: #1d0a14; color: #ffd6e8; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; flex: none; box-shadow: var(--sunken); }
.viz { grid-row: span 2; display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 4px; background: #000; border: 1px solid #5a1a38; }
.viz i { width: 6px; background: linear-gradient(0deg, #e0115f, #ff8cc6 70%, #fff); height: 30%; animation: viz 1s ease-in-out infinite alternate; }
.viz i:nth-child(2n) { animation-duration: .7s; }
.viz i:nth-child(3n) { animation-duration: 1.3s; }
.viz i:nth-child(5n) { animation-duration: .55s; }
@keyframes viz { 0% { height: 12%; } 100% { height: 96%; } }
.player.paused .viz i { animation-play-state: paused; }
.now-playing { min-width: 0; }
.now-playing .label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #ff8cc6; }
.now-playing .np-title { font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing .np-meta { font-size: 11px; color: #e9a9c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; gap: 4px; }
.player-controls .btn { min-width: 34px; padding: 2px 8px; }
.player-controls .btn .ico { width: 16px; height: 16px; }
.media-grid { display: grid; grid-template-columns: var(--side, 120px) 7px minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 3px; flex: 1; min-height: 0; }
.media-grid > .player { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; }
.media-grid > .player .viz { grid-row: auto; width: 110px; }

/* --------------------------------------------------------------------------
   Book (reader)
   -------------------------------------------------------------------------- */
.reader { background: #8c8088; padding: 16px; flex: 1; overflow: auto; }
.reader-page { background: #fff; max-width: 620px; margin: 0 auto; padding: 22px 24px; box-shadow: 3px 3px 0 #0005; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.reader-page img { width: 100%; height: auto; border: 1px solid #ccc; }
.reader-page .eyebrow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.reader-page h3 { font: bold 24px/1.15 Georgia, "Times New Roman", serif; margin: 4px 0 4px; }
.reader-page .subtitle { font: italic 14px/1.35 Georgia, serif; color: #444; margin-bottom: 12px; }
.reader-page p { font: 13px/1.6 Georgia, serif; margin-bottom: 14px; }
@media (max-width: 560px) { .reader-page { grid-template-columns: 1fr; } .reader-page img { max-width: 180px; } }

/* --------------------------------------------------------------------------
   Web browser (AI apps)
   -------------------------------------------------------------------------- */
.webpage {
  font: 14px/1.5 "Times New Roman", Times, serif; color: #111; padding: 16px 18px 24px;
  background: #fff8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 22l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' fill='%23ffd0e4'/%3E%3C/svg%3E");
}
.webpage-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.webpage h3 { font: bold 30px/1.1 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; color: #c2185b; text-shadow: 2px 2px 0 #ffd0e4; }
.webpage .tagline { font-style: italic; margin: 6px 0 2px; }
.rainbow-hr { height: 5px; border: 0; margin: 14px 0; background: linear-gradient(90deg, #ff4fa0, #ffb84f, #fff35c, #6be07a, #4fb3ff, #a46bff, #ff4fa0); }
.webpage h4 { font: bold 18px "Times New Roman", serif; color: #003399; margin: 16px 0 8px; text-align: left; }
.app-list { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.app-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; background: #fff; border: 2px outset #f4b6d0; padding: 8px 10px; }
.app-list .ico { width: 32px; height: 32px; margin-top: 2px; }
.app-list a { color: #0000ee; font-weight: bold; font-size: 15px; }
.app-list a:visited { color: #551a8b; }
.app-list p { font-size: 13px; color: #333; }
.app-list .where { font: 11px var(--font-mono); color: #666; }
.best-viewed { margin-top: 18px; font-size: 11px; color: #666; }

/* --------------------------------------------------------------------------
   Mail (contact)
   -------------------------------------------------------------------------- */
.mail-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; padding: 6px 4px; flex: none; }
.mail-fields label { text-align: right; }
.mail-body { flex: 1; min-height: 120px; display: flex; flex-direction: column; }
.mail-body textarea { flex: 1; min-height: 120px; font: 13px/1.5 Arial, var(--font-ui); }
.mail-elsewhere { padding: 8px 4px 2px; flex: none; }
.mail-elsewhere ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mail-elsewhere a { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   System Properties, Display Properties, Run, Find, Help
   -------------------------------------------------------------------------- */
.props { padding: 8px; display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; overflow: auto; }
.props .tab-panel { flex: 1; }
.sys-general { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.sys-logo { display: grid; place-items: center; padding: 10px 0; }
.sys-logo svg { width: 110px; height: 110px; }
.sys-general dl { margin: 0; }
.sys-general dt { margin-top: 10px; }
.sys-general dt:first-child { margin-top: 0; }
.sys-general dd { margin: 2px 0 0 14px; }
.device-tree { background: var(--field); box-shadow: var(--sunken); padding: 6px; max-height: 300px; overflow: auto; }
.device-tree details { margin-left: 2px; }
.device-tree summary { cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 1px 2px; list-style: none; }
.device-tree summary::-webkit-details-marker { display: none; }
.device-tree summary::before { content: "+"; width: 9px; height: 9px; border: 1px solid var(--shadow); font: 9px/7px var(--font-mono); text-align: center; flex: none; background: #fff; }
.device-tree details[open] > summary::before { content: "−"; }
.device-tree ul { list-style: none; margin: 0; padding: 0 0 2px 30px; }
.device-tree li { display: flex; align-items: center; gap: 5px; padding: 1px 0; }
.device-tree .ico { width: 16px; height: 16px; }
.props-buttons { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; flex: none; }

.monitor-preview { width: 184px; margin: 0 auto 12px; }
.monitor-preview .bezel { background: var(--face); box-shadow: var(--raised); padding: 10px 10px 14px; }
.monitor-preview .screen { height: 104px; box-shadow: var(--sunken); background: var(--preview-pattern, var(--pattern)), var(--preview-desktop, var(--desktop)); position: relative; }
.monitor-preview .screen::after { content: ""; position: absolute; left: 30px; top: 18px; width: 90px; height: 54px; background: var(--face); box-shadow: inset 0 9px var(--title-a), var(--raised-soft); }
.monitor-preview .stand { width: 70px; height: 10px; margin: 0 auto; background: var(--face); box-shadow: var(--raised-soft); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listbox { background: var(--field); box-shadow: var(--sunken); padding: 2px; height: 130px; overflow: auto; list-style: none; margin: 4px 0 0; }
.listbox li { display: flex; align-items: center; gap: 6px; padding: 1px 4px; cursor: pointer; }
.listbox li[aria-selected="true"] { background: var(--select); color: var(--select-text); }
.listbox li:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }
.swatch { width: 14px; height: 10px; border: 1px solid #000; flex: none; }
@media (max-width: 520px) { .settings-grid, .sys-general { grid-template-columns: 1fr; } }

.run-body { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 12px 6px; }
.run-open { display: flex; gap: 8px; align-items: center; padding: 6px 12px; }
.run-open input { flex: 1; min-width: 0; }

.find-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px; flex: none; }
.find-form .tab-panel { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.find-form .find-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; }
.find-results { flex: 1; min-height: 80px; }
.find-anim { width: 40px; height: 32px; justify-self: center; }

.help-body h3 { font: bold 16px Arial, var(--font-ui); color: var(--title-a); margin-bottom: 6px; }
.help-body h4 { font: bold 13px Arial, var(--font-ui); margin: 14px 0 4px; }
.help-body p, .help-body li { font-size: 12.5px; line-height: 1.55; }
.help-body ul { padding-left: 18px; margin: 4px 0; }
.help-body kbd { font: 11px var(--font-mono); background: var(--face); box-shadow: var(--raised-soft); padding: 0 4px; }

/* --------------------------------------------------------------------------
   Print: Notepad résumé only
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff !important; }
  #taskbar, #boot, #shutdown, .desktop-icons, .window:not(#resume), .skip-link, .plain-banner { display: none !important; }
  #desktop { position: static !important; background: none !important; }
  #resume { display: block !important; position: static !important; width: auto !important; height: auto !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
  #resume .title-bar, #resume .menubar, #resume .statusbar, #resume .resize-grip { display: none !important; }
  #resume .pane { box-shadow: none !important; overflow: visible !important; }
  .notepad-text { font-size: 10.5pt; overflow: visible; }
}

/* --------------------------------------------------------------------------
   Sortable column headers + "Sort by" menus
   -------------------------------------------------------------------------- */
.listview thead th:has(.sort-btn) { padding: 0; }
.sort-btn {
  all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 2px 6px; cursor: pointer;
}
.sort-btn:active { box-shadow: var(--sunken-soft); }
.sort-btn:focus-visible { outline: 1px dotted #000; outline-offset: -2px; }
.sort-ind { width: 0; height: 0; border: 4px solid transparent; flex: none; visibility: hidden; }
th[aria-sort="ascending"] .sort-ind { visibility: visible; border-top-width: 0; border-bottom-color: currentColor; }
th[aria-sort="descending"] .sort-ind { visibility: visible; border-bottom-width: 0; border-top-color: currentColor; }
.sort-label { padding: 0 4px 0 4px; white-space: nowrap; }
.toolbar select { min-height: 21px; padding: 1px 3px; max-width: 100%; }

/* --------------------------------------------------------------------------
   Resizable panes (drag the bar between the left pane and the list) and
   resizable columns (drag a column header's right edge; double-click resets)
   -------------------------------------------------------------------------- */
.splitter { cursor: col-resize; touch-action: none; position: relative; outline: none; }
.splitter::after { content: ""; position: absolute; inset: 0 2px; }
.splitter:hover::after, .splitter:focus-visible::after, .splitter.dragging::after { background: var(--shadow); opacity: .35; }
.splitter:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }

.col-resizer { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.col-resizer::after { content: ""; position: absolute; right: 1px; top: 3px; bottom: 3px; width: 2px; }
.col-resizer:hover::after, .col-resizer.dragging::after { background: var(--select); }
.listview.is-fixed td { overflow: hidden; text-overflow: ellipsis; }
.listview.is-fixed .name { min-width: 0; }
.listview.is-fixed .name > span, .listview.is-fixed .name > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.ms-links th { white-space: nowrap; }
.ms-links th .ico { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 5px; }

/* --------------------------------------------------------------------------
   LinkedIn QR window (the full-screen version lives at /connect/)
   -------------------------------------------------------------------------- */
.connect { flex: 1; overflow: auto; padding: 12px 16px; text-align: center; }
.connect-label { color: var(--muted); }
.connect-name { margin: 2px 0 10px; font: bold 24px/1.15 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; color: #c2185b; }
.connect-qr { width: min(100%, 250px); margin: 0 auto; padding: 8px; background: #fff; box-shadow: var(--sunken); }
.connect-qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.connect-url { margin: 8px 0 12px; font: 12px var(--font-mono); word-break: break-all; }
.connect-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* --------------------------------------------------------------------------
   Phones: list rows stack (title, then one muted line of details) instead of
   squeezing 3–4 columns, and the folder/year pane becomes a row of buttons
   above the list. Sorting stays available from the "Sort by" menu.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .listview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .listview, .listview tbody, .listview tr { display: block; }
  .listview { width: 100% !important; }
  .listview tbody[hidden], .listview tr[hidden] { display: none; }
  .listview tbody tr:not(.group-row) { padding: 5px 8px 6px; border-bottom: 1px solid #f6e3ec; }
  .listview tbody td { display: inline; padding: 0; }
  .listview tbody td:first-child { display: block; }
  .listview tbody td.muted { white-space: normal; font-size: 11.5px; }
  .listview tbody td:nth-child(2) { padding-left: 21px; }
  .listview tbody td.muted + td.muted::before { content: " · "; }
  .listview .name, .listview .wrap { min-width: 0; }
  .listview .group-row th { display: block; }
  .listview tbody tr:hover td { background: none; }
  .listview tbody tr.selected { background: var(--select); color: var(--select-text); }
  .listview tbody tr.selected td { background: none; }
  .col-resizer { display: none; }

  .split, .media-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 3px; }
  .media-grid { grid-template-rows: auto auto minmax(0, 1fr); }
  .splitter { display: none; }
  .split > nav.pane { height: auto; }
  .tree { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 4px; }
  .tree ul, .tree li { display: contents; }
  .tree button { width: auto; padding: 3px 4px; }
  .media-grid > .player .viz { width: 56px; }
}

/* Plain view has no media player, so there's no "now playing" row to highlight */
html.plain .listview tbody tr.selected, html.plain .listview tbody tr.selected td { background: none; color: inherit; }
html.plain .listview tbody tr.selected a { color: #000; }
