:root {
  --menu-height: 34px;
  --dock-height: 89px;
  --text: #1b1b1c;
  --blue: #0a84ff;
  --separator: rgba(0, 0, 0, 0.12);
  --window-shadow: 0 28px 80px rgba(0,0,0,.28), 0 6px 24px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #efefef; }
button, input { font: inherit; }
button { color: inherit; }
.os { width: 100%; height: 100%; user-select: none; overflow: hidden; }

/* Menu bar */
.menu-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10000;
  height: var(--menu-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 12px;
  background: rgba(248,248,248,.82);
  border-bottom: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset;
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  color: #202022;
  font-size: 14px;
  line-height: 1;
}
.menu-left, .menu-right { display: flex; align-items: center; height: 100%; }
.menu-left { gap: 1px; }
.menu-right { gap: 4px; }
.brand-menu, .menu-trigger, .status-button, .status-item, .control-center {
  height: 27px; border: 0; background: transparent; border-radius: 5px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
}
.brand-menu { width: 34px; padding: 2px 7px; margin-right: 1px; }
.brand-menu img { width: 19px; height: 19px; filter: grayscale(1) contrast(1.35); }
.menu-trigger { cursor: default; }
.menu-trigger:hover, .menu-trigger.open, .brand-menu:hover, .brand-menu.open { background: rgba(0,0,0,.08); }
.active-app-name { font-weight: 600; padding: 0 9px 0 2px; min-width: 70px; }
.status-button, .status-item, .control-center { padding: 0 5px; min-width: 27px; }
.status-button svg, .status-item svg, .control-center svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.weather-status { gap: 4px; padding: 0 6px; }
.weather-status svg { width: 17px; fill: currentColor; stroke-width: 1.2; }
.clock { padding-left: 7px; min-width: 154px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.control-center { border: 0; background: transparent; cursor: default; }
.control-center:hover, .status-button:hover { background: rgba(0,0,0,.08); }

.menu-popover, .context-menu {
  position: fixed; z-index: 11000; display: none; min-width: 236px; padding: 6px;
  background: rgba(246,246,246,.89); border: 1px solid rgba(0,0,0,.15); border-radius: 9px;
  box-shadow: 0 18px 48px rgba(0,0,0,.24), 0 2px 8px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  color: #1d1d1f; font-size: 14px;
}
.menu-popover.open, .context-menu.open { display: block; }
.menu-popover button, .context-menu button {
  width: 100%; height: 28px; border: 0; background: transparent; border-radius: 5px; display: flex; align-items: center; gap: 8px; padding: 0 10px; text-align: left;
}
.menu-popover button:hover:not(:disabled), .context-menu button:hover:not(:disabled) { background: var(--blue); color: #fff; }
.menu-popover button:disabled { color: rgba(0,0,0,.33); }
.menu-popover kbd { margin-left: auto; font-family: inherit; font-size: 13px; color: inherit; background: transparent; }
.menu-separator { height: 1px; background: rgba(0,0,0,.12); margin: 5px 7px; }
.menu-check { width: 12px; display: inline-block; text-align: center; }
#riz-menu { left: 8px; top: 33px; }
#file-menu { left: 112px; top: 33px; }
#edit-menu { left: 162px; top: 33px; }
#view-menu { left: 210px; top: 33px; }
#go-menu { left: 264px; top: 33px; }
#window-menu { left: 312px; top: 33px; }
#help-menu { left: 384px; top: 33px; }

/* Desktop + wallpapers */
.desktop { position: fixed; inset: var(--menu-height) 0 0; overflow: hidden; outline: none; }
.wallpaper { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.os[data-wallpaper="grid"] .wallpaper-grid,
.os[data-wallpaper="chicago"] .wallpaper-chicago,
.os[data-wallpaper="dark"] .wallpaper-dark { opacity: 1; }
.wallpaper-grid {
  background-color: #f6f6f5;
  background-image:
    linear-gradient(rgba(45,45,45,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,45,45,.09) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.wallpaper-grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 52% 42%, rgba(255,255,255,.3), transparent 53%); }
.wallpaper-chicago {
  background: linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.18)), url("assets/photos/chicago-skyline.jpg") center/cover no-repeat;
  filter: saturate(.72) contrast(1.03);
}
.wallpaper-dark { background: radial-gradient(circle at 30% 30%, #313947, #11141a 58%, #08090c); }
.dark-orb { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .5; }
.dark-orb-a { width: 52vw; height: 52vw; background: #4d6c9f; left: -12vw; top: -20vw; }
.dark-orb-b { width: 45vw; height: 45vw; background: #794b63; right: -16vw; bottom: -20vw; }
.watermark {
  position: absolute; left: 24.2%; top: 20.5%; width: 51%; height: 49%;
  color: rgba(28,28,30,.055); font-weight: 850; letter-spacing: -.08em; line-height: .7;
  transform: rotate(-8deg); pointer-events: none; display: flex; flex-direction: column; justify-content: center;
}
.watermark span:first-child { font-size: clamp(160px, 23vw, 390px); }
.watermark span:last-child { font-size: clamp(66px, 9.8vw, 170px); letter-spacing: -.05em; margin-left: 9%; }
.os[data-wallpaper="chicago"] .watermark, .os[data-wallpaper="dark"] .watermark { display: none; }

/* Top widget */
.now-widget {
  position: absolute; z-index: 12; top: var(--widget-y, 5.8%); left: var(--widget-x, 55%); transform: translateX(-50%);
  width: 314px; min-height: 86px; display: grid; grid-template-columns: 1fr 78px;
  overflow: hidden; border-radius: 18px; border: 1px solid rgba(0,0,0,.12);
  background: rgba(249,249,249,.78); box-shadow: 0 18px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(26px); -webkit-backdrop-filter: saturate(180%) blur(26px);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: left, top, transform;
}
.now-widget.dragging { cursor: grabbing; box-shadow: 0 24px 55px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.86); transition: none; }
.now-copy { padding: 13px 15px; cursor: grab; display: flex; flex-direction: column; justify-content: center; }
.now-copy .eyebrow { color: #8b8b90; font-size: 11px; letter-spacing: .09em; font-weight: 650; margin-bottom: 3px; }
.now-copy strong { font-size: 25px; letter-spacing: -.035em; line-height: 1.02; }
.now-sub { margin-top: 3px; color: #7d7d82; font-size: 11px; }
.now-actions { border-left: 1px solid rgba(0,0,0,.1); display: flex; flex-direction: column; }
.now-actions button { flex: 1; cursor: pointer; border: 0; background: transparent; color: #007aff; font-weight: 600; font-size: 13px; }
.now-actions button + button { border-top: 1px solid rgba(0,0,0,.1); }
.now-actions .muted { color: #8b8b90; }
.now-actions button:active { background: rgba(0,0,0,.055); }

/* Desktop icons */
.desktop-icons { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.desktop-item {
  position: absolute; left: var(--x); top: var(--y); width: 108px; min-height: 106px;
  transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center;
  cursor: default; touch-action: none; pointer-events: auto;
}
.icon-frame { position: relative; width: 72px; height: 72px; display: grid; place-items: center; filter: drop-shadow(0 6px 7px rgba(0,0,0,.2)); transition: filter .12s ease; }
.icon-frame img { display: block; width: 72px; height: 72px; object-fit: contain; pointer-events: none; }
.icon-folder { width: 80px; height: 72px; }
.icon-folder img { width: 80px; height: 72px; }
.icon-document { width: 68px; height: 74px; }
.icon-document img { width: 68px; height: 74px; }
.icon-trash { width: 61px; height: 72px; }
.icon-trash img { width: 61px; height: 72px; }
.desktop-label {
  max-width: 116px; margin-top: 6px; padding: 2px 5px 3px; border-radius: 4px;
  color: #fff; font-size: 12.5px; font-weight: 520; line-height: 1.15; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.7); white-space: nowrap;
}
.os[data-wallpaper="grid"] .desktop-label { color: #fff; }
.desktop-item.selected .desktop-label { background: #0a84ff; text-shadow: none; }
.desktop-item.selected .icon-frame { filter: brightness(.83) drop-shadow(0 7px 8px rgba(0,0,0,.22)); }
.desktop-item.dragging { z-index: 999; }
.notification-badge {
  position: absolute; right: -7px; top: -7px; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 650;
  box-shadow: 0 2px 5px rgba(0,0,0,.23); border: 1.5px solid rgba(255,255,255,.94);
}
.calendar-icon {
  width: 68px; height: 68px; border-radius: 15px; overflow: hidden; background: linear-gradient(#fff, #f4f4f4);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 1px 0 #fff, 0 7px 9px rgba(0,0,0,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.calendar-weekday { color: #ff3b30; font-size: 10px; font-weight: 700; line-height: 1; text-transform: uppercase; margin-top: 7px; }
.calendar-day { font-size: 37px; font-weight: 300; letter-spacing: -.05em; line-height: .98; margin-top: 3px; }

/* Photo stack */
.photo-stack { position: absolute; z-index: 11; inset: 0; pointer-events: none; }
.photo-file {
  position: absolute; left: var(--photo-x); top: var(--photo-y); width: var(--photo-width, 132px);
  transform: translate(-50%, -50%) rotate(var(--photo-rotation, 0deg));
  padding: 7px 7px 24px; border: 0; background: #fff;
  box-shadow: 0 12px 25px rgba(0,0,0,.23), 0 0 0 1px rgba(0,0,0,.15);
  pointer-events: auto; cursor: grab; touch-action: none; transform-origin: 50% 50%;
  transition: box-shadow .12s ease, filter .12s ease; will-change: left, top, transform; user-select:none; -webkit-user-select:none;
}
.photo-file img { width: 100%; aspect-ratio: .89; object-fit: cover; display: block; pointer-events:none; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.photo-file.monochrome img { filter: grayscale(1) contrast(1.08); }
.photo-file span {
  position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%);
  max-width: 155px; padding: 2px 5px 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; font-size: 11px; font-weight: 520; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.65);
}
.photo-file.selected span { background: #0a84ff; text-shadow: none; }
.photo-file.selected { filter: brightness(.88); }
.photo-file.dragging { cursor: grabbing; box-shadow: 0 20px 38px rgba(0,0,0,.31), 0 0 0 1px rgba(0,0,0,.16); transition: none; }

/* Dock */
.dock-wrap { position: absolute; z-index: 9000; left: 50%; bottom: 13px; transform: translateX(-50%); height: var(--dock-height); display: flex; align-items: flex-end; pointer-events: none; }
.dock {
  height: 86px; display: flex; align-items: flex-end; gap: 5px; padding: 9px 12px 8px;
  border-radius: 23px; border: 1px solid rgba(0,0,0,.14);
  background: linear-gradient(rgba(255,255,255,.74), rgba(239,239,239,.58));
  box-shadow: 0 18px 48px rgba(0,0,0,.22), 0 3px 10px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  pointer-events: auto;
}
.dock-item {
  position: relative; width: 64px; height: 67px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center;
  transform-origin: 50% 100%; transition: transform .12s ease, margin .12s ease; cursor: default;
}
.dock-item img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); pointer-events: none; }
.dock-item:hover { transform: translateY(-13px) scale(1.28); margin: 0 8px; z-index: 3; }
.dock-item::before {
  content: attr(data-tooltip); position: absolute; bottom: 82px; left: 50%; transform: translateX(-50%) translateY(5px);
  padding: 5px 9px; border-radius: 6px; background: rgba(44,44,46,.86); color: #fff; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.dock-item:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.running-dot { position: absolute; bottom: -2px; width: 4px; height: 4px; background: #4d4d50; border-radius: 50%; opacity: 0; }
.dock-item.running .running-dot, .dock-item:first-child .running-dot { opacity: .9; }
.dock-separator { width: 1px; height: 52px; margin: 0 5px 2px; background: rgba(0,0,0,.21); box-shadow: 1px 0 0 rgba(255,255,255,.45); }
.dock-calendar .calendar-icon { width: 58px; height: 58px; border-radius: 13px; }
.dock-calendar .calendar-weekday { margin-top: 5px; font-size: 8px; }
.dock-calendar .calendar-day { font-size: 31px; }
.dock-badge { right: -1px; top: -1px; }
.trash-dock img { width: 55px; height: 64px; }
.dock-item.bounce { animation: dock-bounce .62s cubic-bezier(.25,.8,.25,1); }
@keyframes dock-bounce { 0%,100%{transform:translateY(0)} 28%{transform:translateY(-29px)} 52%{transform:translateY(-7px)} 72%{transform:translateY(-17px)} }

/* macOS windows */
.windows { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
.mac-window {
  position: absolute; min-width: 540px; min-height: 360px; overflow: hidden; border-radius: 13px;
  background: rgba(247,247,247,.97); box-shadow: var(--window-shadow); pointer-events: auto;
  transform-origin: center; animation: window-open .18s cubic-bezier(.2,.75,.3,1); resize: both;
}
.mac-window.inactive { box-shadow: 0 18px 55px rgba(0,0,0,.19), 0 3px 14px rgba(0,0,0,.11), 0 0 0 1px rgba(0,0,0,.1); }
.mac-window.inactive .traffic { filter: grayscale(1); opacity: .52; }
.mac-window.minimizing { animation: window-minimize .24s ease-in forwards; }
@keyframes window-open { from { opacity:0; transform:scale(.955) translateY(7px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes window-minimize { to { opacity:0; transform:translateY(58vh) scale(.18); } }
.window-titlebar {
  height: 52px; display: grid; grid-template-columns: 122px 1fr 122px; align-items: center;
  background: linear-gradient(rgba(247,247,247,.96), rgba(229,229,229,.93)); border-bottom: 1px solid rgba(0,0,0,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86); cursor: default;
}
.traffic-lights { display: flex; gap: 8px; padding-left: 15px; align-items: center; }
.traffic { width: 13px; height: 13px; border-radius: 50%; border: .5px solid rgba(0,0,0,.15); padding: 0; position: relative; }
.traffic.close { background: #ff5f57; }
.traffic.minimize { background: #febc2e; }
.traffic.zoom { background: #28c840; }
.traffic-lights:hover .traffic::after { position:absolute; inset:-2px; display:grid; place-items:center; color:rgba(0,0,0,.55); font-size:10px; font-weight:700; line-height:1; }
.traffic-lights:hover .close::after { content:"×"; }
.traffic-lights:hover .minimize::after { content:"−"; }
.traffic-lights:hover .zoom::after { content:"+"; }
.window-title { text-align: center; font-size: 13px; font-weight: 600; color: #3a3a3c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { height: calc(100% - 52px); overflow: hidden; background: #fff; }
.resize-grip { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 48%, rgba(0,0,0,.16) 49%, rgba(0,0,0,.16) 54%, transparent 55%, transparent 66%, rgba(0,0,0,.13) 67%, rgba(0,0,0,.13) 72%, transparent 73%); }
.mac-window.maximized { border-radius: 0; resize: none; }

/* Finder */
.finder-shell { height: 100%; display: grid; grid-template-columns: 188px 1fr; }
.finder-sidebar { background: rgba(226,229,232,.8); border-right: 1px solid rgba(0,0,0,.12); padding: 14px 9px; overflow: auto; }
.sidebar-section { margin-bottom: 18px; }
.sidebar-title { padding: 0 9px 6px; color: #818187; font-size: 11px; font-weight: 650; }
.sidebar-row { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; }
.sidebar-row.active { background: rgba(0,0,0,.1); }
.sidebar-glyph { width: 17px; color: #0a84ff; font-weight: 700; text-align: center; }
.finder-main { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.finder-toolbar { height: 45px; flex: 0 0 45px; border-bottom: 1px solid rgba(0,0,0,.1); display: flex; align-items: center; padding: 0 13px; gap: 8px; background: #f9f9f9; }
.toolbar-button { width: 29px; height: 27px; border: 0; border-radius: 6px; background: transparent; display:grid; place-items:center; color:#666; }
.toolbar-button:hover { background: rgba(0,0,0,.07); }
.finder-title-inline { font-weight: 650; font-size: 13px; margin-left: 4px; }
.toolbar-spacer { flex: 1; }
.search-field { width: 170px; height: 27px; border-radius: 7px; border: 1px solid rgba(0,0,0,.14); background: #fff; padding: 0 9px 0 27px; font-size: 12px; outline: none; background-image: radial-gradient(circle, transparent 45%, #8b8b8e 47%, #8b8b8e 57%, transparent 59%), linear-gradient(45deg, transparent 45%, #8b8b8e 46%, #8b8b8e 55%, transparent 56%); background-size: 12px 12px, 6px 6px; background-position: 8px 7px, 18px 17px; background-repeat:no-repeat; }
.finder-content { flex:1; overflow:auto; padding: 25px 28px; }
.finder-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(108px,1fr)); gap: 28px 24px; align-content:start; }
.file-item { min-width:0; border:0; background:transparent; display:flex; flex-direction:column; align-items:center; gap:8px; padding:4px; border-radius:8px; }
.file-item:hover { background: rgba(10,132,255,.09); }
.file-item img { width:70px; height:70px; object-fit:contain; filter:drop-shadow(0 5px 5px rgba(0,0,0,.18)); }
.finder-folder { position:relative; width:78px; height:67px; display:grid; place-items:center; }
.finder-folder img { width:78px; height:67px; filter:drop-shadow(0 5px 5px rgba(0,0,0,.17)); }
.finder-folder i { position:absolute; right:3px; bottom:4px; width:12px; height:12px; border-radius:50%; background:var(--tag); border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.25); }
.file-name { width:100%; font-size:12px; text-align:center; line-height:1.2; overflow-wrap:anywhere; }
.finder-statusbar { height:24px; flex:0 0 24px; border-top:1px solid rgba(0,0,0,.1); background:#fafafa; color:#777; display:flex; align-items:center; justify-content:center; font-size:11px; }

/* About/System Settings */
.settings-shell { height:100%; display:grid; grid-template-columns:220px 1fr; background:#ececec; }
.settings-sidebar { padding:18px 12px; background:rgba(235,235,235,.92); border-right:1px solid rgba(0,0,0,.12); }
.settings-search { height:30px; width:100%; border:1px solid rgba(0,0,0,.13); border-radius:8px; padding:0 10px; background:rgba(255,255,255,.82); outline:none; }
.settings-profile-mini { display:flex; align-items:center; gap:10px; padding:15px 7px 12px; }
.settings-profile-mini img { width:42px; height:42px; border-radius:50%; box-shadow:0 2px 5px rgba(0,0,0,.2); }
.settings-profile-mini strong { display:block; font-size:13px; }
.settings-profile-mini small { color:#747477; font-size:11px; }
.settings-list { margin-top:5px; }
.settings-row { height:34px; display:flex; align-items:center; gap:9px; padding:0 8px; border-radius:7px; font-size:12.5px; }
.settings-row.active { background:#0a84ff; color:#fff; }
.settings-row-icon { width:22px; height:22px; border-radius:6px; display:grid; place-items:center; background:#727277; color:#fff; font-size:12px; }
.settings-row.active .settings-row-icon { background:rgba(255,255,255,.25); }
.settings-main { padding:30px 36px; overflow:auto; background:#f5f5f5; }
.settings-main h1 { margin:0 0 21px; font-size:25px; letter-spacing:-.035em; }
.profile-card { border-radius:12px; border:1px solid rgba(0,0,0,.12); background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.06); overflow:hidden; }
.profile-hero { display:grid; grid-template-columns:82px 1fr; gap:17px; align-items:center; padding:24px; }
.profile-hero img { width:78px; height:78px; border-radius:18px; box-shadow:0 7px 18px rgba(0,0,0,.23); }
.profile-hero h2 { margin:0; font-size:21px; letter-spacing:-.03em; }
.profile-hero p { margin:6px 0 0; color:#69696e; font-size:13px; line-height:1.45; max-width:540px; }
.profile-detail-row { min-height:48px; display:grid; grid-template-columns:145px 1fr auto; align-items:center; gap:12px; padding:0 18px; border-top:1px solid rgba(0,0,0,.09); font-size:13px; }
.profile-detail-row .label { color:#77777c; }
.profile-detail-row a { color:#007aff; text-decoration:none; }
.profile-links { display:flex; flex-wrap:wrap; gap:9px; padding:18px; border-top:1px solid rgba(0,0,0,.09); }
.mac-button { height:30px; border-radius:7px; border:1px solid rgba(0,0,0,.16); background:linear-gradient(#fff,#f0f0f0); padding:0 13px; box-shadow:0 1px 1px rgba(0,0,0,.06); font-size:12.5px; }
.mac-button.primary { background:linear-gradient(#168cff,#0675e6); border-color:#0064d6; color:#fff; }

/* Photos */
.photos-shell { height:100%; display:grid; grid-template-columns:185px 1fr; }
.photos-sidebar { background:#f2f2f2; border-right:1px solid rgba(0,0,0,.11); padding:14px 10px; }
.photos-main { display:flex; min-width:0; flex-direction:column; background:#fff; }
.photos-toolbar { height:46px; border-bottom:1px solid rgba(0,0,0,.1); display:flex; align-items:center; padding:0 15px; gap:8px; }
.photos-toolbar h2 { margin:0; font-size:15px; }
.photos-grid { flex:1; overflow:auto; padding:18px; display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); grid-auto-rows:160px; gap:4px; }
.photos-grid button { border:0; padding:0; overflow:hidden; background:#ddd; }
.photos-grid img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .18s; }
.photos-grid button:hover img { transform:scale(1.025); }
.photos-grid .wide { grid-column:span 2; }
.photos-grid .tall { grid-row:span 2; }

/* Messages */
.messages-shell { height:100%; display:grid; grid-template-columns:260px 1fr; }
.conversation-list { background:#f3f3f3; border-right:1px solid rgba(0,0,0,.12); padding:10px 0; }
.message-search { margin:0 10px 8px; width:calc(100% - 20px); height:30px; border:1px solid rgba(0,0,0,.12); border-radius:8px; padding:0 10px; }
.conversation { display:grid; grid-template-columns:42px 1fr auto; gap:10px; align-items:center; min-height:62px; padding:8px 12px; }
.conversation.active { background:#0a84ff; color:#fff; }
.avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(145deg,#d5d5d8,#8c8c91); display:grid; place-items:center; color:#fff; font-weight:700; }
.conversation strong { display:block; font-size:13px; }
.conversation small { display:block; margin-top:3px; color:#777; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation.active small { color:rgba(255,255,255,.78); }
.conversation time { font-size:10px; color:#8a8a8f; }
.conversation.active time { color:rgba(255,255,255,.78); }
.chat-pane { display:flex; flex-direction:column; min-width:0; background:#fff; }
.chat-header { height:51px; flex:0 0 51px; display:flex; align-items:center; justify-content:center; border-bottom:1px solid rgba(0,0,0,.1); font-size:12px; font-weight:600; }
.chat-body { flex:1; overflow:auto; padding:22px 24px; display:flex; flex-direction:column; justify-content:flex-end; gap:9px; }
.bubble { max-width:72%; padding:8px 11px; border-radius:17px; font-size:13px; line-height:1.34; }
.bubble.in { align-self:flex-start; background:#e9e9eb; }
.bubble.out { align-self:flex-end; background:#0b86ff; color:#fff; }
.chat-actions { display:flex; gap:8px; align-self:center; margin:8px 0 12px; }
.chat-input { height:45px; flex:0 0 45px; display:flex; align-items:center; padding:7px 12px; border-top:1px solid rgba(0,0,0,.1); }
.chat-input input { flex:1; height:30px; border:1px solid rgba(0,0,0,.16); border-radius:16px; padding:0 13px; outline:none; }

/* Instagram chooser */
.instagram-shell { height:100%; background:linear-gradient(#fafafa,#f1f1f3); padding:24px; overflow:auto; }
.instagram-heading { text-align:center; margin:2px 0 20px; }
.instagram-heading img { width:58px; height:58px; object-fit:contain; }
.instagram-heading h2 { margin:8px 0 3px; font-size:20px; }
.instagram-heading p { margin:0; color:#737378; font-size:12px; }
.account-list { border:1px solid rgba(0,0,0,.12); border-radius:12px; overflow:hidden; background:#fff; }
.account-row { min-height:68px; display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; padding:10px 14px; text-decoration:none; color:inherit; border-bottom:1px solid rgba(0,0,0,.09); }
.account-row:last-child { border-bottom:0; }
.account-row:hover { background:#f4f4f6; }
.account-avatar { width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,#f9ce34,#ee2a7b 54%,#6228d7); color:#fff; display:grid; place-items:center; font-weight:750; }
.account-row strong { display:block; font-size:13px; }
.account-row small { display:block; margin-top:3px; color:#76767b; font-size:11.5px; }
.account-row .chevron { color:#aaa; font-size:22px; }

/* Terminal */
.terminal-shell { height:100%; background:rgba(16,17,18,.97); color:#f3f3f3; font-family:"SFMono-Regular", Menlo, Monaco, Consolas, monospace; font-size:12.5px; display:flex; flex-direction:column; }
.terminal-output { flex:1; overflow:auto; padding:16px 17px 8px; white-space:pre-wrap; line-height:1.55; }
.terminal-input-row { display:flex; align-items:center; padding:0 17px 15px; }
.terminal-prompt { color:#67d98e; white-space:nowrap; margin-right:7px; }
.terminal-input { flex:1; border:0; outline:0; background:transparent; color:#fff; font-family:inherit; font-size:inherit; }
.terminal-link { color:#65a9ff; }

/* Notes */
.notes-shell { height:100%; display:grid; grid-template-columns:210px 1fr; background:#fff; }
.notes-list { background:#f1f1f1; border-right:1px solid rgba(0,0,0,.11); padding:8px; }
.note-row { border-radius:7px; padding:10px; min-height:62px; }
.note-row.active { background:#ffd95a; }
.note-row strong { display:block; font-size:12.5px; }
.note-row small { display:block; margin-top:5px; font-size:11px; color:#777; }
.note-editor { display:flex; flex-direction:column; min-width:0; }
.note-meta { height:38px; display:flex; align-items:center; justify-content:center; color:#89898e; font-size:11px; border-bottom:1px solid rgba(0,0,0,.08); }
.note-editor textarea { flex:1; resize:none; border:0; outline:0; padding:24px 28px; font:15px/1.55 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; color:#252527; }

/* Spotify */
.spotify-shell { height:100%; color:#fff; background:#121212; display:flex; flex-direction:column; overflow:auto; }
.spotify-embed-shell { background:linear-gradient(165deg,#1d3426 0,#121212 190px); }
.spotify-window-header { min-height:118px; padding:20px 24px 17px; display:grid; grid-template-columns:72px 1fr auto; gap:16px; align-items:center; }
.spotify-window-header img { width:72px; height:72px; object-fit:contain; filter:drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.spotify-window-header .type { display:block; font-size:9px; font-weight:750; letter-spacing:.1em; color:#c7c7c7; }
.spotify-window-header h2 { margin:4px 0 2px; font-size:28px; line-height:1; letter-spacing:-.045em; }
.spotify-window-header p { margin:0; color:#b7b7b7; font-size:11.5px; }
.spotify-window-header .spotify-link { color:#fff; background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.18); white-space:nowrap; }
.spotify-embed-wrap { flex:1; min-height:0; padding:0 18px 18px; }
.spotify-embed-wrap iframe { display:block; width:100%; min-height:352px; border:0; border-radius:12px; background:#121212; }

/* Calendar */
.calendar-shell { height:100%; background:#fff; display:grid; grid-template-columns:180px 1fr; }
.calendar-sidebar { background:#f2f2f2; border-right:1px solid rgba(0,0,0,.12); padding:16px 13px; }
.mini-calendar { font-size:11px; }
.mini-calendar strong { display:block; margin-bottom:9px; }
.mini-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; }
.mini-grid span { height:19px; display:grid; place-items:center; }
.mini-grid .today { color:#fff; background:#ff3b30; border-radius:50%; }
.calendar-main { padding:24px 28px; }
.calendar-main h2 { margin:0 0 18px; font-size:24px; }
.calendar-event { border-left:4px solid #0a84ff; background:#eaf4ff; padding:13px 15px; border-radius:7px; max-width:500px; }
.calendar-event strong { display:block; }
.calendar-event p { margin:5px 0 0; color:#67676b; font-size:12px; line-height:1.4; }

/* Trash */
.empty-state { height:100%; display:grid; place-items:center; background:#fff; color:#79797e; text-align:center; padding:30px; }
.empty-state img { width:92px; height:92px; object-fit:contain; opacity:.65; }
.empty-state h2 { margin:14px 0 5px; color:#333; font-size:18px; }
.empty-state p { margin:0; font-size:12px; max-width:340px; line-height:1.45; }

/* Control center */
.control-center-panel {
  position: fixed; z-index: 10500; right: 9px; top: 39px; width: 318px; padding: 12px; border-radius: 17px;
  border:1px solid rgba(0,0,0,.13); background:rgba(238,238,240,.82); box-shadow:0 22px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter:saturate(180%) blur(32px); -webkit-backdrop-filter:saturate(180%) blur(32px);
  opacity:0; transform:translateY(-5px) scale(.98); pointer-events:none; transition:.15s ease;
}
.control-center-panel.open { opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.cc-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cc-tile { height:60px; border:0; border-radius:11px; background:rgba(255,255,255,.65); display:flex; align-items:center; gap:10px; text-align:left; padding:10px; }
.cc-tile.active .cc-icon { background:#0a84ff; color:#fff; }
.cc-icon { width:32px; height:32px; border-radius:50%; background:#dedee1; display:grid; place-items:center; }
.cc-tile strong, .cc-tile small { display:block; font-size:11px; }
.cc-tile small { color:#777; margin-top:2px; }
.cc-slider { display:block; margin-top:9px; border-radius:11px; background:rgba(255,255,255,.65); padding:10px 12px; font-size:11px; }
.cc-slider span { display:block; margin-bottom:7px; font-weight:600; }
.cc-slider input { width:100%; accent-color:#fff; }

.toast { position:absolute; z-index:12000; left:50%; bottom:120px; transform:translate(-50%,12px); padding:9px 14px; border-radius:9px; background:rgba(35,35,37,.88); color:#fff; font-size:12px; opacity:0; pointer-events:none; transition:.2s; box-shadow:0 8px 26px rgba(0,0,0,.25); }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* Dark wallpaper contrast */
.os[data-wallpaper="dark"] .now-widget,
.os[data-wallpaper="chicago"] .now-widget { background:rgba(245,245,245,.72); }
.os[data-wallpaper="dark"] .menu-bar,
.os[data-wallpaper="chicago"] .menu-bar { background:rgba(239,239,239,.75); }

/* Responsive fallback, desktop concept remains primary */
@media (max-width: 1050px) {
  .photo-stack { display:none; }
  .desktop-item { transform:translate(-50%,-50%) scale(.9); }
  .now-widget { max-width:calc(100vw - 24px); }
  .clock { min-width:auto; }
  .weather-status { display:none; }
}
@media (max-width: 760px) {
  .menu-left .menu-trigger, .active-app-name { display:none; }
  .menu-right .wifi, .menu-right .control-center { display:none; }
  .desktop-icons { display:grid; grid-template-columns:repeat(4,1fr); align-content:start; gap:20px 4px; padding:76px 14px 130px; overflow:auto; }
  .desktop-item { position:relative; left:auto!important; top:auto!important; transform:none; width:auto; min-height:90px; }
  .photo-stack, .now-widget { display:none; }
  .dock { max-width:calc(100vw - 16px); overflow-x:auto; gap:0; padding-left:8px; padding-right:8px; }
  .dock-item { flex:0 0 54px; }
  .dock-item:hover { transform:none; margin:0; }
  .mac-window { min-width:0; min-height:0; left:5px!important; top:5px!important; width:calc(100% - 10px)!important; height:calc(100% - 108px)!important; }
  .finder-shell, .settings-shell, .photos-shell, .messages-shell, .notes-shell, .calendar-shell { grid-template-columns:1fr; }
  .finder-sidebar, .settings-sidebar, .photos-sidebar, .conversation-list, .notes-list, .calendar-sidebar { display:none; }
}

body.desktop-dragging, body.desktop-dragging * { cursor: grabbing !important; }
#os img { -webkit-user-drag: none; }


/* V6: fully suppress browser-native drag ghosts on desktop objects. */
.photo-file, .photo-file *, .now-widget, .now-widget *, .desktop-item, .desktop-item * {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}
.photo-file.pointer-active, .now-widget.pointer-active {
  transition: none !important;
}
.photo-file { appearance: none; -webkit-appearance: none; }

/* V7: Spotlight, Quick Look, Notification Center, and a functional Control Center */
.clock-button {
  height: 27px; min-width: 154px; padding: 0 4px 0 7px; border: 0; border-radius: 5px;
  background: transparent; display: inline-flex; align-items: center; justify-content: flex-end; color: inherit;
}
.clock-button:hover, .clock-button:focus-visible { background: rgba(0,0,0,.08); }
.clock-button .clock { padding: 0; min-width: 0; }
.context-menu kbd { margin-left: auto; font-family: inherit; font-size: 12px; color: inherit; background: transparent; }

.widget-progress {
  position: absolute; left: 15px; bottom: 7px; display: flex; align-items: center; gap: 4px;
}
.widget-progress i { width: 4px; height: 4px; border-radius: 50%; background: rgba(60,60,67,.24); transition: width .18s ease, background .18s ease; }
.widget-progress i.active { width: 12px; border-radius: 5px; background: rgba(0,122,255,.82); }
.now-widget.changing .now-copy { animation: widget-swap .24s ease; }
@keyframes widget-swap { 0%{opacity:.1;transform:translateY(4px)} 100%{opacity:1;transform:translateY(0)} }

.minimized-dock { display: contents; }
.minimized-window {
  position: relative; width: 69px; height: 62px; flex: 0 0 69px; border: 0; background: transparent; padding: 0;
  display: grid; place-items: center; transform-origin: bottom center; transition: transform .15s ease, margin .15s ease;
}
.minimized-window:hover { transform: translateY(-10px) scale(1.18); margin: 0 6px; }
.minimized-preview {
  width: 55px; height: 42px; overflow: hidden; border-radius: 5px; display: grid; place-items: center;
  background: linear-gradient(#fafafa,#dadadd); border: 1px solid rgba(0,0,0,.22);
  box-shadow: 0 5px 11px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.85);
}
.minimized-preview img { width: 28px; height: 28px; object-fit: contain; }
.minimized-window small {
  position: absolute; bottom: -27px; left: 50%; transform: translateX(-50%); pointer-events: none; opacity: 0;
  white-space: nowrap; padding: 4px 7px; border-radius: 5px; background: rgba(36,36,38,.86); color: #fff; font-size: 10px;
}
.minimized-window:hover small { opacity: 1; }

.cc-wallpapers { margin-top: 9px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.cc-wallpapers button { border: 0; border-radius: 10px; background: rgba(255,255,255,.64); padding: 7px 6px 6px; font-size: 10px; color: #56565b; }
.cc-wallpaper-preview { height: 39px; display: block; margin-bottom: 5px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; }
.cc-wallpaper-preview.grid { background-color:#f6f6f5; background-image:linear-gradient(rgba(45,45,45,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(45,45,45,.12) 1px,transparent 1px); background-size:10px 10px; }
.cc-wallpaper-preview.chicago { background:url("assets/photos/chicago-skyline.jpg") center/cover; }
.cc-wallpaper-preview.dark { background:radial-gradient(circle at 30% 30%,#40516e,#11141a 64%,#08090c); }
.cc-slider input { accent-color: #0a84ff; }

.notification-center {
  position: fixed; z-index: 10450; right: 10px; top: 40px; width: 350px; max-height: calc(100vh - 55px); overflow: auto;
  display: flex; flex-direction: column; gap: 11px; opacity: 0; transform: translateX(18px) scale(.985); pointer-events: none;
  transition: opacity .16s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.notification-center.open { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.notification-center > section {
  border-radius: 19px; border: 1px solid rgba(0,0,0,.13); box-shadow: 0 18px 48px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.74);
  backdrop-filter: saturate(180%) blur(32px); -webkit-backdrop-filter: saturate(180%) blur(32px);
}
.nc-calendar-card { padding: 16px; background: rgba(248,248,249,.84); }
.nc-date { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2px; }
.nc-date span { font-size: 15px; font-weight: 650; }
.nc-date strong { color: #ff3b30; font-size: 42px; font-weight: 300; line-height: .9; letter-spacing: -.055em; }
.nc-month { margin-bottom: 12px; color: #737378; font-size: 11px; font-weight: 600; }
.nc-mini-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; text-align: center; font-size: 10px; }
.nc-mini-grid b { color: #99999e; font-weight: 600; padding-bottom: 4px; }
.nc-mini-grid span { height: 25px; display: grid; place-items: center; border-radius: 50%; }
.nc-mini-grid span.today { background: #ff3b30; color: #fff; font-weight: 650; }
.nc-weather-card { padding: 18px; color: #fff; background: linear-gradient(150deg, rgba(36,93,155,.91), rgba(82,133,183,.82)); }
.nc-weather-top { display: flex; align-items: flex-start; justify-content: space-between; }
.nc-weather-top small { display: block; font-size: 12px; font-weight: 650; }
.nc-weather-top strong { display: block; margin-top: 2px; font-size: 52px; line-height: .9; font-weight: 250; letter-spacing: -.07em; }
.nc-weather-icon { font-size: 48px; line-height: 1; }
.nc-weather-summary { margin-top: 11px; font-size: 11px; color: rgba(255,255,255,.84); }
.nc-weather-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 13px; }
.nc-weather-stats span { padding: 8px; border-radius: 9px; background: rgba(255,255,255,.15); font-size: 9px; }
.nc-weather-stats strong { display: block; margin-top: 3px; font-size: 13px; }
.nc-now-card { position: relative; padding: 16px 86px 16px 17px; background: rgba(248,248,249,.84); }
.nc-now-card .eyebrow { color: #8b8b90; font-size: 9px; letter-spacing: .1em; font-weight: 700; }
.nc-now-card > strong { display: block; margin-top: 3px; font-size: 21px; letter-spacing: -.035em; }
.nc-now-card p { margin: 3px 0 0; color: #75757a; font-size: 11px; }
.nc-now-card button { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 8px; background: #0a84ff; color: #fff; padding: 7px 11px; font-size: 11px; font-weight: 650; }

.spotlight-backdrop {
  position: fixed; inset: var(--menu-height) 0 0; z-index: 12100; display: grid; place-items: start center;
  padding-top: clamp(85px, 12vh, 155px); background: rgba(0,0,0,0); opacity: 0; pointer-events: none; transition: opacity .13s ease;
}
.spotlight-backdrop.open { opacity: 1; pointer-events: auto; }
.spotlight-panel {
  width: min(680px, calc(100vw - 38px)); max-height: min(620px, calc(100vh - 180px)); overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.52); background: rgba(239,239,242,.84);
  box-shadow: 0 34px 100px rgba(0,0,0,.34), 0 8px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(38px); -webkit-backdrop-filter: saturate(180%) blur(38px);
  transform: translateY(-9px) scale(.985); transition: transform .17s cubic-bezier(.2,.85,.25,1);
}
.spotlight-backdrop.open .spotlight-panel { transform: translateY(0) scale(1); }
.spotlight-search-row { height: 72px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(0,0,0,.11); }
.spotlight-search-row svg { width: 25px; height: 25px; fill: none; stroke: #77777c; stroke-width: 1.8; stroke-linecap: round; }
.spotlight-search-row input { width: 100%; border: 0; outline: 0; background: transparent; color: #1d1d1f; font-size: 27px; font-weight: 300; letter-spacing: -.02em; }
.spotlight-search-row input::placeholder { color: #8b8b90; }
.spotlight-search-row kbd { border: 1px solid rgba(0,0,0,.13); border-radius: 5px; padding: 3px 6px; background: rgba(255,255,255,.48); color: #8b8b90; font-family: inherit; font-size: 10px; }
.spotlight-results { max-height: 448px; overflow: auto; padding: 8px; }
.spotlight-result { width: 100%; min-height: 59px; border: 0; border-radius: 10px; background: transparent; padding: 7px 10px; display: grid; grid-template-columns: 43px 1fr 24px; gap: 11px; align-items: center; text-align: left; }
.spotlight-result.active { background: #0a84ff; color: #fff; }
.spotlight-result img { width: 41px; height: 41px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.16)); }
.spotlight-result strong, .spotlight-result small { display: block; }
.spotlight-result strong { font-size: 13px; font-weight: 650; }
.spotlight-result small { margin-top: 3px; color: #76767b; font-size: 11px; }
.spotlight-result.active small { color: rgba(255,255,255,.76); }
.spotlight-result em { font-style: normal; color: #9a9a9e; }
.spotlight-result.active em { color: #fff; }
.spotlight-empty { padding: 38px; color: #77777c; text-align: center; font-size: 13px; }
.spotlight-footer { height: 30px; display: flex; justify-content: flex-end; gap: 15px; align-items: center; padding: 0 13px; border-top: 1px solid rgba(0,0,0,.09); color: #85858a; font-size: 9px; }

.quicklook-backdrop {
  position: fixed; inset: var(--menu-height) 0 0; z-index: 12000; display: grid; place-items: center;
  padding: 28px; background: rgba(10,10,12,.52); opacity: 0; pointer-events: none; transition: opacity .16s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.quicklook-backdrop.open { opacity: 1; pointer-events: auto; }
.quicklook-panel {
  width: min(1040px, calc(100vw - 50px)); height: min(760px, calc(100vh - 95px)); overflow: hidden;
  border-radius: 14px; background: rgba(31,31,33,.96); color: #fff; box-shadow: 0 38px 110px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14);
  transform: scale(.97); transition: transform .18s cubic-bezier(.2,.85,.25,1);
}
.quicklook-backdrop.open .quicklook-panel { transform: scale(1); }
.quicklook-toolbar { height: 48px; display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; padding: 0 13px; background: linear-gradient(rgba(67,67,69,.98),rgba(46,46,48,.98)); border-bottom: 1px solid rgba(0,0,0,.7); }
.quicklook-toolbar > span { text-align: center; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quicklook-close { width: 13px; height: 13px; padding: 0; border: .5px solid rgba(0,0,0,.24); border-radius: 50%; background: #ff5f57; }
.quicklook-open-photos { justify-self: end; border: 0; border-radius: 6px; background: rgba(255,255,255,.13); color: #fff; padding: 6px 9px; font-size: 10px; }
.quicklook-stage { position: relative; height: calc(100% - 80px); display: grid; place-items: center; padding: 22px 74px; background: #18181a; }
.quicklook-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 14px 42px rgba(0,0,0,.42); }
.quicklook-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 32px; line-height: 1; opacity: .68; }
.quicklook-nav:hover { opacity: 1; background: rgba(255,255,255,.2); }
.quicklook-nav.previous { left: 16px; }
.quicklook-nav.next { right: 16px; }
.quicklook-meta { height: 32px; display: grid; place-items: center; background: #252527; color: #a9a9ae; font-size: 10px; }

.display-dimmer { position: absolute; inset: 0; z-index: 9900; background: #000; opacity: 0; pointer-events: none; transition: opacity .12s linear; }
.focus-mode .notification-badge { display: none; }
.focus-mode .photo-stack, .focus-mode .now-widget { opacity: .22; filter: grayscale(.7); transition: opacity .3s ease, filter .3s ease; }
.focus-mode .photo-stack:hover, .focus-mode .now-widget:hover { opacity: 1; filter: none; }

.reel-shell { height: 100%; overflow: auto; background: #111113; color: #fff; user-select: text; }
.reel-header { min-height: 160px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 32px 25px; border-bottom: 1px solid rgba(255,255,255,.12); background: radial-gradient(circle at 78% 0,rgba(127,120,197,.35),transparent 42%); }
.reel-header span { color: #9e9ea4; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.reel-header h1 { margin: 6px 0 4px; font-size: 40px; line-height: 1; letter-spacing: -.055em; }
.reel-header p { margin: 0; color: #a9a9ae; font-size: 12px; }
.reel-header .mac-button { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.reel-grid { padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.reel-card { position: relative; min-height: 330px; overflow: hidden; border-radius: 13px; color: #fff; text-decoration: none; background: #242426; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.reel-card::after { content:""; position: absolute; inset: 0; background: linear-gradient(transparent 18%,rgba(0,0,0,.2) 48%,rgba(0,0,0,.92)); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .4s ease, filter .4s ease; }
.reel-card:hover img { transform: scale(1.035); filter: saturate(1); }
.reel-card > div { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 17px; }
.reel-card small { color: rgba(255,255,255,.65); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.reel-card strong { display: block; margin-top: 5px; font-size: 21px; letter-spacing: -.035em; }
.reel-card p { margin: 7px 0 13px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.38; }
.reel-card em { font-style: normal; font-size: 10px; font-weight: 650; }
.reel-number { position: absolute; z-index: 2; right: 13px; top: 12px; color: rgba(255,255,255,.72); font: 10px/1 "SFMono-Regular",Menlo,monospace; }

@media (max-width: 760px) {
  .clock-button { min-width: auto; }
  .notification-center { right: 6px; width: calc(100vw - 12px); }
  .spotlight-backdrop { padding-top: 55px; }
  .quicklook-backdrop { padding: 7px; }
  .quicklook-panel { width: 100%; height: calc(100vh - 50px); }
  .reel-grid { grid-template-columns: 1fr; }
}

.finder-video-file { position: relative; width: 72px; height: 64px; overflow: hidden; border-radius: 7px; background: #222; box-shadow: 0 5px 7px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.16); }
.finder-video-file img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.75) contrast(1.05); }
.finder-video-file i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; padding-left: 2px; background: rgba(255,255,255,.88); color: #111; font-style: normal; font-size: 10px; box-shadow: 0 2px 7px rgba(0,0,0,.3); }

/* V8 — Rizvisions identity, true desktop selection, resizable windows, themes, customizable Dock */
.os {
  --accent: #0a84ff;
  --shell-text: #202022;
  --menu-glass: rgba(248,248,248,.82);
  --popover-glass: rgba(246,246,246,.9);
  --dock-glass-top: rgba(255,255,255,.76);
  --dock-glass-bottom: rgba(239,239,239,.58);
  --window-surface: rgba(247,247,247,.985);
  --window-chrome-top: rgba(247,247,247,.97);
  --window-chrome-bottom: rgba(229,229,229,.94);
  --window-content: #fff;
  --window-text: #1d1d1f;
  --window-muted: #737378;
  --hairline: rgba(0,0,0,.14);
  --grid-line: rgba(45,45,45,.09);
  --wall-base: #f6f6f5;
  --blue: var(--accent);
}
.os[data-wallpaper="dark"] {
  --accent: #0a84ff;
  --shell-text: #f5f5f7;
  --menu-glass: rgba(29,29,31,.77);
  --popover-glass: rgba(40,40,43,.9);
  --dock-glass-top: rgba(64,64,68,.68);
  --dock-glass-bottom: rgba(32,32,35,.64);
  --window-surface: rgba(38,38,41,.985);
  --window-chrome-top: rgba(55,55,58,.98);
  --window-chrome-bottom: rgba(39,39,42,.96);
  --window-content: #1e1e20;
  --window-text: #f5f5f7;
  --window-muted: #a9a9af;
  --hairline: rgba(255,255,255,.13);
  --grid-line: rgba(255,255,255,.065);
  --wall-base: #0f1012;
}
.os[data-wallpaper="maroon"] {
  --accent: #e56a83;
  --shell-text: #fff8fa;
  --menu-glass: rgba(61,16,28,.82);
  --popover-glass: rgba(73,20,35,.92);
  --dock-glass-top: rgba(105,38,57,.66);
  --dock-glass-bottom: rgba(57,16,29,.68);
  --window-surface: rgba(54,21,31,.985);
  --window-chrome-top: rgba(79,31,45,.98);
  --window-chrome-bottom: rgba(54,20,31,.96);
  --window-content: #32151f;
  --window-text: #fff7f9;
  --window-muted: #d3afb9;
  --hairline: rgba(255,235,241,.16);
  --grid-line: rgba(255,235,241,.072);
  --wall-base: #3d101c;
}
.os[data-wallpaper="forest"] {
  --accent: #6bc99a;
  --shell-text: #f4fff8;
  --menu-glass: rgba(13,47,35,.82);
  --popover-glass: rgba(17,60,45,.92);
  --dock-glass-top: rgba(37,94,69,.67);
  --dock-glass-bottom: rgba(12,50,36,.7);
  --window-surface: rgba(18,54,41,.985);
  --window-chrome-top: rgba(29,76,57,.98);
  --window-chrome-bottom: rgba(17,53,40,.96);
  --window-content: #10382a;
  --window-text: #f3fff7;
  --window-muted: #acd2be;
  --hairline: rgba(232,255,243,.16);
  --grid-line: rgba(233,255,243,.073);
  --wall-base: #0e3023;
}

.menu-bar { color: var(--shell-text); background: var(--menu-glass); border-color: var(--hairline); }
.menu-trigger:hover, .menu-trigger.open, .brand-menu:hover, .brand-menu.open,
.control-center:hover, .status-button:hover, .clock-button:hover, .clock-button:focus-visible { background: color-mix(in srgb, var(--shell-text) 10%, transparent); }
.brand-menu img { filter: none; }
.menu-popover, .context-menu { background: var(--popover-glass); color: var(--shell-text); border-color: var(--hairline); }
.menu-popover button:disabled { color: color-mix(in srgb, var(--shell-text) 34%, transparent); }
.menu-separator { background: var(--hairline); }

.wallpaper-grid, .wallpaper-dark, .wallpaper-maroon, .wallpaper-forest {
  background-color: var(--wall-base);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 52% 42%, rgba(255,255,255,.055), transparent 56%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
}
.wallpaper-dark { --wall-base:#0f1012; --grid-line:rgba(255,255,255,.065); }
.wallpaper-maroon { --wall-base:#3d101c; --grid-line:rgba(255,235,241,.072); }
.wallpaper-forest { --wall-base:#0e3023; --grid-line:rgba(233,255,243,.073); }
.os[data-wallpaper="grid"] .wallpaper-grid,
.os[data-wallpaper="dark"] .wallpaper-dark,
.os[data-wallpaper="maroon"] .wallpaper-maroon,
.os[data-wallpaper="forest"] .wallpaper-forest { opacity: 1; }
.watermark-wordmark {
  position:absolute; left:50%; top:48%; width:min(68vw,1080px); height:auto; transform:translate(-50%,-50%) rotate(-6deg);
  opacity:.052; pointer-events:none; user-select:none; -webkit-user-drag:none;
}
.watermark-light { display:none; }
.os[data-wallpaper="dark"] .watermark-dark,
.os[data-wallpaper="maroon"] .watermark-dark,
.os[data-wallpaper="forest"] .watermark-dark { display:none; }
.os[data-wallpaper="dark"] .watermark-light,
.os[data-wallpaper="maroon"] .watermark-light,
.os[data-wallpaper="forest"] .watermark-light { display:block; opacity:.067; }

.now-widget { background: color-mix(in srgb, var(--window-surface) 88%, transparent); color: var(--window-text); border-color: var(--hairline); }
.now-sub, .now-actions .muted { color: var(--window-muted); }
.now-actions { border-color: var(--hairline); }
.now-actions button + button { border-color: var(--hairline); }
.now-actions button:first-child { color: var(--accent); }

.selection-rectangle {
  position:absolute; z-index:9; display:none; pointer-events:none;
  border:1px solid color-mix(in srgb, var(--accent) 85%, white 15%);
  background:color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
.selection-rectangle.active { display:block; }
.desktop-item.selected .desktop-label, .photo-file.selected span { background:var(--accent); }
.photo-file.selected { filter:brightness(.88); box-shadow:0 14px 30px rgba(0,0,0,.28),0 0 0 3px color-mix(in srgb,var(--accent) 80%,white 20%); }

.dock { background:linear-gradient(var(--dock-glass-top),var(--dock-glass-bottom)); border-color:var(--hairline); }
.dock.no-magnify .dock-item:hover { transform:none; margin:0; }
.dock-item.dock-dragging { opacity:.72; transform:translateY(-15px) scale(1.12); z-index:8; }
.running-dot { background:color-mix(in srgb,var(--shell-text) 78%,transparent); }
.dock-item.running .running-dot { opacity:.95; }
.temporary-window .minimized-preview { width:54px; height:43px; }
.trash-dock img { width:58px; height:64px; }

.mac-window { resize:none; min-width:410px; min-height:280px; background:var(--window-surface); color:var(--window-text); }
.window-titlebar { background:linear-gradient(var(--window-chrome-top),var(--window-chrome-bottom)); border-color:var(--hairline); }
.window-title { color:var(--window-text); }
.window-body { background:var(--window-content); color:var(--window-text); }
.window-resize-handle { position:absolute; z-index:20; display:block; touch-action:none; }
.resize-n { left:12px; right:12px; top:-4px; height:9px; cursor:ns-resize; }
.resize-s { left:12px; right:12px; bottom:-4px; height:9px; cursor:ns-resize; }
.resize-e { right:-4px; top:12px; bottom:12px; width:9px; cursor:ew-resize; }
.resize-w { left:-4px; top:12px; bottom:12px; width:9px; cursor:ew-resize; }
.resize-ne,.resize-se,.resize-sw,.resize-nw { width:17px; height:17px; }
.resize-ne { right:-5px; top:-5px; cursor:nesw-resize; }
.resize-se { right:-5px; bottom:-5px; cursor:nwse-resize; }
.resize-sw { left:-5px; bottom:-5px; cursor:nesw-resize; }
.resize-nw { left:-5px; top:-5px; cursor:nwse-resize; }
.mac-window.maximized .window-resize-handle { display:none; }
body.window-resizing, body.window-resizing * { user-select:none!important; }

/* Dark/tinted appearances extend through application chrome and content. */
.os:not([data-wallpaper="grid"]) .finder-shell,
.os:not([data-wallpaper="grid"]) .settings-shell,
.os:not([data-wallpaper="grid"]) .photos-shell,
.os:not([data-wallpaper="grid"]) .messages-shell,
.os:not([data-wallpaper="grid"]) .notes-shell,
.os:not([data-wallpaper="grid"]) .calendar-shell,
.os:not([data-wallpaper="grid"]) .empty-state,
.os:not([data-wallpaper="grid"]) .reel-shell,
.os:not([data-wallpaper="grid"]) .instagram-shell { background:var(--window-content); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .finder-sidebar,
.os:not([data-wallpaper="grid"]) .settings-sidebar,
.os:not([data-wallpaper="grid"]) .photos-sidebar,
.os:not([data-wallpaper="grid"]) .conversation-list,
.os:not([data-wallpaper="grid"]) .notes-list,
.os:not([data-wallpaper="grid"]) .calendar-sidebar { background:color-mix(in srgb,var(--window-content) 82%,white 5%); color:var(--window-text); border-color:var(--hairline); }
.os:not([data-wallpaper="grid"]) .finder-main,
.os:not([data-wallpaper="grid"]) .settings-main,
.os:not([data-wallpaper="grid"]) .photos-main,
.os:not([data-wallpaper="grid"]) .chat-pane,
.os:not([data-wallpaper="grid"]) .note-editor,
.os:not([data-wallpaper="grid"]) .calendar-main { background:var(--window-content); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .finder-toolbar,
.os:not([data-wallpaper="grid"]) .photos-toolbar,
.os:not([data-wallpaper="grid"]) .chat-header,
.os:not([data-wallpaper="grid"]) .chat-input { background:color-mix(in srgb,var(--window-content) 88%,white 4%); border-color:var(--hairline); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .sidebar-row.active,
.os:not([data-wallpaper="grid"]) .note-row.active,
.os:not([data-wallpaper="grid"]) .conversation.active { background:color-mix(in srgb,var(--accent) 28%,transparent); }
.os:not([data-wallpaper="grid"]) .profile-card,
.os:not([data-wallpaper="grid"]) .settings-row,
.os:not([data-wallpaper="grid"]) .reel-card,
.os:not([data-wallpaper="grid"]) .account-row { background:color-mix(in srgb,var(--window-content) 90%,white 6%); color:var(--window-text); border-color:var(--hairline); }
.os:not([data-wallpaper="grid"]) .note-editor textarea { background:transparent; color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .empty-state h2 { color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .finder-statusbar,
.os:not([data-wallpaper="grid"]) .sidebar-title,
.os:not([data-wallpaper="grid"]) .note-meta { color:var(--window-muted); }

.control-center-panel,
.notification-center > section { background:var(--popover-glass); color:var(--shell-text); border-color:var(--hairline); }
.cc-tile,.cc-slider,.cc-wallpapers button { background:color-mix(in srgb,var(--window-surface) 75%,transparent); color:var(--window-text); }
.cc-tile small,.cc-wallpapers button { color:var(--window-muted); }
.cc-tile.active .cc-icon { background:var(--accent); }
.cc-slider input { accent-color:var(--accent); }
.cc-wallpapers { grid-template-columns:repeat(4,1fr); }
.cc-wallpaper-preview.maroon { background-color:#3d101c; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:10px 10px; }
.cc-wallpaper-preview.forest { background-color:#0e3023; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:10px 10px; }
.cc-wallpaper-preview.dark { background-color:#0f1012; background-image:linear-gradient(rgba(255,255,255,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.11) 1px,transparent 1px); background-size:10px 10px; }

/* Dock customization sheet */
.dock-customizer-backdrop {
  position:fixed; inset:0; z-index:11950; display:grid; place-items:center; background:rgba(0,0,0,.18);
  opacity:0; pointer-events:none; transition:opacity .16s ease; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.dock-customizer-backdrop.open { opacity:1; pointer-events:auto; }
.dock-customizer {
  width:min(520px,calc(100vw - 28px)); max-height:min(680px,calc(100vh - 64px)); overflow:hidden; display:flex; flex-direction:column;
  border-radius:18px; border:1px solid var(--hairline); background:var(--window-surface); color:var(--window-text);
  box-shadow:0 30px 90px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.2);
}
.dock-customizer header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 14px; border-bottom:1px solid var(--hairline); }
.dock-customizer header strong,.dock-customizer header span { display:block; }
.dock-customizer header strong { font-size:17px; }
.dock-customizer header span { margin-top:3px; color:var(--window-muted); font-size:12px; }
.dock-customizer header button,.dock-customizer footer button { border:0; border-radius:7px; padding:6px 12px; color:#fff; background:var(--accent); font-weight:600; }
.dock-customizer-list { padding:8px 12px; overflow:auto; }
.dock-customizer-row { min-height:52px; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:10px; padding:5px 8px; border-radius:10px; }
.dock-customizer-row:hover { background:color-mix(in srgb,var(--accent) 12%,transparent); }
.dock-customizer-row img { width:38px; height:38px; object-fit:contain; }
.dock-customizer-row label { display:flex; align-items:center; gap:8px; font-size:13px; }
.dock-customizer-row input { accent-color:var(--accent); }
.dock-customizer-row > div { display:flex; gap:5px; }
.dock-customizer-row > div button { width:29px; height:27px; border:1px solid var(--hairline); border-radius:6px; background:color-mix(in srgb,var(--window-surface) 88%,white 6%); color:var(--window-text); }
.dock-customizer-row > div button:disabled { opacity:.3; }
.dock-customizer footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px 16px; border-top:1px solid var(--hairline); }
.dock-customizer footer span { color:var(--window-muted); font-size:11px; }

@media (max-width:760px) {
  .watermark-wordmark { width:92vw; }
  .cc-wallpapers { grid-template-columns:repeat(2,1fr); }
  .dock-customizer { max-height:calc(100vh - 30px); }
}
.dock-customizer-row .customizer-calendar {
  width:38px; height:38px; border-radius:9px; font-size:inherit;
  box-shadow:0 2px 5px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.09);
}
.dock-customizer-row .customizer-calendar .calendar-weekday { top:5px; font-size:7px; }
.dock-customizer-row .customizer-calendar .calendar-day { top:13px; font-size:20px; }

/* ========================================================================== */
/* V9 — native-feeling polish, Liquid Glass popovers, media-first Photos app  */
/* ========================================================================== */

.os {
  --glass-highlight: rgba(255,255,255,.72);
  --glass-shadow: rgba(0,0,0,.22);
  --surface-1: rgba(248,248,250,.94);
  --surface-2: rgba(236,236,239,.88);
  --surface-3: rgba(255,255,255,.74);
  --sidebar-surface: rgba(239,239,242,.86);
  --field-surface: rgba(255,255,255,.72);
  --hover-surface: rgba(0,0,0,.055);
  --selected-surface: color-mix(in srgb, var(--accent) 82%, white 18%);
  --inverse-text: #fff;
  --photo-bg: #0d0d0f;
  color-scheme: light;
}
.os[data-wallpaper="dark"] {
  --surface-1: rgba(40,40,43,.94);
  --surface-2: rgba(30,30,33,.91);
  --surface-3: rgba(61,61,65,.73);
  --sidebar-surface: rgba(31,31,34,.82);
  --field-surface: rgba(255,255,255,.09);
  --hover-surface: rgba(255,255,255,.09);
  --glass-highlight: rgba(255,255,255,.16);
  --glass-shadow: rgba(0,0,0,.52);
  --photo-bg: #09090a;
  color-scheme: dark;
}
.os[data-wallpaper="maroon"] {
  --surface-1: rgba(63,25,37,.95);
  --surface-2: rgba(47,17,27,.92);
  --surface-3: rgba(111,52,70,.68);
  --sidebar-surface: rgba(48,18,28,.86);
  --field-surface: rgba(255,244,248,.10);
  --hover-surface: rgba(255,244,248,.10);
  --glass-highlight: rgba(255,239,245,.17);
  --glass-shadow: rgba(20,1,7,.55);
  --photo-bg: #16090d;
  color-scheme: dark;
}
.os[data-wallpaper="forest"] {
  --surface-1: rgba(24,63,48,.95);
  --surface-2: rgba(14,47,34,.92);
  --surface-3: rgba(48,102,77,.66);
  --sidebar-surface: rgba(14,47,34,.86);
  --field-surface: rgba(240,255,247,.10);
  --hover-surface: rgba(240,255,247,.10);
  --glass-highlight: rgba(232,255,243,.17);
  --glass-shadow: rgba(0,21,13,.55);
  --photo-bg: #07130e;
  color-scheme: dark;
}

/* Every wallpaper gets the Rizvisions signature. */
.watermark-wordmark {
  display: block !important;
  width: min(70vw, 1120px);
  max-height: 48vh;
  object-fit: contain;
  opacity: .058;
  filter: none;
}
.os[data-wallpaper="dark"] .watermark-wordmark { opacity: .07; }
.os[data-wallpaper="maroon"] .watermark-wordmark,
.os[data-wallpaper="forest"] .watermark-wordmark { opacity: .065; }

/* Menu bar — intentionally quiet, thin and theme-legible. */
.menu-bar {
  height: 34px;
  padding-inline: 10px 12px;
  background: color-mix(in srgb, var(--menu-glass) 88%, transparent);
  color: var(--shell-text);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 76%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-highlight) 52%, transparent), 0 1px 10px rgba(0,0,0,.04);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  font-size: 13px;
}
.brand-menu { width: 34px; padding: 0 5px; }
.brand-menu img { width: 24px; height: 24px; transform: scale(1.08); }
.active-app-name { font-weight: 640; min-width: auto; padding-right: 12px; }
.menu-trigger { height: 27px; padding-inline: 9px; }
.menu-right { gap: 3px; }
.status-button, .control-center, .clock-button {
  height: 27px; min-width: 27px; border: 0; border-radius: 7px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: inherit;
}
.clock-button { padding: 0 7px; }
.clock { min-width: 142px; padding: 0; font-size: 13px; }
.status-button svg, .control-center svg { width: 15px; height: 15px; }

.menu-popover, .context-menu {
  color: var(--window-text);
  background: color-mix(in srgb, var(--surface-1) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--hairline) 88%, transparent);
  box-shadow: 0 20px 56px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(34px) saturate(185%);
  -webkit-backdrop-filter: blur(34px) saturate(185%);
}
.menu-popover button:hover:not(:disabled), .context-menu button:hover:not(:disabled) {
  background: var(--accent); color: var(--inverse-text);
}

/* Brand icon optical sizing. */
.icon-rizvisions img { transform: scale(1.13); }
.dock-item[data-dock-key="about"] img { transform: scale(1.10); }
.about-eye, .settings-profile-mini img, .about-rail > img { transform: scale(1.08); }

/* Windows */
.mac-window {
  border-radius: 15px;
  background: var(--surface-1);
  color: var(--window-text);
  border: 1px solid color-mix(in srgb, var(--hairline) 88%, transparent);
  box-shadow: 0 30px 82px rgba(0,0,0,.31), 0 8px 26px rgba(0,0,0,.18), inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}
.mac-window.inactive { filter: saturate(.88); opacity: .965; }
.window-titlebar {
  height: 50px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 96%, white 4%), color-mix(in srgb, var(--surface-2) 94%, transparent));
  border-bottom: 1px solid var(--hairline);
  color: var(--window-text);
}
.window-body { height: calc(100% - 50px); background: var(--window-content); color: var(--window-text); }
.window-title { font-size: 13px; font-weight: 640; }
.traffic-lights { gap: 8px; }
.traffic { width: 13px; height: 13px; border: 1px solid rgba(0,0,0,.13); box-shadow: inset 0 0 0 .4px rgba(255,255,255,.45); }

/* Inputs and generic system controls need to survive every appearance. */
.os input, .os textarea { color: var(--window-text); caret-color: var(--accent); }
.os input::placeholder, .os textarea::placeholder { color: var(--window-muted); }
.search-field, .settings-search, .message-search {
  background: var(--field-surface) !important; color: var(--window-text) !important;
  border-color: var(--hairline) !important;
}
.toolbar-button, .mac-button, .photos-toolbar-actions button, .photos-segmented button {
  color: var(--window-text); background: var(--field-surface); border-color: var(--hairline);
}
.mac-button.primary { color: #fff; background: var(--accent); border-color: color-mix(in srgb, var(--accent) 88%, black 12%); }

/* Finder and ordinary system apps */
.finder-shell, .messages-shell, .notes-shell, .calendar-shell, .settings-shell,
.instagram-shell, .about-app, .photos-app, .safari-shell, .parker-app, .reel-shell,
.project-preview, .empty-state {
  color: var(--window-text);
  background: var(--window-content);
}
.finder-sidebar, .conversation-list, .notes-list, .calendar-sidebar, .settings-sidebar, .photos-nav, .about-rail {
  color: var(--window-text);
  background: var(--sidebar-surface);
  border-color: var(--hairline);
}
.finder-toolbar, .finder-statusbar, .chat-header, .chat-input, .note-meta, .photos-topbar, .safari-toolbar {
  color: var(--window-text); border-color: var(--hairline); background: color-mix(in srgb, var(--surface-1) 84%, transparent);
}
.sidebar-title, .finder-statusbar, .note-row small, .conversation small, .conversation time,
.photos-source-note, .photos-topbar small, .settings-card p, .settings-info-row small,
.about-content header p, .about-stats small, .about-stats span, .about-now small,
.account-row small, .safari-reading p, .parker-app p { color: var(--window-muted); }
.sidebar-row:hover, .settings-row:hover, .photos-nav button:hover, .conversation:hover,
.note-row:hover, .account-row:hover { background: var(--hover-surface); }
.sidebar-row.active, .settings-row.active, .photos-nav button.active, .conversation.active {
  background: var(--selected-surface); color: #fff;
}

/* About is editorial and personal, not System Settings. */
.about-app { height: 100%; display: grid; grid-template-columns: 218px minmax(0,1fr); overflow: hidden; }
.about-rail { padding: 26px 18px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: flex-start; }
.about-rail > img { width: 76px; height: 76px; object-fit: contain; margin: 0 0 13px; }
.about-rail > span { font-size: 11px; font-weight: 760; letter-spacing: .15em; color: var(--window-muted); }
.about-rail nav { width: 100%; margin-top: 28px; display: grid; gap: 5px; }
.about-rail nav button { height: 35px; border: 0; border-radius: 8px; text-align: left; padding: 0 11px; background: transparent; }
.about-rail nav button:hover { background: var(--hover-surface); }
.about-rail nav button.active { color: #fff; background: var(--accent); }
.about-content { overflow: auto; padding: 42px 46px 48px; }
.about-content header { max-width: 720px; }
.about-content header .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 760; }
.about-content h1 { margin: 11px 0 14px; font-size: clamp(35px,4vw,55px); line-height: .98; letter-spacing: -.055em; font-weight: 720; }
.about-content header p { max-width: 650px; margin: 0; font-size: 16px; line-height: 1.5; }
.about-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.about-stats > div, .about-now > div, .about-quote {
  min-height: 132px; padding: 18px; border-radius: 17px; border: 1px solid var(--hairline); background: var(--surface-3);
}
.about-stats small, .about-stats strong, .about-stats span { display: block; }
.about-stats strong { margin: 8px 0 5px; font-size: 27px; letter-spacing: -.04em; }
.about-stats button { margin-top: 12px; border: 0; padding: 0; background: transparent; color: var(--accent); font-weight: 650; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.about-links button { border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 13px; background: var(--field-surface); }
.about-now { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.about-now p { margin: 9px 0 0; line-height: 1.5; }
.about-quote { display: flex; align-items: flex-end; font-size: 21px; line-height: 1.15; font-weight: 680; letter-spacing: -.03em; }

/* System Settings remains utility-first. */
.settings-shell { height: 100%; display: grid; grid-template-columns: 240px minmax(0,1fr); overflow: hidden; }
.settings-sidebar { padding: 14px 11px; border-right: 1px solid var(--hairline); overflow: auto; }
.settings-search { width: 100%; height: 30px; border: 1px solid var(--hairline); border-radius: 8px; padding: 0 10px; outline: 0; }
.settings-profile-mini { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 17px 8px 14px; }
.settings-profile-mini img { width: 46px; height: 46px; object-fit: contain; }
.settings-profile-mini strong, .settings-profile-mini small { display: block; }
.settings-profile-mini small { margin-top: 2px; color: var(--window-muted); }
.settings-list { display: grid; gap: 3px; }
.settings-row { min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border-radius: 8px; }
.settings-row-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--field-surface); }
.settings-main { overflow: auto; padding: 32px 38px 48px; }
.settings-main > h1 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.035em; }
.settings-card { padding: 18px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-3); margin-bottom: 14px; }
.settings-card h2 { margin: 0 0 4px; font-size: 15px; }
.settings-card p { margin: 0 0 14px; font-size: 12px; }
.settings-theme-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.theme-choice { border: 0; background: transparent; padding: 0; text-align: center; }
.theme-choice span { display: block; aspect-ratio: 1.34; border-radius: 10px; border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--glass-highlight); background-size: 16px 16px; }
.theme-choice.grid span { background-color:#f4f4f4; background-image:linear-gradient(#ddd 1px,transparent 1px),linear-gradient(90deg,#ddd 1px,transparent 1px); }
.theme-choice.dark span { background-color:#111216; background-image:linear-gradient(#292a2f 1px,transparent 1px),linear-gradient(90deg,#292a2f 1px,transparent 1px); }
.theme-choice.maroon span { background-color:#3d101c; background-image:linear-gradient(#633140 1px,transparent 1px),linear-gradient(90deg,#633140 1px,transparent 1px); }
.theme-choice.forest span { background-color:#0e3023; background-image:linear-gradient(#2f5648 1px,transparent 1px),linear-gradient(90deg,#2f5648 1px,transparent 1px); }
.theme-choice strong { display: block; margin-top: 7px; font-size: 11px; }
.settings-info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.settings-info-row img { width: 48px; height: 48px; object-fit: contain; }
.settings-info-row strong, .settings-info-row small { display: block; }
.settings-info-row small { margin-top: 4px; line-height: 1.4; }

/* Photos is the visual center of the site. */
.photos-app { height: 100%; display: grid; grid-template-columns: 218px minmax(0,1fr); overflow: hidden; }
.photos-nav { padding: 15px 11px 20px; border-right: 1px solid var(--hairline); overflow: auto; }
.photos-nav-title { display: flex; align-items: center; gap: 9px; padding: 6px 8px 18px; }
.photos-nav-title img { width: 38px; height: 38px; object-fit: contain; }
.photos-nav-title strong { font-size: 17px; }
.photos-nav .sidebar-title { margin: 12px 9px 5px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.photos-nav button { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; padding: 0 10px; text-align: left; }
.photos-nav button.active { background: var(--accent); color: #fff; }
.photos-source-note { margin: 22px 9px 0; padding: 12px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 10.5px; line-height: 1.45; background: var(--field-surface); }
.photos-source-note code { color: inherit; }
.photos-library { min-width: 0; overflow: auto; background: var(--window-content); }
.photos-topbar { position: sticky; top: 0; z-index: 4; min-height: 77px; display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 15px 22px 13px; backdrop-filter: blur(25px) saturate(170%); -webkit-backdrop-filter: blur(25px) saturate(170%); }
.photos-topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.photos-topbar small { display: block; margin-top: 2px; }
.photos-segmented { display: flex; padding: 2px; border-radius: 8px; background: var(--field-surface); border: 1px solid var(--hairline); }
.photos-segmented button { height: 27px; border: 0; border-radius: 6px; background: transparent; padding: 0 10px; font-size: 11px; }
.photos-segmented button.active { color: var(--window-text); background: color-mix(in srgb, var(--surface-1) 95%, white 5%); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.photos-toolbar-actions { display: flex; gap: 6px; }
.photos-toolbar-actions button { width: 31px; height: 29px; border: 1px solid var(--hairline); border-radius: 8px; }
.photos-feature { position: relative; height: clamp(255px,38vh,405px); margin: 0 22px 24px; border-radius: 20px; overflow: hidden; background: #111; box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.photos-feature::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.76)); }
.photos-feature img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.76) contrast(1.03); }
.photos-feature > div { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.photos-feature span { font-size: 10px; letter-spacing: .14em; font-weight: 760; opacity: .75; }
.photos-feature strong { display: block; margin: 6px 0 4px; font-size: clamp(26px,3vw,43px); letter-spacing: -.05em; }
.photos-feature p { margin: 0; max-width: 570px; font-size: 13px; color: rgba(255,255,255,.78); }
.photos-date-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 22px 11px; }
.photos-date-heading strong, .photos-date-heading small { display: block; }
.photos-date-heading strong { font-size: 18px; }
.photos-date-heading small { margin-top: 3px; color: var(--window-muted); }
.photos-date-heading button { border: 0; background: transparent; color: var(--accent); }
.photos-masonry { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: 132px; gap: 5px; padding: 0 22px 28px; grid-auto-flow: dense; }
.photo-tile { position: relative; overflow: hidden; border: 0; border-radius: 3px; padding: 0; background: #171719; min-width: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease, filter .22s ease; }
.photo-tile:hover img { transform: scale(1.025); filter: brightness(.88); }
.photo-tile span { position: absolute; left: 8px; right: 8px; bottom: 7px; color: #fff; font-size: 10px; text-align: left; opacity: 0; transform: translateY(3px); text-shadow: 0 1px 4px #000; transition: .16s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tile:hover span { opacity: 1; transform: none; }
.photo-tile .video-duration { position:absolute; top:7px; right:7px; padding:4px 6px; border-radius:7px; background:rgba(0,0,0,.58); color:#fff; font-size:9px; font-style:normal; }
.photo-tile.tile-0, .photo-tile.tile-5 { grid-column: span 2; grid-row: span 2; }
.photo-tile.tile-2, .photo-tile.tile-6 { grid-row: span 2; }
.photo-tile.tile-3 { grid-column: span 2; }

/* Embed is the Spotify app — no extra fake interface. */
.spotify-only { width: 100%; height: 100%; min-height: 0; background: #121212; overflow: hidden; }
.spotify-only iframe { display: block; width: 100%; height: 100%; min-height: 100%; border: 0; border-radius: 0; background: #121212; }
.mac-window[data-app-window="spotify"] .window-body { padding: 0; background: #121212; }

/* Safari and Parker */
.safari-shell { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.safari-toolbar { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-bottom: 1px solid var(--hairline); }
.safari-toolbar > button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: var(--field-surface); }
.safari-address { flex: 1; min-width: 0; height: 31px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--field-surface); font-size: 12px; }
.safari-page { flex: 1; overflow: auto; }
.safari-start { max-width: 920px; margin: 0 auto; padding: 52px 44px; }
.safari-start > img { width: 74px; height: 74px; object-fit: contain; }
.safari-start h1 { margin: 8px 0 28px; font-size: 34px; letter-spacing: -.045em; }
.safari-favorites { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.safari-favorites button { border: 0; background: transparent; display: grid; justify-items: center; gap: 8px; }
.safari-favorites button span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 15px; background: var(--surface-3); box-shadow: 0 9px 18px rgba(0,0,0,.11); }
.safari-favorites img { width: 58px; height: 58px; object-fit: contain; }
.safari-favorites strong { font-size: 11px; }
.safari-reading { margin-top: 44px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 22px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface-3); }
.safari-reading span { font-size: 10px; letter-spacing: .12em; color: var(--window-muted); }
.safari-reading strong { display:block; margin:6px 0; font-size:22px; letter-spacing:-.035em; }
.safari-reading button { white-space: nowrap; border: 0; border-radius: 9px; padding: 9px 12px; background: var(--accent); color:#fff; }
.parker-app { height: 100%; overflow: auto; padding: 38px; background: radial-gradient(circle at 75% 0,color-mix(in srgb,#8178c8 24%,transparent),transparent 42%),var(--window-content); }
.parker-hero { display:grid; grid-template-columns:100px 1fr; gap:24px; align-items:start; max-width:850px; }
.parker-hero img { width:100px; height:100px; object-fit:contain; }
.parker-hero span { font-size:10px; letter-spacing:.15em; color:#8178c8; font-weight:760; }
.parker-hero h1 { margin:7px 0 7px; font-size:48px; letter-spacing:-.055em; line-height:1; }
.parker-hero p { margin:0 0 16px; font-size:15px; line-height:1.5; max-width:650px; }
.parker-command { margin:30px 0 16px; min-height:100px; display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; padding:19px; border:1px solid var(--hairline); border-radius:18px; background:var(--surface-3); }
.parker-command > span { font-size:11px; color:#8178c8; font-weight:700; }
.parker-command strong { font-size:18px; line-height:1.35; letter-spacing:-.02em; }
.parker-command button { width:39px; height:39px; border:0; border-radius:50%; background:#8178c8; color:#fff; }
.parker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.parker-grid article { padding:18px; min-height:160px; border:1px solid var(--hairline); border-radius:16px; background:var(--surface-3); }
.parker-grid article > span { color:#8178c8; font-size:11px; }
.parker-grid h3 { margin:20px 0 7px; font-size:16px; }
.parker-grid p { margin:0; font-size:12px; line-height:1.45; }
.parker-app footer { display:flex; gap:8px; margin-top:16px; }
.parker-app footer button { border:1px solid var(--hairline); border-radius:9px; padding:8px 11px; background:var(--field-surface); }

/* Liquid Glass inspired Control Center and notification widgets. */
.control-center-panel {
  right: 8px; top: 40px; width: 370px; padding: 11px;
  border-radius: 27px;
  color: var(--window-text);
  border: 1px solid color-mix(in srgb, var(--hairline) 88%, transparent);
  background: color-mix(in srgb, var(--surface-1) 58%, transparent);
  box-shadow: 0 28px 78px var(--glass-shadow), inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 85%,transparent);
  backdrop-filter: blur(38px) saturate(185%);
  -webkit-backdrop-filter: blur(38px) saturate(185%);
}
.cc-top-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 9px; }
.cc-focus-card, .cc-now-playing, .cc-liquid-slider, .cc-appearance-row {
  border: 1px solid color-mix(in srgb,var(--hairline) 76%,transparent);
  background: color-mix(in srgb,var(--surface-3) 82%,transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 58%,transparent);
}
.cc-focus-card { min-height: 108px; border-radius: 23px; display:flex; align-items:center; gap:12px; padding:14px; text-align:left; }
.cc-focus-card.active { background: color-mix(in srgb,var(--accent) 80%,transparent); color:#fff; }
.cc-round-icon { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:var(--field-surface); font-size:22px; }
.cc-focus-card strong, .cc-focus-card small, .cc-now-playing strong, .cc-now-playing small { display:block; }
.cc-focus-card small, .cc-now-playing small { margin-top:3px; color:currentColor; opacity:.67; }
.cc-now-playing { min-height:108px; border-radius:23px; display:grid; grid-template-columns:48px 1fr; gap:10px; align-items:center; padding:13px; }
.cc-album-art { width:48px; height:48px; border-radius:11px; background:linear-gradient(145deg,#6d6978,#27262c); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.cc-player-controls { grid-column:1/-1; display:flex; justify-content:center; gap:20px; }
.cc-player-controls button { border:0; background:transparent; color:inherit; opacity:.72; }
.cc-liquid-slider { display:block; margin-top:9px; padding:13px 15px; border-radius:21px; }
.cc-liquid-slider > span { display:block; margin-bottom:9px; font-size:13px; font-weight:670; }
.cc-liquid-slider input { width:100%; accent-color:var(--accent); }
.cc-appearance-row { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:9px; padding:10px; border-radius:21px; }
.cc-appearance-row button { border:0; border-radius:13px; background:transparent; color:inherit; padding:6px 4px; }
.cc-appearance-row button:hover { background:var(--hover-surface); }
.cc-wallpaper-preview { display:block; width:100%; aspect-ratio:1.25; border-radius:9px; border:1px solid var(--hairline); margin-bottom:5px; background-size:10px 10px; }
.cc-wallpaper-preview.grid {background-color:#f5f5f4;background-image:linear-gradient(#ddd 1px,transparent 1px),linear-gradient(90deg,#ddd 1px,transparent 1px)}
.cc-wallpaper-preview.dark {background-color:#101114;background-image:linear-gradient(#292a2e 1px,transparent 1px),linear-gradient(90deg,#292a2e 1px,transparent 1px)}
.cc-wallpaper-preview.maroon {background-color:#3d101c;background-image:linear-gradient(#653443 1px,transparent 1px),linear-gradient(90deg,#653443 1px,transparent 1px)}
.cc-wallpaper-preview.forest {background-color:#0e3023;background-image:linear-gradient(#2e5547 1px,transparent 1px),linear-gradient(90deg,#2e5547 1px,transparent 1px)}
.cc-appearance-row small { font-size:10px; color:var(--window-muted); }

.notification-center {
  right: 8px; top: 42px; width: min(520px,calc(100vw - 16px)); max-height: calc(100vh - 54px); overflow:auto;
  display:flex; flex-direction:column; gap:11px; padding:0;
  background:transparent; border:0; box-shadow:none; backdrop-filter:none;
}
.liquid-widget {
  color: var(--window-text);
  border: 1px solid color-mix(in srgb,var(--hairline) 86%,transparent);
  background: color-mix(in srgb,var(--surface-1) 68%,transparent);
  box-shadow: 0 24px 65px var(--glass-shadow), inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 76%,transparent);
  backdrop-filter: blur(38px) saturate(180%);
  -webkit-backdrop-filter: blur(38px) saturate(180%);
}
.nc-calendar-widget { min-height:205px; display:grid; grid-template-columns:.9fr 1.1fr; padding:24px 26px; border-radius:28px; }
.nc-date-column { display:flex; flex-direction:column; }
.nc-date-column > span { color:#ff453a; font-weight:730; letter-spacing:.03em; text-transform:uppercase; }
.nc-date-column > strong { margin-top:4px; font-size:64px; line-height:.95; font-weight:420; letter-spacing:-.07em; }
.nc-date-column > small { margin-top:auto; color:var(--window-muted); font-size:13px; }
.nc-month-column { padding-left:22px; }
.nc-month { color:#ff453a; font-size:13px; font-weight:730; letter-spacing:.04em; text-transform:uppercase; }
.nc-mini-grid { margin-top:10px; display:grid; grid-template-columns:repeat(7,1fr); gap:7px 8px; text-align:center; font-size:12px; }
.nc-mini-grid > span { min-width:25px; height:25px; display:grid; place-items:center; border-radius:50%; }
.nc-mini-grid .weekday { color:var(--window-muted); font-size:10px; font-weight:650; }
.nc-mini-grid .today { background:#ff453a; color:#fff; }
.nc-weather-widget { min-height:190px; padding:22px 24px; border-radius:28px; background:linear-gradient(145deg,color-mix(in srgb,#30345b 74%,transparent),color-mix(in srgb,#161a38 80%,transparent)); color:#fff; }
.nc-weather-top { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.nc-weather-top > span:last-child { text-align:right; }
.nc-weather-top small, .nc-weather-top strong, .nc-weather-top b { display:block; }
.nc-weather-top > span:first-child small { font-size:14px; font-weight:650; }
.nc-weather-top > span:first-child strong { font-size:58px; line-height:1; font-weight:360; letter-spacing:-.06em; }
.nc-weather-top > span:last-child { padding-top:9px; }
.nc-weather-top > span:last-child b { font-size:14px; }
.nc-weather-top > span:last-child small { margin-top:3px; color:rgba(255,255,255,.76); }
.nc-hourly-row { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-top:22px; text-align:center; font-size:11px; color:rgba(255,255,255,.76); }
.nc-hourly-row b { display:block; margin-top:7px; color:#fff; font-size:18px; }
.nc-now-card { position:relative; min-height:122px; padding:22px 24px; border-radius:28px; }
.nc-now-card .eyebrow { color:var(--window-muted); font-size:10px; letter-spacing:.13em; }
.nc-now-card strong { display:block; margin:7px 0 3px; font-size:27px; letter-spacing:-.04em; }
.nc-now-card p { margin:0; color:var(--window-muted); }
.nc-now-card button { position:absolute; right:20px; top:50%; transform:translateY(-50%); border:0; border-radius:12px; padding:10px 14px; background:var(--accent); color:#fff; font-weight:650; }

/* Media files behave as individual Preview / QuickTime windows. */
.media-window { background: #171719; }
.media-window .window-titlebar { color:#f5f5f7; background:linear-gradient(#343437,#252527); border-bottom-color:rgba(255,255,255,.08); }
.media-window .window-body { padding:0; background:var(--photo-bg); }
.media-viewer { position:relative; width:100%; height:100%; display:grid; place-items:center; overflow:hidden; background:var(--photo-bg); }
.media-viewer img, .media-viewer video { display:block; width:100%; height:100%; object-fit:contain; background:var(--photo-bg); }
.media-viewer video { outline:0; }
.media-caption { position:absolute; left:18px; right:18px; bottom:16px; display:flex; justify-content:space-between; gap:16px; align-items:flex-end; color:#fff; opacity:0; transform:translateY(5px); transition:.18s ease; pointer-events:none; text-shadow:0 2px 10px #000; }
.media-viewer:hover .media-caption { opacity:1; transform:none; }
.media-caption strong, .media-caption span { display:block; }
.media-caption span { color:rgba(255,255,255,.68); font-size:11px; }

/* Dock — drag to add, reorder, or remove. */
.dock {
  min-height: 86px;
  padding: 8px 11px 7px;
  border-radius: 23px;
  background: color-mix(in srgb,var(--surface-1) 62%,transparent);
  border: 1px solid color-mix(in srgb,var(--hairline) 90%,transparent);
  box-shadow: 0 20px 52px rgba(0,0,0,.26), inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 78%,transparent);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
.dock-item { width:66px; height:69px; }
.dock-item img { width:58px; height:58px; object-fit:contain; }
.dock-item[data-dock-key="finder"] img, .dock-item[data-dock-key="photos"] img,
.dock-item[data-dock-key="messages"] img, .dock-item[data-dock-key="safari"] img { width:61px; height:61px; }
.dock-item[data-dock-key="trash"] img { width:54px; height:61px; }
.dock-item .running-dot { bottom:0; width:5px; height:5px; border-radius:50%; }
.dock.drop-ready { box-shadow:0 20px 52px rgba(0,0,0,.28),0 0 0 3px color-mix(in srgb,var(--accent) 70%,transparent),inset 0 1px 0 var(--glass-highlight); }
.dock-item.dock-dragging { opacity:.72; }
.dock-customizer-backdrop, .dock-customizer { display:none !important; }

/* Dark / maroon / forest text hardening. */
.os:not([data-wallpaper="grid"]) .bubble.in { background:rgba(255,255,255,.13); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .chat-pane,
.os:not([data-wallpaper="grid"]) .note-editor,
.os:not([data-wallpaper="grid"]) .finder-main,
.os:not([data-wallpaper="grid"]) .calendar-main { background:var(--window-content); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .note-row.active { background:#9f7721; color:#fff; }
.os:not([data-wallpaper="grid"]) .note-editor textarea { background:var(--window-content); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .calendar-event { background:color-mix(in srgb,var(--accent) 18%,var(--window-content)); color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .calendar-event p { color:var(--window-muted); }
.os:not([data-wallpaper="grid"]) .account-list { background:var(--surface-3); border-color:var(--hairline); }
.os:not([data-wallpaper="grid"]) .account-row { border-color:var(--hairline); }
.os:not([data-wallpaper="grid"]) .empty-state h2 { color:var(--window-text); }
.os:not([data-wallpaper="grid"]) .file-name, .os:not([data-wallpaper="grid"]) .finder-main { color:var(--window-text); }

@media (max-width: 1050px) {
  .photos-masonry { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats > div:last-child { grid-column:1/-1; }
}
@media (max-width: 760px) {
  .about-app, .settings-shell, .photos-app { grid-template-columns:1fr; }
  .about-rail, .settings-sidebar, .photos-nav { display:none; }
  .about-content { padding:28px 24px; }
  .about-stats, .about-now { grid-template-columns:1fr; }
  .photos-topbar { grid-template-columns:1fr auto; }
  .photos-segmented { display:none; }
  .photos-masonry { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:120px; padding-inline:12px; }
  .photos-feature { margin-inline:12px; }
  .photos-date-heading { padding-inline:12px; }
  .control-center-panel { width:calc(100vw - 16px); }
  .nc-calendar-widget { grid-template-columns:1fr; }
  .nc-month-column { padding:18px 0 0; }
  .safari-favorites { grid-template-columns:repeat(3,1fr); }
  .parker-grid { grid-template-columns:1fr; }
}

/* V9 theme-specific specificity corrections for older compatibility rules. */
.os[data-wallpaper="dark"] .menu-bar,
.os[data-wallpaper="maroon"] .menu-bar,
.os[data-wallpaper="forest"] .menu-bar {
  background: color-mix(in srgb, var(--menu-glass) 91%, transparent);
  color: var(--shell-text);
  border-bottom-color: var(--hairline);
}
.os[data-wallpaper="dark"] .now-widget,
.os[data-wallpaper="maroon"] .now-widget,
.os[data-wallpaper="forest"] .now-widget {
  background: color-mix(in srgb, var(--surface-1) 78%, transparent);
  color: var(--window-text);
  border-color: var(--hairline);
}
.os[data-wallpaper="dark"] .now-copy .eyebrow,
.os[data-wallpaper="dark"] .now-sub,
.os[data-wallpaper="dark"] .now-actions .muted,
.os[data-wallpaper="maroon"] .now-copy .eyebrow,
.os[data-wallpaper="maroon"] .now-sub,
.os[data-wallpaper="maroon"] .now-actions .muted,
.os[data-wallpaper="forest"] .now-copy .eyebrow,
.os[data-wallpaper="forest"] .now-sub,
.os[data-wallpaper="forest"] .now-actions .muted { color: var(--window-muted); }
.os[data-wallpaper="dark"] .now-actions,
.os[data-wallpaper="dark"] .now-actions button + button,
.os[data-wallpaper="maroon"] .now-actions,
.os[data-wallpaper="maroon"] .now-actions button + button,
.os[data-wallpaper="forest"] .now-actions,
.os[data-wallpaper="forest"] .now-actions button + button { border-color: var(--hairline); }

.notification-center > .liquid-widget {
  color: var(--window-text);
  background: color-mix(in srgb,var(--surface-1) 68%,transparent);
  border-color: color-mix(in srgb,var(--hairline) 86%,transparent);
}
.notification-center > .nc-weather-widget {
  color:#fff;
  background: linear-gradient(145deg,rgba(54,60,111,.92),rgba(24,28,61,.94));
  border-color:rgba(255,255,255,.19);
}
.notification-center > .nc-weather-widget small,
.notification-center > .nc-weather-widget b,
.notification-center > .nc-weather-widget strong { color:inherit; }
.nc-hourly-row span { min-width:0; }
.nc-hourly-row i { display:block; height:22px; margin:5px 0 1px; color:#fff; font-size:18px; font-style:normal; }
.nc-mini-grid > b { color:var(--window-muted); font-size:10px; font-weight:650; min-width:25px; height:25px; display:grid; place-items:center; }

/* Ensure Preview/QuickTime titles remain readable on the dark media chrome. */
.media-window .window-title { color:#f5f5f7 !important; text-shadow:0 1px 1px rgba(0,0,0,.45); }

/* ========================================================================== */
/* V9.5 — regression fixes, simplified utilities, auto media library          */
/* ========================================================================== */

/* Desktop media files: the white rectangle bug came from the generic span
   selector styling the photo-paper wrapper like a filename. Keep the paper
   and the filename as two explicit layers. */
.photo-file {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.photo-file > .photo-paper {
  position: relative;
  inset: auto;
  left: auto;
  bottom: auto;
  transform: none;
  display: block;
  width: 100%;
  padding: 7px 7px 24px;
  border-radius: 1px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 25px rgba(0,0,0,.23), 0 0 0 1px rgba(0,0,0,.15);
}
.photo-file > .photo-paper img,
.photo-file > .photo-paper video {
  display: block;
  width: 100%;
  aspect-ratio: .89;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.photo-file > .photo-paper.monochrome img,
.photo-file > .photo-paper.monochrome video { filter: grayscale(1) contrast(1.08); }
.photo-file > .photo-label {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  max-width: 170px;
  padding: 2px 5px 3px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.65);
}
.photo-file.selected > .photo-label { background: #0a84ff; text-shadow: none; }
.photo-file.selected > .photo-paper { filter: brightness(.88); box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 3px rgba(10,132,255,.82); }
.photo-file.dragging > .photo-paper { box-shadow: 0 20px 38px rgba(0,0,0,.31), 0 0 0 1px rgba(0,0,0,.16); }
.desktop-video-badge { position:absolute !important; left:50% !important; top:50% !important; bottom:auto !important; transform:translate(-50%,-50%) !important; width:31px; height:31px; border-radius:50% !important; display:grid !important; place-items:center; padding:0 0 0 2px !important; background:rgba(255,255,255,.9) !important; color:#111 !important; text-shadow:none !important; font-size:11px !important; box-shadow:0 3px 10px rgba(0,0,0,.25); }

/* The marquee stays Apple-blue in every appearance and sits above wallpaper. */
.selection-rectangle {
  z-index: 75;
  display: none;
  border: 1px solid rgba(0,122,255,.96);
  border-radius: 2px;
  background: rgba(0,122,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.selection-rectangle.active { display: block !important; }

/* Exact supplied artwork, without extra artificial gloss or optical transforms. */
.icon-rizvisions img,
.dock-item[data-dock-key="about"] img,
.about-eye,
.settings-profile-mini img,
.about-rail > img { transform: none !important; }
.icon-rizvisions img { width: 76px; height: 76px; }
.dock-item[data-dock-key="about"] img { width: 61px; height: 61px; }
.dock-item[data-dock-key="settings"] img,
.dock-item[data-dock-key="safari"] img,
.dock-item[data-dock-key="parker"] img { width: 61px; height: 61px; }
.dock-item[data-dock-key="trash"] img { width: 53px; height: 61px; }

/* Instagram account chooser: constrained icon, native list rows, real buttons. */
.instagram-shell { padding: 30px; display:flex; flex-direction:column; justify-content:center; background:var(--window-content); }
.instagram-heading { margin: 0 0 22px; text-align: center; }
.instagram-heading img { display:block; width:68px; height:68px; margin:0 auto; object-fit:contain; }
.instagram-heading h2 { margin:11px 0 4px; font-size:24px; letter-spacing:-.035em; }
.instagram-heading p { margin:0; color:var(--window-muted); font-size:13px; }
.account-list { width:min(560px,100%); margin:0 auto; background:var(--surface-3); border-color:var(--hairline); }
.account-row { width:100%; border:0; border-bottom:1px solid var(--hairline); background:transparent; color:var(--window-text); cursor:pointer; text-align:left; }
.account-row:last-child { border-bottom:0; }
.account-row:hover { background:var(--hover-surface); }
.account-row:active { background:color-mix(in srgb,var(--accent) 14%,transparent); }

/* Simplified Control Center: no fake Wi-Fi/media modules. */
.control-center-panel {
  width: 340px;
  padding: 14px;
  border-radius: 22px;
  background: color-mix(in srgb,var(--surface-1) 76%,transparent);
}
.cc-header { display:flex; align-items:baseline; justify-content:space-between; padding:3px 4px 12px; }
.cc-header strong { font-size:15px; }
.cc-header small { color:var(--window-muted); font-size:11px; }
.cc-focus-row {
  width:100%; min-height:58px; display:grid; grid-template-columns:42px 1fr 34px; align-items:center; gap:10px;
  border:0; border-radius:16px; padding:8px 11px; background:var(--field-surface); color:var(--window-text); text-align:left;
}
.cc-focus-icon { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); font-size:20px; }
.cc-focus-row span:nth-child(2) strong,.cc-focus-row span:nth-child(2) small { display:block; }
.cc-focus-row span:nth-child(2) small { margin-top:2px; color:var(--window-muted); }
.cc-focus-row i { width:31px; height:19px; border-radius:12px; background:var(--surface-2); position:relative; }
.cc-focus-row i::after { content:""; position:absolute; width:15px; height:15px; left:2px; top:2px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.28); transition:.18s; }
.cc-focus-row.active i { background:var(--accent); }
.cc-focus-row.active i::after { left:14px; }
.cc-volume-row { display:block; margin-top:10px; padding:13px 14px; border-radius:16px; background:var(--field-surface); }
.cc-volume-row span { display:block; margin-bottom:9px; font-size:13px; font-weight:650; }
.cc-volume-row input { width:100%; accent-color:var(--accent); }
.cc-section-label { margin:14px 4px 8px; color:var(--window-muted); font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:.08em; }
.cc-appearance-row { gap:8px; }
.cc-appearance-row button { min-width:0; padding:8px 5px 6px; border-radius:13px; }
.cc-wallpaper-preview { width:50px; height:42px; border-radius:9px; }

/* Date panel is intentionally useful and compact: date/time, current work,
   and two shortcuts. Weather/calendar grids were removed rather than faked. */
.notification-center.compact { width: 360px; gap:10px; }
.nc-date-card { min-height:130px; padding:20px 22px; border-radius:24px; display:flex; justify-content:space-between; align-items:flex-start; }
.nc-date-card > div > span { display:block; color:#ff453a; font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.05em; }
.nc-date-card > div > strong { display:block; margin-top:3px; font-size:58px; line-height:.95; font-weight:390; letter-spacing:-.07em; }
.nc-date-card > div > small { display:block; margin-top:8px; color:var(--window-muted); }
.nc-date-card > time { padding-top:4px; font-size:24px; font-weight:550; letter-spacing:-.035em; }
.notification-center.compact .nc-now-card { min-height:112px; }
.nc-shortcuts { padding:8px; border-radius:24px; display:grid; gap:4px; }
.nc-shortcuts button { min-height:58px; display:grid; grid-template-columns:42px 1fr; gap:11px; align-items:center; border:0; border-radius:16px; padding:8px 10px; color:var(--window-text); background:transparent; text-align:left; }
.nc-shortcuts button:hover { background:var(--hover-surface); }
.nc-shortcuts img { width:42px; height:42px; object-fit:contain; }
.nc-shortcuts strong,.nc-shortcuts small { display:block; }
.nc-shortcuts small { margin-top:2px; color:var(--window-muted); }

/* Auto-loaded Photos library and video thumbnails. */
.photo-tile video { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.photos-feature video { width:100%; height:100%; object-fit:cover; display:block; }
.photos-empty { min-height:calc(100% - 80px); display:grid; place-content:center; justify-items:center; text-align:center; padding:40px; }
.photos-empty img { width:92px; height:92px; }
.photos-empty h2 { margin:16px 0 5px; font-size:24px; letter-spacing:-.035em; }
.photos-empty p { max-width:430px; margin:0 0 18px; color:var(--window-muted); line-height:1.45; }
.photos-empty code { padding:2px 5px; border-radius:5px; background:var(--field-surface); }

/* Temporary unpinned apps remain visible when open or minimized. */
.dock-item.temporary-app::after { content:""; position:absolute; inset:5px; border-radius:15px; box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--shell-text) 9%,transparent); pointer-events:none; }
.dock-item.temporary-app .running-dot { opacity:.95; }

/* Trash supplied by Riz; keep it optically tall but not oversized. */
.trash-dock img { width:54px !important; height:63px !important; }

@media (max-width:760px) {
  .notification-center.compact { width:calc(100vw - 16px); }
  .instagram-shell { padding:20px; }
}

/* V10.5 media architecture: natural galleries, project files, and aspect-aware viewers. */
.photos-app { position: relative; height: 100%; min-height: 0; }
.photos-library { position: relative; min-width: 0; overflow: auto; background: var(--window-bg); }
.photos-nav button { width: 100%; }
.photos-sidebar-empty { margin: 6px 12px 12px; color: var(--window-muted); font-size: 11px; line-height: 1.35; }
.photos-loading { min-height: 420px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 22px; align-content: start; }
.photos-loading i { display: block; min-height: 180px; border-radius: 14px; background: linear-gradient(105deg, color-mix(in srgb,var(--surface-2) 80%,transparent) 20%, color-mix(in srgb,var(--surface-1) 92%,transparent) 42%, color-mix(in srgb,var(--surface-2) 80%,transparent) 64%); background-size: 220% 100%; animation: photos-shimmer 1.25s linear infinite; }
.photos-loading span { grid-column: 1/-1; color: var(--window-muted); text-align: center; }
@keyframes photos-shimmer { to { background-position: -220% 0; } }

.photos-featured-carousel { margin: 14px 22px 26px; }
.photos-featured-carousel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.photos-featured-carousel > header div:first-child { display: grid; gap: 2px; }
.photos-featured-carousel > header span { font-size: 10px; font-weight: 750; letter-spacing: .12em; color: var(--accent); }
.photos-featured-carousel > header strong { font-size: 15px; }
.photos-featured-carousel > header div:last-child { display: flex; gap: 6px; }
.photos-featured-carousel > header button { width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: 50%; background: var(--surface-1); color: var(--window-text); font-size: 20px; cursor: pointer; }
.photos-featured-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 78%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photos-featured-track::-webkit-scrollbar { display: none; }
.photos-featured-card { position: relative; min-height: 310px; padding: 0; overflow: hidden; border: 0; border-radius: 19px; background: #161618; color: #fff; scroll-snap-align: start; cursor: pointer; text-align: left; }
.photos-featured-card > img, .photos-featured-card > .media-thumb-shell { width: 100%; height: 100%; min-height: 310px; object-fit: contain; background: #161618; }
.photos-featured-card > span:last-child { position: absolute; inset: auto 0 0; padding: 56px 20px 18px; display: grid; gap: 3px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.photos-featured-card small { color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.photos-featured-card strong { font-size: 21px; }
.photos-featured-card em { color: rgba(255,255,255,.76); font-size: 12px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.photos-natural-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 9px; padding: 0 22px 30px; align-items: start; }
.photo-natural-tile { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: color-mix(in srgb,var(--surface-2) 82%,#000); cursor: pointer; text-align: left; aspect-ratio: var(--media-ratio, 1); }
.photo-natural-tile > img, .photo-natural-tile > .media-thumb-shell { width: 100%; height: 100%; display: block; object-fit: contain; background: #171719; }
.photo-natural-tile > span:not(.media-thumb-shell) { position: absolute; left: 8px; right: 8px; bottom: 7px; color: #fff; font-size: 10px; font-weight: 620; text-shadow: 0 1px 5px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(3px); transition: .15s ease; }
.photo-natural-tile:hover > span:not(.media-thumb-shell) { opacity: 1; transform: none; }
.media-thumb-shell { position: relative; display: grid; place-items: center; overflow: hidden; }
.media-thumb-shell img, .media-thumb-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #171719; }
.media-thumb-shell i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; display: grid; place-items: center; padding-left: 2px; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; font-style: normal; box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.photo-natural-tile .video-duration { position: absolute; right: 7px; top: 7px; padding: 4px 6px; border-radius: 7px; background: rgba(0,0,0,.65); color: #fff; font-size: 9px; font-style: normal; }

.photos-gallery { position: absolute; z-index: 80; inset: 0; display: grid; grid-template-rows: 52px minmax(0,1fr) 118px; grid-template-columns: 68px minmax(0,1fr) 68px; background: rgba(18,18,20,.98); color: #fff; outline: 0; }
.photos-gallery[hidden] { display: none !important; }
.photos-gallery > header { grid-column: 1/-1; display: flex; align-items: center; gap: 13px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(30,30,32,.9); }
.photos-gallery > header button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #ff5f57; color: transparent; cursor: pointer; }
.photos-gallery > header div { display: grid; gap: 1px; }
.photos-gallery-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photos-gallery-counter { color: rgba(255,255,255,.55); }
.photos-gallery-stage { grid-column: 2; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #101012; }
.photos-gallery-stage img, .photos-gallery-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.photos-gallery-stage video { width: 100%; height: 100%; }
.gallery-arrow { align-self: center; justify-self: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; }
.gallery-prev { grid-column: 1; }
.gallery-next { grid-column: 3; }
.photos-gallery > footer { grid-column: 1/-1; display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0,1fr); gap: 18px; align-items: center; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); background: #1c1c1e; }
.photos-gallery > footer > div:first-child { min-width: 0; display: grid; gap: 3px; }
.photos-gallery-caption { color: rgba(255,255,255,.62); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photos-gallery-filmstrip { min-width: 0; display: flex; gap: 7px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.photos-gallery-filmstrip::-webkit-scrollbar { display: none; }
.photos-gallery-filmstrip button { flex: 0 0 66px; width: 66px; height: 78px; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #111; cursor: pointer; opacity: .62; }
.photos-gallery-filmstrip button.active { border-color: #fff; opacity: 1; }
.photos-gallery-filmstrip img, .photos-gallery-filmstrip .media-thumb-shell { width: 100%; height: 100%; object-fit: contain; }
.photos-gallery-filmstrip .media-thumb-shell i { width: 24px; height: 24px; font-size: 9px; }

.project-environment { height: 100%; overflow: auto; background: var(--window-bg); }
.project-folder-header { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); gap: 30px; padding: 38px 42px 34px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb,var(--project) 82%,#111), color-mix(in srgb,var(--project) 48%,#111)); }
.project-folder-header span { font-size: 10px; font-weight: 760; letter-spacing: .13em; opacity: .72; }
.project-folder-header h1 { margin: 7px 0 9px; font-size: 52px; letter-spacing: -.055em; }
.project-folder-header p { margin: 0; max-width: 650px; color: rgba(255,255,255,.78); line-height: 1.45; }
.project-folder-header .project-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-content: end; }
.project-folder-header .project-facts div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 11px; }
.project-assets { padding: 26px 30px 34px; }
.project-assets-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.project-assets-heading strong { font-size: 18px; }
.project-assets-heading small { color: var(--window-muted); }
.project-file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 18px; align-items: start; }
.project-media-file { min-width: 0; border: 0; background: transparent; padding: 0; cursor: default; }
.project-media-file > img, .project-media-file > .media-thumb-shell { width: 100%; aspect-ratio: var(--media-ratio,1); max-height: 180px; display: block; object-fit: contain; border-radius: 9px; background: #171719; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.project-media-file > span:last-child { display: block; margin-top: 8px; color: var(--window-text); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-media-file:focus > span:last-child, .project-media-file:hover > span:last-child { background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 4px; }
.project-empty { min-height: 280px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--window-muted); }
.project-empty img { width: 100px; height: 86px; object-fit: contain; margin-bottom: 12px; }
.project-empty strong { color: var(--window-text); }
.project-empty p { margin: 5px 0 0; }

.media-window-image .window-body, .media-window-video .window-body { min-height: 0; }
.media-viewer { min-width: 0; min-height: 0; }
.media-viewer img, .media-viewer video { object-fit: contain !important; }
.media-playback-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(380px,calc(100% - 40px)); padding: 20px; border-radius: 16px; background: rgba(30,30,32,.9); color: #fff; text-align: center; }
.media-playback-error strong, .media-playback-error span { display: block; }
.media-playback-error span { margin-top: 6px; color: rgba(255,255,255,.68); font-size: 12px; }
.photo-file > .photo-paper video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 850px) {
  .photos-featured-track { grid-auto-columns: 92%; }
  .photos-natural-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photos-gallery { grid-template-columns: 44px minmax(0,1fr) 44px; grid-template-rows: 52px minmax(0,1fr) 96px; }
  .photos-gallery > footer { grid-template-columns: 1fr; gap: 8px; }
  .photos-gallery > footer > div:first-child { display: none; }
  .project-folder-header { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* V10.6 — centered desktop, Apple-like apps, fluid motion, boot hello         */
/* ========================================================================== */

/* First-load handwriting intro. The desktop exists behind it and resolves in. */
.boot-intro {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f5f5f3;
  color: #111113;
  opacity: 1;
  visibility: visible;
  transition: opacity .82s cubic-bezier(.22,.61,.36,1), visibility .82s;
}
.boot-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.96), rgba(255,255,255,.28) 38%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 55%);
  pointer-events: none;
}
.boot-intro-inner {
  position: relative;
  width: min(690px, 76vw);
  display: grid;
  justify-items: center;
  gap: 26px;
  transform: translateY(-2vh);
}
.boot-hello { width: min(638px, 100%); height: auto; overflow: visible; filter: drop-shadow(0 2px 8px rgba(0,0,0,.035)); }
.boot-hello-path { vector-effect: non-scaling-stroke; }
.boot-greeting {
  min-height: 24px;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 510;
  letter-spacing: -.02em;
  color: rgba(30,30,32,.68);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .65s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
.boot-intro.greeting-visible .boot-greeting { opacity: 1; transform: none; }
.boot-skip {
  position: fixed;
  right: 24px;
  bottom: 20px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: rgba(40,40,44,.34);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
}
.boot-active .boot-skip { opacity: 1; }
.boot-intro.leaving { opacity: 0; visibility: hidden; pointer-events: none; }
body.boot-pending #os { opacity: 0; transform: scale(1.012); filter: blur(5px); }
#os { transition: opacity .9s ease, transform 1.1s cubic-bezier(.22,.61,.36,1), filter 1s ease; }
body.desktop-ready #os { opacity: 1; transform: none; filter: none; }
body.boot-active .desktop-item,
body.boot-active .now-widget,
body.boot-active .photo-file,
body.boot-active .dock-wrap { opacity: 0; transform: translateY(8px); }
body.desktop-ready .desktop-item,
body.desktop-ready .now-widget,
body.desktop-ready .photo-file,
body.desktop-ready .dock-wrap {
  opacity: 1;
  transition: opacity .7s ease, transform .85s cubic-bezier(.22,.61,.36,1);
}
body.desktop-ready .desktop-item:nth-child(1) { transition-delay: .05s; }
body.desktop-ready .desktop-item:nth-child(2) { transition-delay: .08s; }
body.desktop-ready .desktop-item:nth-child(3) { transition-delay: .11s; }
body.desktop-ready .desktop-item:nth-child(4) { transition-delay: .14s; }
body.desktop-ready .desktop-item:nth-child(5) { transition-delay: .17s; }
body.desktop-ready .desktop-item:nth-child(6) { transition-delay: .20s; }
body.desktop-ready .desktop-item:nth-child(7) { transition-delay: .23s; }
body.desktop-ready .desktop-item:nth-child(8) { transition-delay: .26s; }
body.desktop-ready .desktop-item:nth-child(9) { transition-delay: .29s; }
body.desktop-ready .desktop-item:nth-child(10) { transition-delay: .32s; }
body.desktop-ready .desktop-item:nth-child(11) { transition-delay: .35s; }
body.desktop-ready .desktop-item:nth-child(12) { transition-delay: .38s; }
body.desktop-ready .dock-wrap { transition-delay: .2s; }

/* Desktop defaults now form a centered 4 × 3 field rather than leaning left. */
.desktop-item { will-change: left, top, transform, opacity; }

/* Smooth reset/sort, inspired by Finder desktop objects gliding back home. */
.os.layout-resetting .desktop-item,
.os.layout-resetting .photo-file,
.os.layout-resetting .now-widget {
  transition:
    left .68s cubic-bezier(.2,.8,.2,1),
    top .68s cubic-bezier(.2,.8,.2,1),
    transform .68s cubic-bezier(.2,.8,.2,1),
    opacity .34s ease,
    box-shadow .3s ease !important;
}
.os.layout-resetting .desktop-item:nth-child(2n) { transition-duration: .73s; }
.os.layout-resetting .desktop-item:nth-child(3n) { transition-duration: .77s; }
.os.layout-resetting .photo-file:nth-child(2n) { transition-duration: .76s; }
.desktop-item.dragging,
.photo-file.dragging,
.now-widget.dragging { transition: none !important; }

/* Finder / Selected Work — reduce navigation to the two real concepts. */
.finder-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 204px minmax(0,1fr);
  background: var(--window-bg);
  color: var(--window-text);
}
.finder-sidebar {
  padding: 16px 10px;
  background: color-mix(in srgb, var(--sidebar-surface) 88%, transparent);
  border-right: 1px solid var(--hairline);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.finder-sidebar .sidebar-section { display: grid; gap: 3px; }
.finder-sidebar .sidebar-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--window-text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: default;
}
.finder-sidebar .sidebar-row.active { background: var(--accent); color: #fff; }
.sidebar-glyph { width: 20px; display: grid; place-items: center; color: var(--accent); font-size: 14px; font-weight: 680; }
.sidebar-row.active .sidebar-glyph { color: #fff; }
.finder-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: 56px minmax(0,1fr) 24px; }
.finder-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb,var(--surface-1) 85%,transparent);
}
.finder-toolbar .toolbar-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--window-text);
  font-size: 22px;
  cursor: default;
}
.finder-toolbar .toolbar-button:hover { background: var(--hover-surface); }
.finder-title-inline { font-size: 18px; letter-spacing: -.025em; }
.toolbar-spacer { flex: 1; }
.finder-toolbar .search-field {
  width: 172px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--field-surface);
  color: var(--window-text);
  font: inherit;
  font-size: 12px;
}
.finder-content { min-height: 0; overflow: auto; padding: 28px 32px; }
.finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px,1fr));
  gap: 28px 24px;
  align-items: start;
}
.finder-grid .file-item {
  min-width: 0;
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--window-text);
  font: inherit;
  cursor: default;
}
.finder-grid .file-item > img,
.finder-grid .file-item > .media-thumb-shell {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
}
.finder-grid .application-item > img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.17)); }
.finder-grid .finder-media-item > img,
.finder-grid .finder-media-item > .media-thumb-shell {
  width: 84px;
  height: 78px;
  border-radius: 7px;
  background: #171719;
  box-shadow: 0 5px 15px rgba(0,0,0,.16);
}
.finder-folder { position: relative; width: 88px; height: 70px; display: grid; place-items: center; }
.finder-folder img { width: 88px; height: 70px; object-fit: contain; }
.finder-folder i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--tag,#8e8e93); border: 2px solid var(--window-bg); }
.finder-calendar { width: 72px !important; height: 72px !important; }
.finder-grid .file-name {
  max-width: 116px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.finder-grid .file-item:focus .file-name,
.finder-grid .file-item.selected .file-name { background: var(--accent); color: #fff; outline: none; }
.finder-statusbar { display: grid; place-items: center; border-top: 1px solid var(--hairline); color: var(--window-muted); font-size: 10px; }

/* Notes — closer to the real three-column Notes hierarchy. */
.notes-app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(175px,22%) minmax(220px,28%) minmax(0,1fr);
  background: #fffefb;
  color: #242426;
}
.notes-folders {
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid rgba(0,0,0,.09);
  background: rgba(244,241,233,.83);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.notes-sidebar-top { height: 28px; }
.notes-sidebar-label { margin: 16px 10px 5px; color: #737376; font-size: 11px; font-weight: 720; }
.notes-group { display: grid; gap: 3px; }
.notes-group button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #29292b;
  font: inherit;
  text-align: left;
}
.notes-group button.active { background: rgba(121,121,128,.12); }
.notes-group button strong { font-size: 13px; font-weight: 590; }
.notes-group button em { color: #9a9a9e; font-size: 12px; font-style: normal; }
.notes-quick-icon { width: 21px; height: 21px; border: 1.7px solid currentColor; border-radius: 4px; display: grid; place-items: center; font-size: 10px; }
.notes-folder-icon { color: #ff9f0a; font-size: 20px; line-height: 1; }
.notes-browser { min-width: 0; min-height: 0; display: grid; grid-template-rows: 62px minmax(0,1fr); border-right: 1px solid rgba(0,0,0,.1); background: #fff; }
.notes-browser-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px 8px 18px;
  border-bottom: 1px solid rgba(0,0,0,.09);
}
.notes-browser-toolbar > div:first-child { display: grid; }
.notes-browser-toolbar strong { font-size: 18px; letter-spacing: -.025em; }
.notes-browser-toolbar small { color: #79797d; font-size: 11px; }
.notes-toolbar-actions { display: flex; gap: 8px; }
.notes-toolbar-actions button,
.notes-editor-toolbar button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(118,118,128,.08);
  color: #4d4d50;
  font: inherit;
  cursor: default;
}
.notes-compose { color: #ff9f0a !important; }
.notes-note-list { min-height: 0; overflow: auto; padding: 10px 14px 26px; }
.notes-note-list h3 { margin: 13px 5px 7px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 13px; }
.notes-note-list button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #29292b;
  font: inherit;
  text-align: left;
}
.notes-note-list button.active { background: rgba(118,118,128,.16); }
.notes-note-list button strong { grid-column: 1/-1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-note-list button span { font-size: 11px; }
.notes-note-list button small { min-width: 0; color: #77777a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-editor.apple-note-editor { min-width: 0; min-height: 0; display: grid; grid-template-rows: 54px 30px minmax(0,1fr); background: #fffefb; }
.notes-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.notes-editor-toolbar > span { flex: 1; }
.note-meta { display: grid; place-items: center; color: #9a9a9e; font-size: 11px; }
.note-editor-textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 10px 30px 34px;
  background: transparent;
  color: #202022;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  caret-color: #ff9f0a;
}
.os:not([data-wallpaper="grid"]) .notes-app { color: var(--window-text); }
.os:not([data-wallpaper="grid"]) .notes-folders,
.os:not([data-wallpaper="grid"]) .notes-browser,
.os:not([data-wallpaper="grid"]) .note-editor.apple-note-editor { background: var(--window-bg); color: var(--window-text); border-color: var(--hairline); }
.os:not([data-wallpaper="grid"]) .notes-group button,
.os:not([data-wallpaper="grid"]) .notes-note-list button,
.os:not([data-wallpaper="grid"]) .note-editor-textarea { color: var(--window-text); }
.os:not([data-wallpaper="grid"]) .notes-note-list button small,
.os:not([data-wallpaper="grid"]) .notes-browser-toolbar small,
.os:not([data-wallpaper="grid"]) .note-meta { color: var(--window-muted); }

/* Calendar — restrained native month view. */
.calendar-app { height: 100%; min-height: 0; display: grid; grid-template-columns: 210px minmax(0,1fr); background: var(--window-bg); color: var(--window-text); }
.calendar-sidebar { padding: 18px 12px; border-right: 1px solid var(--hairline); background: color-mix(in srgb,var(--sidebar-surface) 88%,transparent); }
.calendar-mini-title { padding: 0 8px 17px; font-size: 13px; }
.calendar-list-title { margin: 8px; color: var(--window-muted); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .07em; }
.calendar-list-row { min-height: 31px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border-radius: 7px; font-size: 12px; }
.calendar-list-row:hover { background: var(--hover-surface); }
.calendar-dot { width: 10px; height: 10px; border-radius: 50%; }
.calendar-dot.personal { background: #ff453a; }
.calendar-dot.work { background: #0a84ff; }
.calendar-dot.rizvisions { background: #bf5af2; }
.calendar-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: 54px 30px minmax(0,1fr); }
.calendar-toolbar { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--hairline); }
.calendar-toolbar button { height: 30px; min-width: 30px; border: 1px solid var(--hairline); border-radius: 7px; padding: 0 10px; background: var(--field-surface); color: var(--window-text); font: inherit; font-size: 11px; }
.calendar-toolbar button.active { background: var(--accent); color: #fff; border-color: transparent; }
.calendar-toolbar strong { font-size: 15px; }
.calendar-toolbar-spacer { flex: 1; }
.calendar-weekdays, .calendar-month-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-weekdays { padding: 0 8px; border-bottom: 1px solid var(--hairline); }
.calendar-weekdays b { align-self: center; padding-right: 6px; color: var(--window-muted); font-size: 9px; font-weight: 700; text-align: right; }
.calendar-month-grid { min-height: 0; grid-template-rows: repeat(6,1fr); border-left: 1px solid var(--hairline); }
.calendar-cell { position: relative; display: flex; justify-content: flex-end; padding: 8px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 11px; }
.calendar-cell.outside { color: color-mix(in srgb,var(--window-muted) 55%,transparent); }
.calendar-cell.today { color: #fff; font-weight: 700; }
.calendar-cell.today::before { content: ""; position: absolute; right: 3px; top: 3px; width: 25px; height: 25px; border-radius: 50%; background: #ff453a; z-index: 0; }
.calendar-cell.today { z-index: 1; }
.calendar-cell.today::after { content: attr(data-day); }
.calendar-cell.today { isolation: isolate; }
.calendar-cell.today::before { z-index: -1; }

/* Photos 10.6 — chronology first, compact featured strip, no cropping. */
.photos-app { grid-template-columns: 190px minmax(0,1fr); background: var(--window-bg); }
.photos-sidebar { background: color-mix(in srgb,var(--sidebar-surface) 90%,transparent); border-right: 1px solid var(--hairline); }
.photos-library { overflow: auto; }
.photos-library-toolbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb,var(--window-bg) 88%,transparent); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.photos-featured-carousel { margin: 12px 22px 18px; }
.photos-featured-track { grid-auto-columns: minmax(240px, 38%); gap: 10px; }
.photos-featured-card { min-height: 150px; max-height: 210px; border-radius: 15px; }
.photos-featured-card > img,
.photos-featured-card > .media-thumb-shell { width: 100%; height: 100%; min-height: 150px; max-height: 210px; object-fit: contain; background: #151517; }
.photos-featured-card > span:last-child { padding: 42px 13px 11px; }
.photos-featured-card strong { font-size: 14px; }
.photos-featured-card em { font-size: 10px; }
.photos-chronology { padding: 4px 20px 34px; }
.photos-date-group { margin: 0 0 28px; }
.photos-date-group > header { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.photos-date-group > header strong { font-size: 20px; letter-spacing: -.035em; }
.photos-date-group > header small { color: var(--window-muted); font-size: 10px; }
.photos-natural-grid { padding: 0; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 6px; }
.photo-natural-tile { min-height: 104px; max-height: 240px; border-radius: 7px; background: #151517; }
.photo-natural-tile > img,
.photo-natural-tile > .media-thumb-shell,
.media-thumb-shell img,
.media-thumb-shell video { object-fit: contain !important; }
.photo-natural-tile[data-media-type="video"]::after { content: "VIDEO"; position: absolute; left: 7px; top: 7px; padding: 3px 5px; border-radius: 5px; background: rgba(0,0,0,.5); color: #fff; font-size: 7px; font-weight: 750; letter-spacing: .08em; }

/* In-Photos gallery is a self-contained native viewer, never laid over giant hero content. */
.photos-gallery {
  grid-template-columns: 52px minmax(0,1fr) 52px 0;
  grid-template-rows: 48px minmax(0,1fr) 92px;
  background: #111113;
}
.photos-gallery.info-open { grid-template-columns: 52px minmax(0,1fr) 52px 250px; }
.photos-gallery > header { padding: 0 13px; background: #1d1d1f; }
.photos-gallery > header button { width: 20px; height: 20px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.13); }
.photos-gallery-stage { position: relative; grid-column: 2; background: #111113; overflow: hidden; padding: 12px; }
.photos-gallery-stage img,
.photos-gallery-stage video,
.photos-gallery-stage .apple-video-player,
.photos-gallery-stage .apple-video-element {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.photos-gallery-stage .apple-video-player { display: grid; place-items: center; background: #111113; }
.photos-gallery-stage .apple-video-element { position: absolute; inset: 0; }
.photos-gallery-info { grid-column: 4; grid-row: 2 / 4; min-width: 0; overflow: auto; padding: 18px 16px; border-left: 1px solid rgba(255,255,255,.08); background: #1c1c1e; color: #fff; }
.photos-gallery-info:empty { display: none; }
.photos-gallery > footer { grid-column: 1 / 4; grid-template-columns: minmax(140px,.3fr) minmax(0,1fr); min-height: 0; padding: 9px 14px; }
.photos-gallery-filmstrip button { flex-basis: 56px; width: 56px; height: 66px; border-radius: 7px; }
.gallery-arrow { width: 34px; height: 34px; font-size: 23px; background: rgba(255,255,255,.1); }
.gallery-arrow:hover { background: rgba(255,255,255,.18); }
.media-info-list { display: grid; gap: 12px; }
.media-info-list > div { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.media-info-list small { display: block; color: rgba(255,255,255,.45); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.media-info-list strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 560; }

/* QuickTime-like individual video window: full frame, hover-only controls. */
.media-window-video .window-body { background: #111113; }
.media-viewer.video { position: relative; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #111113; }
.apple-video-player { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #111113; }
.apple-video-element { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; background: #111113; }
.apple-video-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(680px, calc(100% - 34px));
  padding: 13px 16px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(34,34,38,.75);
  box-shadow: 0 12px 36px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .25s cubic-bezier(.22,.61,.36,1);
}
.apple-video-player:hover .apple-video-controls,
.apple-video-player.controls-visible .apple-video-controls {
  opacity: 1;
  transform: translate(-50%,0);
  pointer-events: auto;
}
.video-control-primary { display: flex; align-items: center; gap: 10px; }
.video-control-primary button {
  min-width: 31px;
  height: 31px;
  padding: 0 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.video-control-primary button:hover { background: rgba(255,255,255,.09); }
.video-control-primary .video-play { font-size: 24px; min-width: 42px; }
.video-control-spacer { flex: 1; }
.video-volume { width: 92px; accent-color: #fff; }
.video-control-timeline { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 8px; align-items: center; margin-top: 7px; }
.video-control-timeline time { color: rgba(255,255,255,.68); font-size: 10px; text-align: center; }
.video-control-timeline input { width: 100%; accent-color: #fff; }
.apple-video-player.compact .apple-video-controls { bottom: 12px; width: min(560px,calc(100% - 24px)); padding: 9px 12px 8px; border-radius: 15px; }
.apple-video-player.compact .video-volume { display: none; }
.apple-video-player.compact .video-control-primary button { height: 27px; }
.apple-video-player.compact .video-control-timeline { margin-top: 4px; }

/* Keep portrait/landscape media completely visible in any viewer. */
.media-viewer.image img,
.media-viewer.video video,
.project-media-file > img,
.project-media-file > .media-thumb-shell { object-fit: contain !important; }

/* A little more system-level polish everywhere. */
.mac-window { box-shadow: 0 28px 70px rgba(0,0,0,.25), 0 5px 18px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.12); }
.mac-window .window-titlebar { backdrop-filter: blur(25px) saturate(160%); -webkit-backdrop-filter: blur(25px) saturate(160%); }
.mac-button, .toolbar-button, .sidebar-row, .account-row { transition: background .15s ease, color .15s ease, transform .12s ease; }

@media (max-width: 1050px) {
  .notes-app { grid-template-columns: minmax(170px,22%) minmax(215px,29%) minmax(0,1fr); }
  .finder-shell { grid-template-columns: 180px minmax(0,1fr); }
  .photos-featured-track { grid-auto-columns: minmax(220px,58%); }
}
@media (max-width: 760px) {
  .boot-intro-inner { width: 84vw; }
  .notes-app { grid-template-columns: 1fr; }
  .notes-folders, .notes-browser { display: none; }
  .finder-shell, .calendar-app { grid-template-columns: 1fr; }
  .finder-sidebar, .calendar-sidebar { display: none; }
  .photos-featured-track { grid-auto-columns: 82%; }
}

/* V10.6 Photos markup alignment / final overrides. */
.photos-topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb,var(--window-bg) 90%,transparent);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.photos-topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.photos-topbar small { color: var(--window-muted); font-size: 10px; }
.photos-segmented { display: flex; padding: 2px; border: 1px solid var(--hairline); border-radius: 9px; background: var(--field-surface); }
.photos-segmented button { min-width: 56px; height: 27px; border: 0; border-radius: 7px; background: transparent; color: var(--window-text); font: inherit; font-size: 10px; }
.photos-segmented button.active { background: var(--surface-1); box-shadow: 0 1px 3px rgba(0,0,0,.11); }
.photos-scroll-content { min-height: calc(100% - 68px); padding-top: 4px; }
.photos-featured-strip { margin: 7px 20px 18px; }
.photos-featured-strip > header { display: flex; align-items: baseline; gap: 7px; margin: 0 2px 8px; }
.photos-featured-strip > header strong { font-size: 12px; }
.photos-featured-strip > header small { color: var(--window-muted); font-size: 9px; }
.photos-featured-strip .photos-featured-track { margin: 0; }
.photos-library-feed { padding: 0 20px 30px; }
.photos-library-feed > .photos-natural-grid { padding: 0; }
.photos-library-feed > .photos-date-group .photos-natural-grid { padding: 0; }

.photos-gallery {
  grid-template-columns: minmax(0,1fr) 0;
  grid-template-rows: 48px minmax(0,1fr) 88px;
}
.photos-gallery.info-open { grid-template-columns: minmax(0,1fr) 250px; }
.photos-gallery > header { grid-column: 1 / -1; grid-row: 1; }
.photos-viewer-toolbar { display: grid !important; grid-template-columns: 34px minmax(0,1fr) 1fr 34px; align-items: center; }
.photos-viewer-toolbar > span { min-width: 0; }
.photos-viewer-toolbar [data-gallery-info] { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.photos-gallery-stage {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 50px;
  padding: 10px 0;
  align-items: center;
  background: #111113;
}
.photos-gallery-stage .gallery-prev { grid-column: 1; }
.photos-gallery-stage .photos-gallery-media { grid-column: 2; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.photos-gallery-stage .gallery-next { grid-column: 3; }
.photos-gallery-stage img,
.photos-gallery-stage video,
.photos-gallery-stage .apple-video-player,
.photos-gallery-stage .apple-video-element { object-fit: contain !important; }
.photos-gallery > footer { grid-column: 1; grid-row: 3; min-width: 0; display: block; padding: 9px 14px; }
.photos-gallery-filmstrip { height: 100%; display: flex; align-items: center; justify-content: center; }
.photos-gallery-info { grid-column: 2; grid-row: 2 / 4; }
.photos-gallery-info[hidden] { display: none !important; }
.photos-info-card > strong { display: block; font-size: 14px; }
.photos-info-card > p { margin: 6px 0 14px; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.4; }
.photos-info-card dl { margin: 0; display: grid; gap: 10px; }
.photos-info-card dl div { padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.08); }
.photos-info-card dt { color: rgba(255,255,255,.42); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.photos-info-card dd { margin: 3px 0 0; font-size: 11px; }

/* Desktop Calendar icon optical size matches the PNG app icons. */
.desktop-item[data-id="calendar"] .calendar-icon { width: 72px; height: 72px; border-radius: 16px; }
.desktop-item[data-id="calendar"] .calendar-weekday { margin-top: 7px; font-size: 10px; }
.desktop-item[data-id="calendar"] .calendar-day { font-size: 37px; }

/* Boot object transforms preserve each desktop object's own positioning math. */
body.boot-active .desktop-item { transform: translate(-50%,-50%) scale(.965); }
body.desktop-ready .desktop-item { transform: translate(-50%,-50%) scale(1); }
body.boot-active .now-widget { transform: translateX(-50%) translateY(7px) scale(.985); }
body.desktop-ready .now-widget { transform: translateX(-50%) translateY(0) scale(1); }
body.boot-active .photo-file { opacity: 0; }
body.desktop-ready .photo-file { opacity: 1; }
body.boot-active .dock-wrap { transform: translateX(-50%) translateY(9px); }
body.desktop-ready .dock-wrap { transform: translateX(-50%) translateY(0); }
.video-control-primary button svg { width: 21px; height: 21px; display: block; margin: auto; }
.video-play svg { width: 28px !important; height: 28px !important; }
.video-icon-pause { display: none; }
.video-play[data-state="pause"] .video-icon-play { display: none; }
.video-play[data-state="pause"] .video-icon-pause { display: inline; }
.video-control-primary [data-video-mute][data-muted="true"] .sound-wave { display: none; }

/* ========================================================================== */
/* V10.6.2 — desktop media + Terminal regression hotfix                       */
/* ========================================================================== */

/* Retina Mac displays commonly expose ~1024 CSS px even when screenshots are
   2048 px wide. V10.6.1 hid the entire desktop media layer at <=1050px, which
   made valid Desktop placements disappear on common MacBook viewports. */
@media (min-width: 761px) and (max-width: 1050px) {
  .photo-stack { display: block !important; }
  .photo-file { --photo-width: 118px; }
}

/* Generic theme input rules were more specific than the original Terminal
   input rule in light mode, producing dark text on the dark terminal surface. */
.terminal-shell .terminal-input,
.os .terminal-shell .terminal-input {
  color: #f5f5f7 !important;
  caret-color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  background: transparent !important;
}
.terminal-shell .terminal-input::selection { background: rgba(10,132,255,.58); color:#fff; }


/* ==========================================================================
   V10.6.3 — mixed desktop photo/video rendering hotfix
   ========================================================================== */

/* Desktop video placements must never throw or block sibling desktop media.
   The no-poster fallback is now a real <video> preview instead of calling a
   removed helper. Keep it passive: it is only a thumbnail on the desktop. */
.photo-file > .photo-paper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #111;
}
.desktop-video-placeholder {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(180deg, #202023, #0d0d0e) !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 28px !important;
  text-shadow: none !important;
}
