/* =====================================================================
   STYLE FILE: colours, sizes and layout. You rarely need to touch this.
   To change the main highlight colour, edit --accent below.
   ===================================================================== */
:root {
  --accent: #0a84ff;
  --mb-h: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --win: #ffffff;
  --side: #f2f1f6;
  --bar: #ecebf0;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --sel: color-mix(in srgb, var(--accent) 16%, transparent);
  --bubble: #e9e9eb;
  --glass: rgba(255, 255, 255, .5);
  --glass-strong: rgba(246, 246, 248, .86);
  --shadow: 0 22px 70px rgba(0, 0, 0, .38), 0 0 0 .5px rgba(0, 0, 0, .22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --win: #1e1e20; --side: #252528; --bar: #2b2b2e; --text: #f2f2f5; --muted: #98989f;
    --line: rgba(255, 255, 255, .1); --sel: color-mix(in srgb, var(--accent) 30%, transparent); --bubble: #3a3a3c;
    --glass: rgba(40, 40, 44, .5); --glass-strong: rgba(36, 36, 40, .88);
    --shadow: 0 22px 70px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .15);
  }
}
:root[data-theme="dark"] {
  --win: #1e1e20; --side: #252528; --bar: #2b2b2e; --text: #f2f2f5; --muted: #98989f;
  --line: rgba(255, 255, 255, .1); --sel: color-mix(in srgb, var(--accent) 30%, transparent); --bubble: #3a3a3c;
  --glass: rgba(40, 40, 44, .5); --glass-strong: rgba(36, 36, 40, .88);
  --shadow: 0 22px 70px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body { font: 14px/1.5 var(--font); color: var(--text); background: #1b2a4e; -webkit-font-smoothing: antialiased; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: default; }
a { color: var(--accent); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }

/* ---------- Wallpaper ---------- */
#wallpaper { position: fixed; inset: 0; background-size: cover; transition: background .6s; }
#skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; fill: rgba(10, 10, 25, .55); }

/* ---------- Menu bar ---------- */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--mb-h); z-index: 9500;
  display: flex; justify-content: space-between; align-items: center; padding: 0 8px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  color: var(--text); font-size: 13.5px;
}
.mb-left, .mb-right { display: flex; align-items: center; height: 100%; }
.mb-item { height: 22px; padding: 0 9px; border-radius: 5px; display: flex; align-items: center; white-space: nowrap; }
.mb-item:hover, .mb-item.open { background: rgba(127, 127, 127, .25); }
.mb-bold { font-weight: 700; }
.mb-icon { padding: 0 7px; display: flex; align-items: center; }
.mb-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.logo-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--text); color: var(--win); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Drop-down menu ---------- */
.menu {
  position: fixed; z-index: 9600; min-width: 220px; padding: 5px;
  background: var(--glass-strong); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: 8px; box-shadow: var(--shadow); font-size: 13.5px;
}
.menu button { display: flex; justify-content: space-between; gap: 24px; width: 100%; text-align: left; padding: 3px 10px; border-radius: 4px; }
.menu button:hover { background: var(--accent); color: #fff; }
.menu button .k { opacity: .55; }
.menu button { position: relative; padding-left: 22px; }
.menu button.on::before { content: "✓"; position: absolute; left: 7px; top: 50%; transform: translateY(-50%); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 8px; }

/* ---------- Notification centre ---------- */
.nc {
  position: fixed; z-index: 9400; top: calc(var(--mb-h) + 8px); right: 8px; width: 330px; max-height: calc(100% - 120px);
  overflow: auto; display: grid; gap: 10px; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.widget { background: var(--glass-strong); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 30px rgba(0,0,0,.2); }
.widget h4 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; gap: 2px; }
.cal b { color: var(--muted); font-weight: 600; font-size: 10.5px; }
.cal span.today { background: #ff3b30; color: #fff; border-radius: 50%; font-weight: 700; }
.widget .big { font-size: 22px; font-weight: 700; line-height: 1.2; }
.pill-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30d158; margin-right: 6px; box-shadow: 0 0 0 3px rgba(48,209,88,.25); }

/* ---------- Desktop icons ---------- */
#desk-icons { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.dicon { position: absolute; pointer-events: auto; touch-action: none; }
.dicon.dragging { opacity: .75; z-index: 2; }
.dicon { width: 88px; padding: 6px 4px; border-radius: 6px; display: grid; justify-items: center; gap: 4px; text-align: center; color: #fff; font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.dicon svg { width: 54px; height: 54px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.dicon.sel { background: rgba(255,255,255,.18); }
.dicon.sel span { background: var(--accent); border-radius: 4px; padding: 0 4px; text-shadow: none; }

/* ---------- App icons ---------- */
.appicon { --s: 48px; width: var(--s); height: var(--s); display: grid; place-items: center; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.28)); }
.appicon svg, .appicon img { width: 100%; height: 100%; border-radius: 22.5%; object-fit: cover; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 9000;
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.25);
}
.dock-item { position: relative; display: grid; justify-items: center; transition: transform .18s ease; }
.dock { height: calc(var(--dock-s, 50px) + 20px); }
.dock .appicon { transition: width .12s ease-out, height .12s ease-out; }
.dock-item.bounce .appicon { animation: bounce .9s ease; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 20% { transform: translateY(-24px); } 40% { transform: translateY(0); } 60% { transform: translateY(-12px); } 80% { transform: translateY(0); } }
.logo-img { width: 18px; height: 18px; object-fit: contain; display: block; }
.dock-item .tip { position: absolute; bottom: calc(100% + 12px); padding: 3px 10px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; background: var(--glass-strong); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock-item:hover .tip { opacity: 1; }
.dock-item .run { width: 4px; height: 4px; border-radius: 50%; background: var(--text); margin-top: 3px; opacity: 0; }
.dock-item.running .run { opacity: .8; }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 2px 10px; background: rgba(127,127,127,.4); }

/* ---------- Windows ---------- */
.window {
  position: absolute; display: flex; flex-direction: column; min-width: 320px; min-height: 220px;
  background: var(--win); border-radius: 11px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s ease, opacity .25s ease; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.window.minimized { transform: translateY(60vh) scale(.1); opacity: 0; pointer-events: none; }
.window.maxed { left: 0 !important; top: var(--mb-h) !important; width: 100% !important; height: calc(100% - var(--mb-h) - 76px) !important; border-radius: 0; }
.window:not(.active) .titlebar { opacity: .75; }
.titlebar { height: 38px; flex: none; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: var(--bar); border-bottom: 1px solid var(--line); position: relative; cursor: default; }
.wtitle { position: absolute; left: 80px; right: 80px; text-align: center; font-weight: 600; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.lights { display: flex; gap: 8px; z-index: 1; }
.l { width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; line-height: 1; color: transparent; font-weight: 700; }
.l.close { background: #ff5f57; } .l.min { background: #febc2e; } .l.max { background: #28c840; }
.lights:hover .l { color: rgba(0,0,0,.55); }
.window:not(.active) .l { background: rgba(127,127,127,.35); }
.back { display: none; color: var(--accent); font-size: 16px; font-weight: 500; z-index: 1; }
.wbody { flex: 1; min-height: 0; overflow: auto; user-select: text; }
.resizer { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }

/* ---------- Shared app layout ---------- */
.split { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.side { background: var(--side); border-right: 1px solid var(--line); overflow: auto; padding: 10px 8px; user-select: none; }
.side h5 { font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 8px 4px; }
.side .row { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .row small { display: block; color: var(--muted); font-size: 11.5px; }
.side .row.active { background: var(--sel); }
.main { overflow: auto; position: relative; }
.mobile-back { display: none; }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--win); z-index: 1; }
.btn { padding: 5px 12px; border-radius: 7px; background: var(--bubble); font-size: 13px; }
.btn.blue { background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.btn.on { background: var(--accent); color: #fff; }

/* Notes */
.note { padding: 28px 36px 60px; max-width: 720px; font-size: 15px; line-height: 1.65; }
.note .stamp { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.note h1 { font-size: 26px; line-height: 1.2; margin-bottom: 14px; }
.note h2 { font-size: 17px; margin: 22px 0 6px; }
.note p { margin-bottom: 12px; }
.note ul { padding-left: 22px; margin-bottom: 12px; }
.note li { margin-bottom: 6px; }
.note code { font-family: var(--mono); font-size: 13px; background: var(--bubble); padding: 1px 6px; border-radius: 5px; }
.notes-side .row { border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px; }
.notes-side .row.active { border-radius: 7px; background: #ffd60a55; }

/* Finder */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 18px; }
.fitem { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 8px; text-align: center; font-size: 12.5px; }
.fitem svg, .fitem .appicon { width: 58px; height: 58px; }
.fitem.sel { background: var(--sel); }
.fitem span { overflow-wrap: anywhere; }

/* Doc (TextEdit) */
.doc { padding: 0 0 40px; font-size: 15px; line-height: 1.65; }
.doc .banner { height: 120px; display: flex; align-items: flex-end; padding: 18px 28px; color: #fff; }
.doc .banner .big { font-size: 34px; font-weight: 800; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.doc .inner { padding: 22px 28px; }
.doc h1 { font-size: 22px; line-height: 1.25; }
.doc .meta { color: var(--muted); margin: 4px 0 16px; }
.doc ul { padding-left: 20px; } .doc li { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.chips span { background: var(--bubble); padding: 3px 11px; border-radius: 99px; font-size: 13px; }

/* Messages */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { text-align: center; padding: 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chat-head .avatar { margin: 0 auto 4px; }
.chat-log { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bub { max-width: 78%; padding: 8px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; animation: pop .2s ease; }
.bub.them { background: var(--bubble); align-self: flex-start; border-bottom-left-radius: 5px; }
.bub.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bub.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.read { align-self: flex-end; font-size: 11px; color: var(--muted); margin: -2px 4px 4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.quick button { border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; }
.quick button:hover { background: var(--accent); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; outline: none; }
.chat-input input:focus { border-color: var(--accent); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff9a5a, #e2483d); color: #fff; display: grid; place-items: center; font-weight: 700; background-size: cover; background-position: center; }
.avatar.big { width: 96px; height: 96px; font-size: 34px; }
.contact-row { display: flex; gap: 10px; align-items: center; }

/* Photos */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; padding: 4px; }
.tile { aspect-ratio: 1; border-radius: 4px; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; transition: filter .15s; }
.tile:hover { filter: brightness(1.1); }
.tile .big { font-size: 24px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tile small { opacity: .9; font-weight: 600; }
.viewer { position: absolute; inset: 0; background: var(--win); display: flex; flex-direction: column; z-index: 2; animation: pop .18s ease; }
.vtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.vscroll { flex: 1; overflow: auto; }

/* Project page (Photos & Finder) */
.project { font-size: 15px; line-height: 1.65; }
.pbanner { min-height: 230px; display: flex; align-items: flex-end; padding: 26px 30px; color: #fff; background-size: cover; background-position: center; }
.pbanner h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.05; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); margin: 6px 0 4px; }
.pbanner p { opacity: .92; font-weight: 500; }
.ptag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); padding: 3px 10px; border-radius: 99px; }
.pbody { padding: 24px 30px 36px; max-width: 760px; }
.prole { font-weight: 600; margin-bottom: 18px; }
.prole span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pstat { background: var(--side); border-radius: 12px; padding: 14px 16px; }
.pstat b { display: block; font-size: 26px; line-height: 1.1; }
.pstat span { color: var(--muted); font-size: 13px; }
.plead { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.pdetails p { margin-bottom: 12px; } .pdetails ul { padding-left: 20px; margin-bottom: 12px; } .pdetails li { margin-bottom: 6px; }
.pdetails i { color: var(--muted); }
.project h3 { margin: 22px 0 10px; font-size: 15px; }
.pgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pgallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.pactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pactions .btn { padding: 8px 16px; }
.pactions a.btn:hover { text-decoration: none; }

/* Photos: tabs, event photos, lightbox */
.phead { position: sticky; top: 0; z-index: 1; background: var(--win); border-bottom: 1px solid var(--line); }
.ptabs { display: flex; justify-content: center; padding: 10px 14px 0; }
.phead .toolbar { position: static; border-bottom: 0; overflow-x: auto; }
.phead .toolbar .btn { white-space: nowrap; }
.pmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; }
.egrid { padding: 4px 14px 24px; }
.ehead { font-size: 15px; margin: 18px 0 8px; }
.ehead small { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.ephotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.ephoto { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--side); cursor: pointer; }
.ephoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ephoto:hover img { transform: scale(1.04); }
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 8px 0 4px; }
.empty code { font-family: var(--mono); font-size: 12.5px; background: var(--bubble); padding: 1px 6px; border-radius: 5px; }
.lightbox { background: #000; color: #fff; }
.lightbox .vtop { border-color: #333; color: #aaa; }
.lightbox .btn { background: rgba(255,255,255,.15); color: #fff; }
.lbimg { flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; }
.lbimg img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lbcap { padding: 0 18px 16px; }
.lbcap p { opacity: .8; margin-top: 2px; }

/* Messages (iMessage style) */
.imsg.split { grid-template-columns: 300px 1fr; }
.im-side { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.im-tools { display: flex; gap: 8px; align-items: center; }
.im-search { flex: 1; display: flex; align-items: center; gap: 6px; background: var(--bubble); border-radius: 8px; padding: 5px 9px; }
.im-search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.im-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--text); }
.im-compose { padding: 4px; border-radius: 6px; }
.im-compose:hover { background: var(--bubble); }
.im-compose svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.im-pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pin { position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 4px 8px; border-radius: 12px; min-width: 0; }
.pin:hover { background: var(--sel); }
.pin.active { background: var(--accent); color: #fff; }
.pin-av.avatar { width: 58px; height: 58px; font-size: 20px; }
.pin-name { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.pin-peek { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); max-width: 92%; background: var(--win); color: var(--text); font-size: 10.5px; line-height: 1.3; padding: 3px 8px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.18); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 1; }
.pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.udot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }
.pin.active .udot, .im-row.active .udot { background: #fff; }
.udot.off { visibility: hidden; }
.im-list { display: grid; align-content: start; }
.im-row { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 4px; border-radius: 10px; text-align: left; min-width: 0; }
.im-row:hover { background: var(--sel); }
.im-row.active { background: var(--accent); color: #fff; }
.im-row.active p, .im-row.active small { color: rgba(255,255,255,.85); }
.im-row-txt { flex: 1; min-width: 0; }
.im-row-top { display: flex; justify-content: space-between; gap: 6px; }
.im-row-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-row-top small { color: var(--muted); font-size: 12px; flex: none; }
.im-row p { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.im-none { color: var(--muted); text-align: center; padding: 20px; }
.im-main { display: flex; flex-direction: column; min-height: 0; }
.im-head { display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.im-head .mobile-back { padding: 0 8px 0 0; font-size: 26px; line-height: 1; }
.im-to { color: var(--muted); }
.im-main .chat-log { padding: 14px 22px; gap: 2px; }
.im-stamp { text-align: center; font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.mrow { position: relative; display: flex; flex-direction: column; }
.mrow.me { align-items: flex-end; }
.mrow.them { align-items: flex-start; }
.mrow.reacted { margin-top: 14px; }
.mrow .bub { position: relative; cursor: pointer; margin-top: 2px; max-width: 72%; }
.sender { font-size: 11px; color: var(--muted); margin: 8px 0 1px 12px; }
.tb-badge { position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bubble); color: var(--muted); border: 2px solid var(--win); }
.bub.me .tb-badge { left: -18px; }
.bub.them .tb-badge { right: -18px; }
.tb-badge.me { background: var(--accent); color: #fff; }
.tb-badge svg, .tapbar svg { width: 15px; height: 15px; }
.tb-haha { font-size: 8px; font-weight: 800; line-height: .95; text-align: center; letter-spacing: .02em; }
.tb-txt { font-weight: 800; font-size: 14px; line-height: 1; }
.tapbar { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 3; display: flex; gap: 2px; padding: 5px 8px; border-radius: 99px; background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: pop .15s ease; }
.tapbar.right { left: auto; right: 0; }
.tapbar.below { bottom: auto; top: calc(100% + 4px); }
.tapbar button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tapbar button:hover { background: var(--bubble); color: var(--text); }
.tapbar button.on { background: var(--accent); color: #fff; }
.im-input { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.im-input input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; outline: none; }
.im-input input:focus { border-color: var(--accent); }
.im-emoji { font-size: 21px; color: var(--muted); padding: 0 2px; }
.im-send { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; flex: none; }
.emoji-pop { position: absolute; bottom: calc(100% + 6px); right: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow); z-index: 3; }
.emoji-pop button { font-size: 20px; width: 34px; height: 34px; border-radius: 8px; }
.emoji-pop button:hover { background: var(--bubble); }
.dock-item .badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.dock-item .appicon { transition: width .12s ease-out, height .12s ease-out, transform .15s ease; }
.dock-item.drop .appicon { transform: scale(1.25) translateY(-6px); }

/* Calendar */
.cal-app { display: flex; flex-direction: column; height: 100%; }
.cal-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ck { background: var(--side); border-radius: 12px; padding: 10px 14px; display: grid; }
.ck small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ck b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ck span { color: var(--muted); font-size: 12.5px; }
.cal-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 260px; }
.cal-month { display: flex; flex-direction: column; min-height: 0; padding: 10px 14px 14px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.cal-nav h2 { font-size: 22px; font-weight: 400; }
.cal-nav h2 b { font-weight: 700; }
.cal-btns { display: flex; gap: 4px; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 0; }
.cal-wd { font-size: 11px; color: var(--muted); text-align: right; padding: 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3px 4px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; overflow: hidden; min-height: 44px; min-width: 0; }
.cal-cell:hover { background: var(--side); }
.cal-cell.out { color: var(--muted); opacity: .55; }
.cal-num { align-self: flex-end; font-size: 12.5px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.cal-cell.today .cal-num { background: #ff3b30; color: #fff; font-weight: 700; }
.cal-cell.sel { background: var(--sel); }
.cal-chip { font-size: 10.5px; padding: 0 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(10,132,255,.15); color: var(--accent); }
.cal-chip.holiday { background: rgba(48,209,88,.16); color: #1e9e48; }
.cal-chip.mine { background: rgba(255,159,10,.18); color: #c46f00; }
.cal-more { font-size: 10px; color: var(--muted); }
.cal-day { border-left: 1px solid var(--line); background: var(--side); padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.cal-day h3 { font-size: 15px; }
.cal-events { display: grid; gap: 6px; }
.cal-ev { display: flex; gap: 10px; align-items: flex-start; background: var(--win); border-radius: 8px; padding: 8px 10px; border-left: 3px solid var(--accent); }
.cal-ev.holiday { border-left-color: #30d158; }
.cal-ev.mine { border-left-color: #ff9f0a; }
.cal-ev-time { font-size: 11.5px; color: var(--muted); min-width: 44px; padding-top: 2px; }
.cal-ev div { flex: 1; min-width: 0; }
.cal-ev p { font-size: 12.5px; color: var(--muted); }
.cal-del { color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.cal-del:hover { color: #ff3b30; }
.cal-empty, .cal-hint { color: var(--muted); font-size: 12.5px; }
.cal-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.cal-add input { font: inherit; color: var(--text); background: var(--win); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; min-width: 0; }
.cal-add input[name="t"] { grid-column: 1 / -1; }

/* Trash */
.trash-hint { color: var(--muted); font-size: 12px; text-align: center; padding: 0 0 16px; }
.fthumb { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.img-view { display: grid; place-items: center; height: 100%; background: #1e1e1e; padding: 10px; }
.img-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t-info { color: var(--muted); font-size: 12.5px; }

/* System Settings */
.sys.split { grid-template-columns: 250px 1fr; }
.sys-side { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.sys-side .im-search { flex: none; }
.sys-account { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; min-width: 0; }
.sys-account .avatar { width: 46px; height: 46px; font-size: 16px; flex: none; }
.sys-account b { display: block; font-size: 13.5px; }
.sys-account small { color: var(--muted); font-size: 11.5px; }
.sys-account:hover, .sys-row:hover { background: rgba(127,127,127,.12); }
.sys-account.active, .sys-row.active { background: rgba(127,127,127,.22); }
.sys-nav { display: grid; gap: 2px; }
.sys-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.set-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.set-ic svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.set-ic.big { width: 56px; height: 56px; border-radius: 14px; }
.set-ic.big svg { width: 34px; height: 34px; }
.sys-main { display: flex; flex-direction: column; overflow: hidden; }
.sys-head { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sys-arrow { width: 28px; height: 28px; border-radius: 6px; font-size: 22px; line-height: 1; }
.sys-arrow:disabled { opacity: .3; }
.sys-arrow:not(:disabled):hover { background: var(--bubble); }
.sys-title { margin-left: 6px; font-size: 14px; }
.sys-pane { flex: 1; overflow: auto; padding: 18px 22px 30px; }
.sys-hero { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sys-hero-txt { flex: 1; }
.sys-hero-txt p { color: var(--muted); font-size: 13px; }
.sys-center { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sys-center h2 { font-size: 18px; margin-top: 8px; }
.sys-center p { color: var(--muted); font-size: 13px; }
.set-h { font-size: 13px; margin: 18px 0 6px; color: var(--muted); font-weight: 600; }
.set-right { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.set-right svg, .dev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ok-dot { color: #30d158; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ok-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.set-row.as-btn { width: 100%; text-align: left; }
.set-row.sub { font-size: 13px; color: var(--muted); padding: 6px 0; }
.set-note { color: var(--muted); font-size: 12.5px; margin: 10px 0; }
.set-off { color: var(--muted); text-align: center; padding: 30px 0; }
.dev { display: flex; align-items: center; gap: 14px; color: var(--muted); min-width: 0; }
.dev svg { width: 24px; height: 24px; }
.dev b { display: block; color: var(--text); font-weight: 500; font-size: 13.5px; }
.dev small { font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.batt { display: inline-block; width: 22px; height: 10px; border: 1.3px solid currentColor; border-radius: 3px; padding: 1px; }
.batt i { display: block; height: 100%; border-radius: 1px; }
.muted { color: var(--muted); }
.looks { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.look { display: grid; justify-items: center; gap: 6px; font-size: 12px; padding: 6px; border-radius: 10px; border: 2px solid transparent; }
.look.on { border-color: var(--accent); }
.look-pic { width: 96px; height: 62px; border-radius: 7px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.look-pic.light { background: #e9e9ee; }
.look-pic.dark { background: #1c1c1e; }
.look-pic.auto { background: linear-gradient(90deg, #e9e9ee 50%, #1c1c1e 50%); }
.look-pic i { position: absolute; left: 10px; right: 10px; top: 9px; bottom: 16px; border-radius: 4px; }
.look-pic.light i { background: #fff; }
.look-pic.dark i { background: #3a3a3c; }
.look-pic.auto i { background: linear-gradient(90deg, #fff 50%, #3a3a3c 50%); }
.look-pic i::before { content: ""; position: absolute; top: 4px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: #ff5f57; box-shadow: 6px 0 #febc2e, 12px 0 #28c840; }
.set-row.top { align-items: flex-start; padding-top: 14px; }
.accents { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.accent { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.accent.on { outline: 2px solid var(--text); outline-offset: 2px; }
.wall-now { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wall-big { width: 200px; aspect-ratio: 16/10; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.sys input[type=range] { width: 180px; accent-color: var(--accent); }
.sys-actions { margin-top: 18px; text-align: center; }
.mb-icon.off svg { opacity: .35; }

/* Photos (Mac style) */
.ph.split { grid-template-columns: 200px 1fr; }
.ph-side { padding: 10px 8px; }
.ph-side h5 { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; margin-top: 8px; }
.ph-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border-radius: 7px; font-size: 13.5px; min-width: 0; }
.ph-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.ph-row:hover { background: rgba(127,127,127,.12); }
.ph-row.active { background: rgba(127,127,127,.22); }
.ph-main { display: flex; flex-direction: column; overflow: hidden; }
.ph-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ph-title { display: grid; flex: 1; min-width: 140px; }
.ph-title b { font-size: 18px; line-height: 1.25; }
.ph-title small { color: var(--muted); font-size: 12px; }
.ph-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph-zoom button { width: 30px; font-size: 16px; }
.ph-body { flex: 1; overflow: auto; padding: 6px 14px 20px; position: relative; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--z, 118px), 1fr)); gap: 3px; }
.ph-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--side); cursor: pointer; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ph-tile:hover img { transform: scale(1.03); }
.ph-fav { position: absolute; left: 6px; bottom: 4px; color: #fff; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ph-month h3 { font-size: 15px; margin: 16px 0 8px; }
.ph-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-top: 10px; }
.ph-year { aspect-ratio: 16/10; border-radius: 14px; background-size: cover; background-position: center; background-color: var(--side); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.ph-year::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.ph-year b, .ph-year small { position: relative; }
.ph-year b { font-size: 30px; line-height: 1; }
.ph-filters { position: sticky; top: -6px; margin: 0 -14px 8px; padding: 10px 14px; overflow-x: auto; }
.ph-filters .btn { white-space: nowrap; }
.ph .pgrid { padding: 0; }
.ph-viewer { position: absolute; inset: 0; z-index: 3; background: var(--win); display: flex; flex-direction: column; outline: none; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pv-title { flex: 1; display: grid; min-width: 0; text-align: center; }
.pv-title b { font-size: 14px; }
.pv-title small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-tools { display: flex; gap: 6px; align-items: center; }
.pv-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.pv-btn:hover { background: var(--bubble); }
.pv-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-btn.on { color: #ff375f; }
.pv-btn.on svg { fill: currentColor; }
.ph-viewer.info-on [data-a="info"] { color: var(--accent); }
.pv-wrap { flex: 1; min-height: 0; display: flex; position: relative; }
.pv-stage { flex: 1; min-width: 0; position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.pv-stage img { display: block; border-radius: 2px; box-shadow: 0 6px 30px rgba(0,0,0,.22); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 22px; opacity: 0; transition: opacity .15s; }
.pv-nav.prev { left: 10px; }
.pv-nav.next { right: 10px; }
.pv-stage:hover .pv-nav { opacity: 1; }
.pv-info { width: 0; overflow: hidden; background: var(--side); transition: width .2s; flex: none; }
.ph-viewer.info-on .pv-info { width: 240px; border-left: 1px solid var(--line); padding: 14px; overflow: auto; }
.pv-info h4 { margin-bottom: 4px; }
.pv-info dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.pv-info dd { font-size: 13px; overflow-wrap: anywhere; }
.pv-toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: 13px; z-index: 2; }

/* Terminal */
.term { background: #161618; color: #e6e6e6; font: 13.5px/1.55 var(--mono); padding: 10px 12px; min-height: 100%; }
.term .ln { white-space: pre-wrap; word-break: break-word; }
.term .p { color: #30d158; } .term .c { color: #64d2ff; } .term .y { color: #ffd60a; } .term .d { color: #8e8e93; }
.term input { background: none; border: 0; outline: none; color: inherit; font: inherit; flex: 1; }
.term .inrow { display: flex; gap: 8px; }

/* Preview */
.pdf { width: 100%; height: calc(100% - 52px); border: 0; background: #888; }

/* Settings */
.set-pane { padding: 24px 28px; }
.set-pane h2 { font-size: 20px; margin-bottom: 16px; }
.set-group { background: var(--side); border-radius: 10px; padding: 4px 14px; margin-bottom: 16px; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.set-row:last-child { border-bottom: 0; }
.seg { display: flex; background: var(--bubble); border-radius: 8px; padding: 2px; }
.seg button { padding: 4px 12px; border-radius: 6px; font-size: 13px; }
.seg button.on { background: var(--win); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 32px 12px; }
.wall { aspect-ratio: 16/10; border-radius: 8px; border: 3px solid transparent; background-size: cover; position: relative; }
.wall.on { border-color: var(--accent); }
.wall span { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: 12px; color: var(--muted); }
.walls { margin-bottom: 28px; }
.toggle { width: 40px; height: 24px; border-radius: 99px; background: var(--bubble); position: relative; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.toggle.on { background: #30d158; } .toggle.on::after { transform: translateX(16px); }

/* About this site */
.about-box { text-align: center; padding: 26px; display: grid; justify-items: center; gap: 6px; }
.about-box h2 { font-size: 20px; margin-top: 8px; }
.about-box p { color: var(--muted); }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 9900; }
.lock { display: flex; flex-direction: column; align-items: center; color: #fff; padding-top: 12vh; backdrop-filter: blur(28px) brightness(.8); -webkit-backdrop-filter: blur(28px) brightness(.8); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.lock-time { font-size: clamp(64px, 12vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.lock-date { font-size: 20px; font-weight: 500; margin-top: 6px; opacity: .9; }
.lock-user { margin-top: auto; margin-bottom: 14vh; display: grid; justify-items: center; gap: 10px; }
.lock-name { font-size: 18px; font-weight: 600; }
.lock-btn { color: #fff; background: rgba(255,255,255,.2); padding: 8px 20px; border-radius: 99px; font-weight: 500; cursor: pointer; backdrop-filter: blur(10px); }
.lock-btn:hover { background: rgba(255,255,255,.32); }
.sleep { background: #000; cursor: pointer; }
.boot { background: #000; display: grid; place-content: center; justify-items: center; gap: 40px; color: #fff; cursor: pointer; }
.boot-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #000; font-size: 44px; font-weight: 800; display: grid; place-items: center; }
.boot-bar { width: 200px; height: 5px; border-radius: 99px; background: #333; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: #fff; }
.boot.run .boot-bar span { animation: load 1.6s ease forwards; }
@keyframes load { to { width: 100%; } }
.boot-hint { font-size: 13px; color: #888; min-height: 1em; }

#home { display: none; }

/* =====================================================================
   PHONE LAYOUT (screens narrower than 760px)
   Apps open full-screen, like on a phone.
   ===================================================================== */
@media (max-width: 760px) {
  .mb-hide, #mb-app { display: none; }
  #desk-icons { display: none; }
  #home { display: block; position: fixed; top: var(--mb-h); left: 0; right: 0; bottom: 96px; overflow: auto; padding: 18px 16px; }
  .home-card { background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 22px; padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
  .home-card h3 { font-size: 17px; line-height: 1.2; } .home-card p { font-size: 12.5px; color: var(--muted); }
  .home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 8px; }
  .home-app { display: grid; justify-items: center; gap: 6px; color: #fff; font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .home-app .appicon { --s: 60px; }
  .dock { height: auto; z-index: 5; width: calc(100% - 16px); justify-content: space-around; bottom: 8px; border-radius: 28px; padding: 10px; }
  .dock .dock-item:not(.mobile), .dock .dock-sep { display: none; }
  .dock-item .appicon { --s: 56px !important; }
  .pbanner { min-height: 190px; padding: 20px; } .pbody { padding: 20px 20px 30px; }
  .dock-item:hover { transform: none; } .dock-item .tip, .dock-item .run { display: none; }
  .window, .window.maxed { position: fixed; left: 0 !important; top: var(--mb-h) !important; width: 100% !important; height: calc(100% - var(--mb-h)) !important; border-radius: 0; min-width: 0; }
  .window.minimized { transform: none; }
  .lights, .resizer { display: none; }
  .back { display: block; }
  .wtitle { left: 90px; right: 90px; }
  .split { grid-template-columns: 1fr; }
  .split .main { display: none; }
  .split.show-main .side { display: none; }
  .split.show-main .main { display: block; }
  .mobile-back { display: block; padding: 10px 14px; color: var(--accent); font-size: 15px; }
  .chat-only .side { display: none; } .chat-only .main { display: block; }
  .note { padding: 10px 20px 40px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .imsg.split { grid-template-columns: 1fr; }
  .sys.split, .ph.split { grid-template-columns: 1fr; }
  .sys-arrow { display: none; }
  .sys-pane { padding: 14px 16px 30px; }
  .set-row { flex-wrap: wrap; }
  .wall-big { width: 120px; }
  .pv-nav { opacity: 1; }
  .ph-viewer.info-on .pv-info { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 55%; border-left: 0; border-top: 1px solid var(--line); }
  .pv-tools .btn { padding: 5px 8px; font-size: 12px; }
  .ph-head { padding: 8px 12px; }
  .cal-app { height: auto; min-height: 100%; }
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-grid { min-height: 360px; }
  .cal-day { border-left: 0; border-top: 1px solid var(--line); }
  .ck b { font-size: 19px; }
  .ephotos { grid-template-columns: repeat(3, 1fr); }
  .nc { left: 8px; right: 8px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   FINDER (list view) + WI-FI / BATTERY / CONTROL CENTRE MENUS
   ===================================================================== */
.fd { display: grid; grid-template-columns: 190px 1fr; height: 100%; }
.fd-side { background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px; overflow: auto; }
.fd-side h5 { font-size: 11px; color: var(--muted); font-weight: 600; padding: 6px 10px 4px; }
.fd-place { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border-radius: 7px; text-align: left; font-size: 13.5px; }
.fd-place svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-place:hover { background: rgba(127,127,127,.12); }
.fd-place.active { background: rgba(127,127,127,.2); color: var(--accent); }
.fd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fd-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.fd-nav { width: 28px; height: 28px; border-radius: 6px; font-size: 22px; line-height: 1; }
.fd-nav:disabled { opacity: .3; }
.fd-nav:not(:disabled):hover { background: var(--bubble); }
.fd-title { flex: 1; text-align: center; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-views button { display: grid; place-items: center; padding: 4px 8px; }
.fd-views svg, .fd-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-search { display: flex; align-items: center; gap: 6px; background: var(--bubble); border-radius: 7px; padding: 4px 8px; width: 160px; color: var(--muted); }
.fd-search input { border: 0; background: none; outline: none; font: inherit; color: var(--text); width: 100%; min-width: 0; }
.fd-content { flex: 1; overflow: auto; position: relative; outline: none; }
.fd-list { min-width: 520px; }
.fd-head, .fd-list .fd-row { display: grid; grid-template-columns: minmax(200px, 2fr) 1fr 1.3fr; align-items: center; gap: 12px; }
.fd-head { position: sticky; top: 0; background: var(--win); border-bottom: 1px solid var(--line); padding: 4px 14px; z-index: 1; }
.fd-head button { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; }
.fd-sort { font-style: normal; font-size: 8px; margin-left: 5px; }
.fd-list .fd-row { width: 100%; text-align: left; padding: 5px 14px; font-size: 13.5px; }
.fd-list .fd-row:nth-of-type(even) { background: rgba(127,127,127,.06); }
.fd-list .fd-row.sel { background: var(--accent); color: #fff; }
.fd-list .fd-row.sel .fd-kind, .fd-list .fd-row.sel .fd-date { color: rgba(255,255,255,.85); }
.fd-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fd-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-kind, .fd-date { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi { display: inline-grid; place-items: center; width: var(--fi); height: var(--fi); flex: none; }
.fi svg { width: var(--fi) !important; height: var(--fi) !important; }
.fd-trashbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--win); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fd-trashbar span { margin-right: auto; }

.sm-pop { position: fixed; z-index: 9600; width: 300px; max-width: calc(100vw - 16px); padding: 8px; border-radius: 14px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); box-shadow: var(--shadow); font-size: 13.5px; animation: pop .15s ease; }
.sm-pop.cc { width: 370px; padding: 10px; }
.sm-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 7px; text-align: left; min-height: 34px; }
.sm-btn:hover { background: rgba(127,127,127,.18); }
.sm-head { justify-content: space-between; }
.sm-head b { font-size: 14px; }
.sm-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.sm-label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 8px; }
.sm-small { font-size: 12px; color: var(--muted); padding: 2px 8px 4px; }
.sm-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-muted { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.sm-muted svg, .sm-dot svg, .sm-batt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sm-batt svg { width: 20px; }
.sm-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.sm-dot.green { background: #30d158; }
.sm-dot.blue { background: var(--accent); }
.sm-dot.grey { background: rgba(127,127,127,.4); }
.sm-chev { color: var(--muted); font-size: 18px; transition: transform .15s; }
.sm-chev.open { transform: rotate(90deg); }
.sm-sub { padding-left: 14px; }
.sm-note { color: var(--muted); font-size: 12px; padding: 4px 8px; }
.sm-check { color: var(--accent); font-weight: 700; }
.sm-batt { color: var(--muted); display: grid; }
.sm-pop .toggle { flex: none; }
.sm-pop .toggle.on { background: var(--accent); }

.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tile { background: var(--win); border-radius: 14px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-width: 0; }
.cc-col { display: grid; gap: 10px; min-width: 0; }
.cc-conn { display: grid; gap: 4px; }
.cc-conn-row, .cc-focus { display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px; border-radius: 10px; min-width: 0; width: 100%; }
.cc-conn-row:hover { background: rgba(127,127,127,.12); }
.cc-focus { padding: 10px; }
.cc-txt { min-width: 0; }
.cc-txt b { display: block; font-size: 13px; }
.cc-txt small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,127,.22); color: var(--text); flex: none; }
.cc-ic.on { background: var(--accent); color: #fff; }
.cc-focus.on .cc-ic { background: #5e5ce6; color: #fff; }
.cc-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cc-music { display: flex; gap: 10px; align-items: center; }
.cc-cover { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #ff9a5a, #8a3ffc); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.cc-music-txt { min-width: 0; flex: 1; }
.cc-music-txt b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-music-txt small { display: block; color: var(--muted); font-size: 11.5px; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ctrls { display: flex; justify-content: space-between; margin-top: 4px; }
.cc-ctrls button { width: 26px; height: 22px; display: grid; place-items: center; border-radius: 5px; }
.cc-ctrls button:disabled { opacity: .35; }
.cc-ctrls svg { width: 13px; height: 13px; fill: currentColor; }
.cc-wide { grid-column: 1 / -1; }
.cc-wide b { font-size: 13px; }
.cc-slider { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); }
.cc-slider svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cc-slider input { flex: 1; min-width: 0; accent-color: var(--accent); }

#dim { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 9990; transition: opacity .2s; }
.low-power *, .low-power *::before, .low-power *::after { animation: none !important; transition: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img { filter: invert(1); } }
:root[data-theme="dark"] .logo-img { filter: invert(1); }

@media (max-width: 760px) {
  .fd { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .fd-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; }
  .fd-side h5 { display: none; }
  .fd-places { display: flex; gap: 4px; overflow-x: auto; }
  .fd-place { width: auto; white-space: nowrap; }
  .fd-search { width: 110px; }
  .fd-views { display: none; }
  .fd-list { min-width: 0; }
  .fd-head, .fd-list .fd-row { grid-template-columns: 1fr auto; }
  .fd-head button:nth-child(2), .fd-kind { display: none; }
  .fd-date { font-size: 11.5px; }
  .sm-pop.cc { width: calc(100vw - 16px); }
}

/* =====================================================================
   NOTES (Apple Notes style) + PHOTOS MONTHS + RECRUITER QUICK VIEW
   ===================================================================== */
.nt.split { grid-template-columns: 290px 1fr; }
.nt-side { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.nt-tools { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.nt-count { font-size: 12px; color: var(--muted); }
.nt-btn { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); flex: none; }
.nt-btn:hover { background: var(--bubble); color: var(--text); }
.nt-btn svg, .nt-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nt-search { display: flex; align-items: center; gap: 6px; background: var(--win); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--muted); flex: none; }
.nt-search svg { width: 15px; height: 15px; }
.nt-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--text); }
.nt-list { flex: 1; overflow: auto; }
.nt-list h5 { font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 8px 4px; }
.nt-row { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; position: relative; }
.nt-row + .nt-row::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; border-top: 1px solid var(--line); }
.nt-row.active { background: rgba(255, 204, 0, .38); }
.nt-row.active::before, .nt-row.active + .nt-row::before { display: none; }
.nt-row b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-row small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-row small span { color: var(--text); margin-right: 4px; }
.nt-main { background: var(--win); }
.nt-main .note { max-width: 780px; margin: 0 auto; }
.nt-main .note a { color: #c98500; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nt-main .note a { color: #ffc94d; } }
:root[data-theme="dark"] .nt-main .note a { color: #ffc94d; }
.nt-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.nt-private { flex: 1; font-size: 12px; color: var(--muted); }
.nt-edit { width: 100%; min-height: 55vh; border: 0; outline: none; resize: none; background: none; color: var(--text); font: 15px/1.65 var(--font); }

.ph-month h3 { position: sticky; top: -6px; z-index: 1; background: var(--win); padding: 12px 0 8px; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ph-month h3 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }

.hire { padding: 24px 28px 30px; font-size: 14.5px; line-height: 1.55; }
.hire-top { display: flex; gap: 18px; align-items: center; }
.hire-top .avatar.big { width: 84px; height: 84px; flex: none; }
.hire-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hire h1 { font-size: 24px; line-height: 1.15; margin: 2px 0; }
.hire-title { color: var(--muted); }
.hire-status { margin-top: 6px; font-weight: 600; font-size: 13px; }
.hire-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.hire-actions .btn { padding: 8px 14px; font-weight: 500; }
.hire-actions a.btn:hover { text-decoration: none; }
.hire-lead { font-size: 15.5px; font-weight: 500; margin-bottom: 14px; }
.hire-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.hire-facts div { background: var(--side); border-radius: 12px; padding: 12px 14px; }
.hire-facts b { display: block; font-size: 22px; line-height: 1.1; }
.hire-facts span { font-size: 12px; color: var(--muted); }
.hire h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.hire ul { padding-left: 20px; }
.hire li { margin-bottom: 4px; }
.hire .chips { margin: 0; }
.hire-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.hire-details div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: 13.5px; }
.hire-details span { color: var(--muted); }
.hire-details b { font-weight: 500; text-align: right; }
.hire-more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.hire-more span { color: var(--muted); }
.mb-hire { font-weight: 600; color: var(--accent); }
.lock-hire { background: rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 760px) {
  .nt.split { grid-template-columns: 1fr; }
  .nt-main > .nt-back { padding: 10px 14px; }
  .hire { padding: 18px 18px 30px; }
  .hire-top { flex-direction: column; text-align: center; }
  .hire-actions { justify-content: center; }
  .hire-facts { grid-template-columns: repeat(2, 1fr); }
  .home-card { flex-direction: column; align-items: stretch; }
  .home-card-top { display: flex; gap: 14px; align-items: center; }
  .home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .home-actions > * { text-align: center; padding: 9px 6px; border-radius: 12px; background: var(--bubble); color: var(--text); font-size: 13px; font-weight: 600; }
  .home-actions > :first-child { background: var(--accent); color: #fff; }
  .home-actions a:hover { text-decoration: none; }
}

/* =====================================================================
   PHONE: iPhone-style Notes & Photos
   ===================================================================== */
.ios { --ios-bg: #f2f2f7; --ios-card: #ffffff; --ios-text: #000000; --ios-muted: #8a8a8e; --ios-sep: rgba(60,60,67,.2); --ios-yellow: #d99a00;
  position: relative; height: 100%; overflow: hidden; background: var(--ios-bg); color: var(--ios-text); font-family: var(--font); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios { --ios-bg: #000000; --ios-card: #1c1c1e; --ios-text: #ffffff; --ios-muted: #8d8d93; --ios-sep: rgba(84,84,88,.5); --ios-yellow: #ffd60a; } }
:root[data-theme="dark"] .ios { --ios-bg: #000000; --ios-card: #1c1c1e; --ios-text: #ffffff; --ios-muted: #8d8d93; --ios-sep: rgba(84,84,88,.5); --ios-yellow: #ffd60a; }
.window.ios-win .titlebar { display: none; }
.window.ios-win .wbody { overflow: hidden; }
.ios-scroll, .ios-view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ios-scroll { padding: 18px 16px 130px; }
.ios-view { padding: 0 0 130px; }
.ios-large { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.ios-sub { color: var(--ios-muted); font-size: 14px; margin: 3px 0 8px; }
.ios-gh { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.ios-group { background: var(--ios-card); border-radius: 14px; overflow: hidden; }
.ios-row { display: block; width: 100%; text-align: left; padding: 11px 16px; position: relative; color: inherit; }
.ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--ios-sep); }
.ios-row:active { background: rgba(127,127,127,.2); }
.ios-row b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ios-row small { display: block; font-size: 14px; color: var(--ios-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.ios-row small span { color: var(--ios-text); opacity: .7; margin-right: 8px; }
.ios-empty { text-align: center; color: var(--ios-muted); padding: 40px 20px; }
.ios-bottom, .ios-tabbar { position: absolute; left: 14px; right: 14px; bottom: 26px; display: flex; gap: 10px; align-items: center; z-index: 3; }
.ios-tabbar { justify-content: space-between; pointer-events: none; }
.ios-tabbar > * { pointer-events: auto; }
.ios-search, .ios-round, .ios-tabs, .ios-pill-btn { background: color-mix(in srgb, var(--ios-card) 80%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 6px 20px rgba(0,0,0,.18), inset 0 0 0 1px var(--ios-sep); }
.ios-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 99px; color: var(--ios-muted); }
.ios-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font: 17px var(--font); color: var(--ios-text); }
.ios-search { min-width: 0; }
.ios-search.big { margin: 4px 0 14px; box-shadow: inset 0 0 0 1px var(--ios-sep); }
.ios-round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ios-text); }
.ios-notes .ios-round { color: var(--ios-yellow); }
.ios svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ios-homebar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 170px; height: 22px; z-index: 8; }
.ios-homebar::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 5px; border-radius: 99px; background: var(--ios-text); opacity: .85; }
.ios-page { position: absolute; inset: 0; z-index: 4; background: var(--ios-bg); transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.ios-page.in { transform: none; }
.ios-note-page { background: var(--ios-card); }
.ios-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px; flex: none; }
.ios-back { display: inline-flex; align-items: center; gap: 0; font-size: 17px; padding: 6px 4px; color: var(--accent); }
.ios-back svg { width: 24px; height: 24px; }
.ios-notes .ios-back, .ios-icon-btn { color: var(--ios-yellow); }
.ios-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.ios-page-body { flex: 1; overflow-y: auto; padding: 0 16px 60px; }
.ios-page-body.ios-flush { padding: 0 0 60px; }
.ios-pad { padding: 0 16px 10px; }
.ios-note-page .note { padding: 4px 4px 40px; max-width: none; }
.ios-note-page .note a { color: var(--ios-yellow); text-decoration: underline; }
.ios-note-page .nt-edit { min-height: 65vh; }
.ios-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 22px;
  background: linear-gradient(180deg, var(--ios-bg) 0%, color-mix(in srgb, var(--ios-bg) 80%, transparent) 55%, transparent 100%); }
.ios-head-r { display: flex; gap: 8px; padding-top: 4px; }
.ios-pill-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 99px; display: grid; place-items: center; color: var(--ios-text); }
.ios-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 2px; margin-top: -12px; }
.ios-flush .ios-grid { margin-top: 0; }
.ios-ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ios-card); }
.ios-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ios-fav { position: absolute; left: 5px; bottom: 3px; color: #fff; font-style: normal; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ios-count { text-align: center; color: var(--ios-muted); font-size: 14px; padding: 18px 0; }
.ios-sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 21px; font-weight: 700; margin: 4px 16px 10px; }
.ios-sec button { font-size: 15px; font-weight: 500; color: var(--accent); }
.ios-results .ios-sec { margin: 14px 0 8px; }
.ios-results .ios-grid { margin: 0 -16px; }
.ios-albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding: 0 16px 16px; }
.ios-album { text-align: left; color: inherit; min-width: 0; }
.ios-cover { display: flex; align-items: flex-end; aspect-ratio: 1; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--ios-card); overflow: hidden; padding: 10px; color: #fff; }
.ios-cover em { font-style: normal; font-weight: 800; font-size: 18px; line-height: 1.1; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.ios-album b { display: block; font-size: 15px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ios-album small { color: var(--ios-muted); font-size: 13px; }
.ios-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.ios .tile.ios-proj { border-radius: 12px; }
.ios .tile .big { font-size: 20px; }
.ios-project { padding: 0 0 60px; }
.ios-project .pbanner { min-height: 200px; padding: 20px; }
.ios-project .pbody { padding: 18px 16px 30px; }
.ios-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 99px; }
.ios-tabs button { display: grid; justify-items: center; gap: 1px; padding: 6px 18px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--ios-text); }
.ios-tabs button.on { background: rgba(127,127,127,.22); color: var(--accent); }
.ios-tabs svg { width: 22px; height: 22px; }
.ios-menu { position: absolute; top: 66px; right: 14px; z-index: 5; width: 220px; padding: 6px; border-radius: 14px; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow); animation: pop .15s ease; }
.ios-menu > button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 15px; color: var(--ios-text); }
.ios-menu-sep { height: 1px; background: var(--ios-sep); margin: 4px 8px; }
.ios-menu-label { font-size: 12px; color: var(--ios-muted); padding: 6px 12px 4px; }
.ios-menu-cols { display: flex; gap: 6px; padding: 0 8px 6px; }
.ios-menu-cols button { flex: 1; padding: 8px 0; border-radius: 9px; background: rgba(127,127,127,.15); color: var(--ios-text); font-weight: 600; }
.ios-menu-cols button.on { background: var(--accent); color: #fff; }
.ios-viewer { position: absolute; inset: 0; z-index: 7; background: #000; color: #fff; display: flex; flex-direction: column; animation: iosFade .2s ease; }
@keyframes iosFade { from { opacity: 0; } }
.ios-v-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; }
.ios-back.light { color: #fff; }
.ios-v-sp { width: 40px; }
.ios-v-title { text-align: center; display: grid; }
.ios-v-title b { font-size: 15px; }
.ios-v-title small { font-size: 12px; opacity: .7; }
.ios-v-stage { flex: 1; min-height: 0; display: grid; place-items: center; touch-action: pan-y; overflow: hidden; }
.ios-v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ios-v-cap { padding: 8px 18px 0; font-size: 14px; }
.ios-v-cap p { opacity: .8; }
.ios-v-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 36px; }
.ios-v-bar button { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.ios-v-bar button.on { color: #ff375f; }
.ios-v-bar button.on svg { fill: currentColor; }

/* =====================================================================
   SOCIAL LINKS, SPOTLIGHT, HOME BAR + iPhone MESSAGES / SETTINGS / CALENDAR
   ===================================================================== */
.soc-row { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.soc-link { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; color: var(--text); }
.soc-link:hover { text-decoration: none; }
.soc-link:hover .appicon { transform: translateY(-2px); }
.soc-link .appicon { transition: transform .15s; }
.hire-social { margin: 0 0 14px; }
.dock-item.social:hover { text-decoration: none; }
.home-app { position: relative; }
.home-app .badge { position: absolute; top: -5px; right: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; text-shadow: none; }
a.home-app:hover { text-decoration: none; }

/* Spotlight */
#spot { position: fixed; inset: 0; z-index: 9700; animation: iosFade .15s ease; }
#spot.desk { background: rgba(0,0,0,.18); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
#spot.desk .spot-panel { width: min(660px, calc(100vw - 32px)); max-height: 66vh; display: flex; flex-direction: column; border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); box-shadow: var(--shadow); overflow: hidden; }
#spot.desk .spot-cancel { display: none; }
#spot.mob { background: color-mix(in srgb, var(--win) 72%, transparent); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); }
#spot.mob .spot-panel { position: absolute; inset: var(--mb-h) 0 0 0; display: flex; flex-direction: column; }
.spot-top { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.spot-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(127,127,127,.16); color: var(--muted); }
#spot.desk .spot-field { background: none; height: 52px; font-size: 20px; }
.spot-field svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.spot-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font: 17px var(--font); color: var(--text); }
#spot.desk .spot-field input { font-size: 21px; }
.spot-cancel { color: var(--accent); font-size: 16px; }
.spot-results { flex: 1; overflow: auto; padding: 0 14px 30px; }
#spot.desk .spot-results { border-top: 1px solid var(--line); padding: 4px 10px 12px; }
.spot-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 4px 6px; }
.spot-group { background: rgba(127,127,127,.1); border-radius: 14px; overflow: hidden; }
#spot.desk .spot-group { background: none; }
.spot-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; text-align: left; color: var(--text); border-radius: 10px; }
.spot-row:hover, .spot-row:focus { background: var(--sel); text-decoration: none; outline: none; }
.spot-row span { min-width: 0; }
.spot-row b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-row small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-tile { width: 38px; height: 38px; border-radius: 9px; flex: none; background-size: cover; background-position: center; }
.spot-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 8px 0; }
.spot-app { display: grid; justify-items: center; gap: 5px; font-size: 11.5px; color: var(--text); }
.spot-none { text-align: center; color: var(--muted); padding: 30px 10px; }
.m-spot-pill { display: none; }

/* Home bar (phones) */
#m-homebar { display: none; }

@media (max-width: 760px) {
  .window { animation: none; }
  .ios-homebar { display: none !important; }
  body:has(.window) #m-homebar { display: block; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 180px; height: 26px; z-index: 9800; touch-action: none; cursor: grab; }
  #m-homebar i { position: absolute; left: 22px; right: 22px; bottom: 8px; height: 5px; border-radius: 99px; background: var(--text); opacity: .85; }
  body:not(:has(.window)) .m-spot-pill { display: flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: 112px; z-index: 6; padding: 8px 18px; border-radius: 99px;
    color: #fff; font-size: 15px; font-weight: 500; background: rgba(255,255,255,.18); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
  .m-spot-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  #home { bottom: 150px; }
}

/* Messages (iPhone) */
.ios-navrow { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.ios-icon-btn.blue { color: var(--accent); }
.ios-search.inline { margin: 8px 0 14px; height: 38px; border-radius: 12px; box-shadow: none; background: rgba(127,127,127,.16); }
.imm-pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; margin-bottom: 8px; }
.imm-pin { position: relative; display: grid; justify-items: center; gap: 6px; padding-top: 26px; color: inherit; min-width: 0; }
.imm-av.avatar { width: 74px; height: 74px; font-size: 26px; }
.imm-pin-name { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ios-muted); max-width: 100%; }
.imm-peek { position: absolute; top: 0; left: 50%; transform: translateX(-50%); max-width: 100%; padding: 4px 9px; border-radius: 12px; background: var(--ios-card); font-size: 11px; color: var(--ios-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.18); z-index: 1; }
.imm-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: inherit; padding: 10px 0; position: relative; }
.imm-row + .imm-row::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ios-sep); }
.imm-row-av.avatar { width: 52px; height: 52px; font-size: 18px; flex: none; }
.imm-txt { flex: 1; min-width: 0; }
.imm-top { display: flex; justify-content: space-between; gap: 8px; }
.imm-top b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imm-top small { color: var(--ios-muted); font-size: 14px; flex: none; }
.imm-txt p { color: var(--ios-muted); font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imc-page { background: var(--ios-card); }
.ios-msgs { --bubble-them: #e9e9eb; --imc-bg: var(--ios-card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios-msgs { --bubble-them: #26252a; } }
:root[data-theme="dark"] .ios-msgs { --bubble-them: #26252a; }
.imc { display: flex; flex-direction: column; height: 100%; position: relative; }
.imc-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 12px 14px;
  background: linear-gradient(180deg, var(--imc-bg) 55%, color-mix(in srgb, var(--imc-bg) 0%, transparent)); }
.imc-back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ios-text); background: color-mix(in srgb, var(--ios-card) 85%, transparent); box-shadow: 0 2px 10px rgba(0,0,0,.12), inset 0 0 0 1px var(--ios-sep); }
.imc-back svg { width: 22px; height: 22px; }
.imc-who { display: grid; justify-items: center; gap: 0; margin-top: 2px; }
.imc-av.avatar { width: 58px; height: 58px; font-size: 20px; }
.imc-name { margin-top: -8px; padding: 3px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--ios-card) 85%, transparent); box-shadow: 0 1px 6px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.imc-name i { font-style: normal; color: var(--ios-muted); }
.imc-sp { width: 44px; }
.imc-log { flex: 1; overflow-y: auto; padding: 108px 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.imc-stamp { text-align: center; font-size: 12px; color: var(--ios-muted); margin: 6px 0 10px; }
.imc .mrow { position: relative; display: flex; flex-direction: column; }
.imc .mrow.me { align-items: flex-end; }
.imc .mrow.them { align-items: flex-start; }
.imc .bub { position: relative; max-width: 76%; padding: 8px 14px; border-radius: 19px; font-size: 16.5px; line-height: 1.35; margin: 1px 0; }
.imc .bub.them { background: var(--bubble-them); color: var(--ios-text); }
.imc .bub.me { background: #0a84ff; color: #fff; }
.imc .bub.them a { color: #0a84ff; }
.imc .bub.me a { color: #fff; text-decoration: underline; }
.imc .bub.tail { margin-bottom: 6px; }
.imc .bub.tail::before, .imc .bub.tail::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.imc .bub.them.tail::before { left: -7px; width: 20px; background: var(--bubble-them); border-bottom-right-radius: 16px 14px; }
.imc .bub.them.tail::after { left: -10px; width: 10px; background: var(--imc-bg); border-bottom-right-radius: 10px; }
.imc .bub.me.tail::before { right: -7px; width: 20px; background: #0a84ff; border-bottom-left-radius: 16px 14px; }
.imc .bub.me.tail::after { right: -10px; width: 10px; background: var(--imc-bg); border-bottom-left-radius: 10px; }
.imc .bub.typing { display: flex; gap: 4px; padding: 12px 14px; }
.imc .read { font-size: 11px; color: var(--ios-muted); margin: -4px 4px 4px; }
.imc .sender { font-size: 11px; color: var(--ios-muted); margin: 8px 0 1px 14px; }
.imc-quick { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 8px; flex: none; scrollbar-width: none; }
.imc-quick button { flex: none; border: 1px solid #0a84ff; color: #0a84ff; border-radius: 99px; padding: 5px 12px; font-size: 13.5px; white-space: nowrap; }
.imc-input { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 12px 34px; flex: none; }
.imc-plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,127,.16); color: var(--ios-text); flex: none; }
.imc-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 14px; border-radius: 99px; border: 1px solid var(--ios-sep); background: var(--ios-card); }
.imc-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font: 16.5px var(--font); color: var(--ios-text); }
.imc-mic { color: var(--ios-muted); display: grid; padding-right: 6px; }
.imc-send { width: 30px; height: 30px; border-radius: 50%; background: #0a84ff; color: #fff; font-weight: 700; font-size: 17px; flex: none; }
.imc .emoji-pop { bottom: calc(100% + 4px); left: 12px; right: auto; }

/* Settings (iPhone) */
.iset-title { margin-bottom: 14px; }
.ios-set .ios-group, .ios-cal .ios-group { margin-bottom: 18px; }
.iset-cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; text-align: left; color: var(--ios-text); position: relative; font-size: 16.5px; }
a.iset-cell:hover { text-decoration: none; }
.iset-cell + .iset-cell::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--ios-sep); }
.iset-cell.iset-acct + .iset-cell::before, .iset-pbody .iset-cell + .iset-cell::before { left: 14px; }
.iset-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.iset-ic svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iset-label { flex: 1; min-width: 0; }
.iset-label small { display: block; font-size: 13px; color: var(--ios-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iset-val { color: var(--ios-muted); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.iset-val.wrap { white-space: normal; text-align: right; }
.iset-chev { color: var(--ios-muted); font-size: 22px; line-height: 1; opacity: .7; }
.iset-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #ff3b30; color: #fff; font-size: 14px; display: grid; place-items: center; }
.iset-acct { padding: 14px; }
.iset-acct .avatar { width: 64px; height: 64px; font-size: 22px; flex: none; }
.iset-acct b { display: block; font-size: 20px; font-weight: 600; }
.iset-check { color: var(--accent); font-weight: 700; width: 18px; }
.iset-cell.red .iset-label { color: #ff3b30; text-align: center; }
.iset-h { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--ios-muted); margin: 6px 16px 6px; }
.iset-note { font-size: 13px; color: var(--ios-muted); margin: -10px 16px 18px; min-height: 1px; }
.iset-ptitle { margin: 4px 0 16px; }
.iset-hero { text-align: center; display: grid; justify-items: center; gap: 2px; margin-bottom: 20px; }
.iset-hero h2 { font-size: 22px; margin-top: 8px; }
.iset-hero p { color: var(--ios-muted); }
.ios .toggle { width: 51px; height: 31px; flex: none; }
.ios .toggle::after { width: 27px; height: 27px; }
.ios .toggle.on::after { transform: translateX(20px); }
.ios .toggle:not(.on) { background: rgba(120,120,128,.28); }
.iset-batt { text-align: center; padding: 18px; }
.iset-batt-big { font-size: 46px; font-weight: 700; }
.iset-batt small { color: var(--ios-muted); }
.iset-looks { display: flex; justify-content: space-around; padding: 16px 10px 10px; }
.iset-look { display: grid; justify-items: center; gap: 6px; color: var(--ios-text); font-size: 15px; }
.iset-look i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ios-muted); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.iset-look.on i { background: var(--accent); border-color: var(--accent); }
.iset-phone { width: 64px; height: 120px; border-radius: 14px; border: 3px solid #1c1c1e; position: relative; overflow: hidden; }
.iset-phone.light { background: linear-gradient(#f2f2f7 30%, #fff 30%); }
.iset-phone.dark { background: linear-gradient(#000 30%, #1c1c1e 30%); }
.iset-phone::after { content: ""; position: absolute; left: 10px; right: 10px; top: 46px; height: 8px; border-radius: 4px; box-shadow: 0 16px 0 currentColor, 0 32px 0 currentColor; background: currentColor; opacity: .25; }
.iset-accents { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px; }
.iset-accents .accent { width: 28px; height: 28px; }
.iset-slider { padding: 14px; margin: 0; }
.iset-wall-now { display: flex; justify-content: center; gap: 16px; margin-bottom: 18px; }
.iset-wall-phone { width: 110px; height: 220px; border-radius: 22px; border: 4px solid #1c1c1e; background-size: cover !important; background-position: center !important; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.iset-walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.iset-wall { display: grid; gap: 4px; justify-items: center; color: var(--ios-text); font-size: 12px; }
.iset-wall span { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background-size: cover !important; background-position: center !important; border: 3px solid transparent; }
.iset-wall.on span { border-color: var(--accent); }

/* Calendar (iPhone) */
.ios-cal { background: var(--ios-card); display: flex; flex-direction: column; }
.cm-head { flex: none; padding: 8px 16px 0; position: relative; z-index: 2; background: var(--ios-card); }
.cm-top { display: flex; justify-content: space-between; align-items: center; }
.cm-glass { display: flex; align-items: center; height: 44px; border-radius: 99px; background: color-mix(in srgb, var(--ios-card) 85%, transparent); box-shadow: 0 2px 12px rgba(0,0,0,.12), inset 0 0 0 1px var(--ios-sep); color: var(--ios-text); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cm-year { gap: 2px; padding: 0 16px 0 10px; font-size: 18px; font-weight: 500; }
.cm-year svg { width: 22px; height: 22px; }
.cm-tools { padding: 0 4px; }
.cm-tools button { width: 46px; height: 44px; display: grid; place-items: center; color: var(--ios-text); }
.cm-tools svg { width: 22px; height: 22px; }
.cm-title { margin: 16px 0 8px; }
.cm-wd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--ios-sep); margin: 0 -16px; }
.cm-scroll { flex: 1; overflow-y: auto; padding-bottom: 110px; position: relative; }
.cm-month { padding-top: 4px; }
.cm-mlabel { font-size: 17px; font-weight: 700; padding: 10px 16px 2px; }
.cm-mlabel.now { color: #ff3b30; }
.cm-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cm-day, .cm-blank { min-height: 92px; border-top: 1px solid var(--ios-sep); }
.cm-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--ios-text); min-width: 0; }
.cm-day.wknd .cm-num { color: var(--ios-muted); }
.cm-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 19px; font-weight: 600; }
.cm-day.today .cm-num { background: #ff3b30; color: #fff; }
.cm-day.sel:not(.today) .cm-num { background: var(--ios-text); color: var(--ios-card); }
.cm-chip { max-width: 100%; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 6px; background: rgba(10,132,255,.18); color: #0a64d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-chip.owner { background: rgba(255,59,48,.16); color: #d1281f; }
.cm-chip.mine { background: rgba(255,159,10,.2); color: #b76d00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cm-chip { color: #64b5ff; } :root:not([data-theme="light"]) .cm-chip.owner { color: #ff8a80; } :root:not([data-theme="light"]) .cm-chip.mine { color: #ffc069; } }
:root[data-theme="dark"] .cm-chip { color: #64b5ff; }
:root[data-theme="dark"] .cm-chip.owner { color: #ff8a80; }
:root[data-theme="dark"] .cm-chip.mine { color: #ffc069; }
.cm-more { font-size: 10.5px; color: var(--ios-muted); }
.cm-bottom { position: absolute; left: 14px; right: 14px; bottom: 30px; display: flex; justify-content: space-between; z-index: 3; }
.cm-today { padding: 0 22px; font-size: 18px; font-weight: 500; }
.ios-cal .ios-page { background: var(--ios-bg); }
.cm-ev { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; color: var(--ios-text); position: relative; }
.cm-ev + .cm-ev::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--ios-sep); }
.cm-ev i { width: 4px; align-self: stretch; border-radius: 2px; background: #0a84ff; }
.cm-ev.owner i { background: #ff3b30; }
.cm-ev.mine i { background: #ff9f0a; }
.cm-ev-time { width: 62px; font-size: 13px; color: var(--ios-muted); flex: none; }
.cm-ev-t { flex: 1; min-width: 0; }
.cm-ev-t b { display: block; font-size: 15.5px; font-weight: 600; }
.cm-ev-t small { display: block; color: var(--ios-muted); font-size: 13px; }
.cm-del { font-size: 22px; color: var(--ios-muted); padding: 0 4px; }
.cm-noev { color: var(--ios-muted); text-align: center; padding: 22px; }
.cm-daytitle { margin-top: 4px; }
.cm-add { display: grid; grid-template-columns: 1fr auto; }
.cm-add input { font: 16px var(--font); color: var(--ios-text); background: none; border: 0; outline: none; padding: 13px 14px; min-width: 0; }
.cm-add input[name="t"] { grid-column: 1 / -1; border-bottom: 1px solid var(--ios-sep); }
.cm-add-btn { color: var(--accent); font-weight: 600; font-size: 16px; padding: 0 16px; }
.cm-yearnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cm-yearnav button { width: 44px; height: 44px; font-size: 26px; color: var(--accent); }
.cm-yearnav button:disabled { opacity: .25; }
.cm-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
.cm-mini { text-align: left; color: var(--ios-text); }
.cm-mini.off { opacity: .35; }
.cm-mini b { display: block; font-size: 16px; margin-bottom: 4px; }
.cm-mini b.now { color: #ff3b30; }
.cm-mini span { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; font-size: 8.5px; text-align: center; }
.cm-mini span i { font-style: normal; }
.cm-mini span i.t { background: #ff3b30; color: #fff; border-radius: 50%; }
.cm-cal.off .iset-check { visibility: hidden; }
.cm-dot { width: 14px; height: 14px; border-radius: 50%; background: #0a84ff; flex: none; }
.cm-dot.owner { background: #ff3b30; }
.cm-dot.mine { background: #ff9f0a; }
.cm-invite { display: block; text-align: center; padding: 14px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; margin-top: 8px; }
.cm-invite:hover { text-decoration: none; }

/* =====================================================================
   LAUNCHPAD (computer) / APP LIBRARY (phone)
   ===================================================================== */
#lp { position: fixed; inset: 0; z-index: 9650; animation: lpIn .22s ease; }
@keyframes lpIn { from { opacity: 0; transform: scale(1.06); } }
#lp.desk { background: rgba(20,20,30,.38); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
#lp.mob { background: rgba(0,0,0,.4); backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3); }
.lp-inner { height: 100%; overflow-y: auto; padding: calc(var(--mb-h) + 26px) 6vw 120px; }
#lp.mob .lp-inner { padding: calc(var(--mb-h) + 16px) 16px 60px; }
.lp-search { display: flex; align-items: center; gap: 8px; width: min(280px, 100%); margin: 0 auto 36px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
#lp.mob .lp-search { width: 100%; height: 42px; margin-bottom: 22px; border-radius: 12px; }
.lp-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.lp-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; color: #fff; font: 15px var(--font); }
.lp-search input::placeholder { color: rgba(255,255,255,.75); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 34px 10px; max-width: 1100px; margin: 0 auto; }
#lp.mob .lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 6px; }
.lp-app { display: grid; justify-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.5); text-align: center; min-width: 0; }
.lp-app:hover { text-decoration: none; }
.lp-app .appicon, .lp-app .fi { transition: transform .15s; }
.lp-app:hover .appicon, .lp-app:hover .fi { transform: scale(1.07); }
.lp-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lp.mob .lp-app { font-size: 11.5px; }
.lp-none { text-align: center; color: rgba(255,255,255,.85); }
.lp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.lp-group { display: grid; gap: 6px; justify-items: center; align-content: start; }
.lp-group b { color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.lp-box { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 24px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); justify-items: center; }
.lp-box .lp-label { display: none; }

/* =====================================================================
   MUSIC APP
   ===================================================================== */
.window.kept { visibility: hidden; pointer-events: none; }
.mu.split { grid-template-columns: 240px 1fr; }
.mu-side { padding: 10px 8px; }
.mu-side h5 { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.mu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; min-width: 0; }
.mu-row:hover { background: rgba(127,127,127,.12); }
.mu-row.active { background: rgba(127,127,127,.22); }
.mu-row span:last-child { min-width: 0; }
.mu-row b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-row small { color: var(--muted); font-size: 12px; }
.mu-thumb, .mu-cover { display: grid; place-items: center; color: #fff; background-size: cover; background-position: center; flex: none; font-size: 18px; }
.mu-thumb { width: 40px; height: 40px; border-radius: 7px; }
.mu-main { padding: 22px 26px 30px; }
.mu-head { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.mu-cover { width: 150px; height: 150px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 54px; }
.mu-info { min-width: 0; }
.mu-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fa243c; }
.mu-info h1 { font-size: 28px; line-height: 1.15; margin: 2px 0 4px; }
.mu-info p { color: var(--muted); }
.mu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mu-actions a.btn:hover { text-decoration: none; }
.mu-player { width: 100%; border-radius: 12px; overflow: hidden; background: var(--side); }
.mu-player.video { aspect-ratio: 16 / 9; }
.mu-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.mu-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mu-bad { padding: 18px; border-radius: 12px; background: rgba(255,59,48,.1); }
.mu-bad code { font-family: var(--mono); font-size: 12.5px; }
.mu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 10px; }
.mu-card { display: grid; gap: 4px; text-align: left; color: var(--ios-text); min-width: 0; }
.mu-card .mu-cover { width: 100%; height: auto; aspect-ratio: 1; }
.mu-card b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.mu-card small { color: var(--ios-muted); font-size: 13px; }
.mu-mhead { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.mu-cover.big { width: 210px; height: 210px; border-radius: 16px; font-size: 70px; margin-bottom: 8px; }
.mu-mhead h1 { font-size: 24px; }
.mu-mhead p { color: var(--ios-muted); }
.mu-mhead .mu-actions { justify-content: center; }
.cc-open-music { cursor: pointer; }
@media (max-width: 760px) {
  body:has(.window:not(.kept)) #m-homebar { display: block; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 180px; height: 26px; z-index: 9800; touch-action: none; cursor: grab; }
  body:not(:has(.window:not(.kept))) #m-homebar { display: none; }
  body:not(:has(.window:not(.kept))) .m-spot-pill { display: flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: 112px; z-index: 6; padding: 8px 18px; border-radius: 99px;
    color: #fff; font-size: 15px; font-weight: 500; background: rgba(255,255,255,.18); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
}

/* =====================================================================
   MAC-STYLE TOP BAR, PHONE DOCK, FILES APP
   ===================================================================== */
.menubar { font-size: 13px; font-weight: 500; letter-spacing: .005em; }
.menubar .mb-bold { font-weight: 700; }
.mb-right .mb-item, .mb-right .mb-icon { padding: 0 8px; }
.mb-icon svg { width: 16px; height: 16px; }
.mb-icon[title="Battery"] { display: none; }
#clock { font-variant-numeric: tabular-nums; padding-left: 10px; }
.mb-knob { fill: var(--glass-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mb-knob { fill: #2a2a2e; } }
:root[data-theme="dark"] .mb-knob { fill: #2a2a2e; }

/* Files (phone) */
.fl-h { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.ios-files .ios-group { margin-bottom: 6px; }
.fl-row .fl-ic { width: 28px; display: grid; place-items: center; color: var(--accent); }
.fl-row .fl-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ios-files .iset-cell + .iset-cell::before { left: 54px; }
.fl-title { margin-top: 2px; }
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; margin-top: 14px; }
.fl-item { display: grid; justify-items: center; gap: 3px; text-align: center; color: var(--ios-text); min-width: 0; }
.fl-item .appicon, .fl-item .fi { margin-bottom: 4px; }
.fl-item b { font-size: 13px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.fl-item small { font-size: 11.5px; color: var(--ios-muted); }

@media (max-width: 760px) {
  .dock { justify-content: space-evenly; width: calc(100% - 20px); bottom: 10px; padding: 14px 10px; border-radius: 34px; gap: 0; }
  .dock .dock-item.mobile { flex: 0 0 auto; }
  .dock-item .appicon { --s: 60px !important; }
  body:not(:has(.window:not(.kept))) .m-spot-pill { bottom: 116px; }
  #home { bottom: 156px; }
}

/* =====================================================================
   PHONE STATUS BAR (iPhone style)
   ===================================================================== */
#m-time, #m-icons { display: none; }
@media (max-width: 760px) {
  .menubar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; padding: 0 22px 0 30px; }
  body:has(.window:not(.kept)) .menubar { background: var(--win); color: var(--text); }
  body:has(.ios-win:not(.kept)) .menubar { background: #f2f2f7; }
  body:has(.ios-win.active .ios-cal) .menubar, body:has(.ios-win.active .imc-page) .menubar { background: var(--win); }
  .menubar .mb-left > :not(#m-time), .menubar .mb-right > :not(#m-icons) { display: none !important; }
  #m-time { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  #m-icons { display: flex; align-items: center; gap: 6px; height: 100%; color: inherit; padding: 0; }
  #m-icons svg { fill: currentColor; display: block; }
  .m-sig { width: 17px; height: 11px; }
  .m-wifi { width: 16px; height: 11.5px; }
  .m-batt { width: 25px; height: 12px; }
  #m-icons.wifi-off .m-wifi { opacity: .3; }
  #m-icons.airplane .m-sig { opacity: .3; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.ios-win:not(.kept)) .menubar { background: #000; } }
@media (max-width: 760px) { :root[data-theme="dark"] body:has(.ios-win:not(.kept)) .menubar { background: #000; } }

/* =====================================================================
   STICKY NOTE (desktop) and PROJECTS WIDGET (phone)
   ===================================================================== */
.sticky { position: fixed; z-index: 2; width: 250px; padding: 16px 16px 14px; background: linear-gradient(180deg, #fff7b0, #ffeb7a); color: #3a3000;
  border-radius: 4px 4px 14px 4px; box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 -2px 0 rgba(0,0,0,.05); transform: rotate(-1.5deg); cursor: grab;
  font-size: 13.5px; line-height: 1.45; user-select: none; touch-action: none; }
.sticky.dragging { cursor: grabbing; transform: rotate(0deg) scale(1.02); }
.sticky h3 { font-size: 17px; margin-bottom: 4px; }
.sticky p { margin-bottom: 10px; }
.st-close { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%; color: rgba(58,48,0,.55); font-size: 17px; line-height: 1; }
.st-close:hover { background: rgba(0,0,0,.08); }
.st-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.st-chip { padding: 3px 9px; border-radius: 99px; background: rgba(58,48,0,.1); color: inherit; font-size: 12px; font-weight: 500; }
.st-chip:hover { background: rgba(58,48,0,.2); }
.st-go { width: 100%; padding: 9px 12px; border-radius: 9px; background: #1d1d1f; color: #fff; font-weight: 600; font-size: 13.5px; }
.st-go:hover { background: #000; }
.m-sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: none; }
  .m-sticky { display: block; margin: -10px 0 22px; padding: 14px 16px 16px; border-radius: 22px; background: linear-gradient(180deg, #fff7b0, #ffe866); color: #3a3000; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .m-st-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
  .m-st-head b { font-size: 17px; }
  .m-st-head span { font-size: 12px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
  .m-sticky p { font-size: 13.5px; margin-bottom: 10px; }
  .m-sticky .st-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
  .m-sticky .st-chip { flex: none; padding: 5px 11px; font-size: 12.5px; }
  .m-sticky .st-go { padding: 11px; font-size: 14.5px; border-radius: 12px; }
}

/* =====================================================================
   AUTOMATIC HASHTAG BANNERS, FLAGSHIP BADGE
   ===================================================================== */
.tile.gen, .ios-cover.gen { container-type: inline-size; position: relative; }
.pbanner { position: relative; overflow: hidden; }
.pbanner.gen { container-type: inline-size; }
.pbanner > div:not(.gen-art) { position: relative; z-index: 1; }
.tile > .big, .tile > small, .ios-cover > em { position: relative; z-index: 1; }
.gen-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gen-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.6px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 55%); mask-image: linear-gradient(135deg, #000 0%, transparent 55%); }
.gen-big { position: absolute; right: -6cqi; bottom: -24cqi; font-style: normal; font-size: 92cqi; font-weight: 900; line-height: 1; color: #fff; opacity: .1; letter-spacing: -.05em; }
.gen-tag { position: absolute; left: 8cqi; right: 17cqi; top: 8cqi; color: #fff; font-size: min(11cqi, calc(122cqi / var(--n, 12))); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.pbanner .flag-badge { display: none; }
.pbanner .gen-big { font-size: 46cqi; bottom: -14cqi; right: -2cqi; }
.pbanner .gen-tag { left: auto; right: 30px; top: 22px; max-width: 70%; text-align: right; white-space: normal; overflow-wrap: anywhere; font-size: clamp(24px, 6cqi, 56px); opacity: .95; }
.flag-badge { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ffd60a; color: #3a2a00; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ptag.flag { background: #ffd60a; color: #3a2a00; }
@media (max-width: 760px) { .pbanner .gen-tag { right: 20px; top: 18px; max-width: 70%; } }

/* Sticky note v2: counts + headline numbers */
.sticky { width: 268px; }
.st-counts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; margin: -4px 0 10px; opacity: .85; }
.st-counts b { font-weight: 800; }
.st-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.st-nums div { background: rgba(58,48,0,.08); border-radius: 8px; padding: 6px 8px; line-height: 1.15; }
.st-nums b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.st-nums span { font-size: 10.5px; opacity: .75; }
.st-chip i { font-style: normal; opacity: .6; font-weight: 600; margin-left: 2px; }
.st-chip.flag { background: #3a3000; color: #ffe866; }
.st-chip.flag i { opacity: .8; }
@media (max-width: 760px) {
  .m-sticky .st-nums { gap: 6px; }
  .m-sticky .st-nums div { padding: 7px 10px; }
  .m-sticky .st-nums b { font-size: 17px; }
  .m-sticky .st-nums span { font-size: 11.5px; }
}

/* Phone: Terminal, Trash and App Library only on the computer */
@media (max-width: 760px) {
  #home .home-app[data-app="terminal"], #home .home-app[data-app="trash"], #home .home-app[data-lp] { display: none !important; }
  .desk-only { display: none !important; }
}

/* Phone wallpapers: tall thumbnails */
.iset-walls.pw .iset-wall span { aspect-ratio: 9 / 19.5; height: auto; }

/* Messages (computer): long question lists scroll instead of pushing the chat up */
.quick { max-height: 74px; overflow-y: auto; }
.ios-cover .gen-tag { font-size: min(11cqi, calc(122cqi / var(--n, 12))); margin-top: 0; overflow: visible; text-overflow: clip; font-weight: 800; }
/* Tiles: name + role instead of numbers */
.tile .big { font-size: 20px; line-height: 1.1; }
.tile small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; opacity: .85; }
.tile.gen { container-type: inline-size; }
.tile.gen .big.gtag { font-size: min(13cqi, calc(140cqi / var(--n, 12))); white-space: nowrap; letter-spacing: -.02em; }
.ios .tile .big { font-size: 17px; }
.ios .tile.gen .big.gtag { font-size: min(13cqi, calc(140cqi / var(--n, 12))); }
.ios-cover em:empty { display: none; }
/* Tables on project pages */
.ptable { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 13.5px; }
.ptable th, .ptable td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.ptable th { font-weight: 700; }
.ptable td:not(:first-child), .ptable th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
/* Profile photos always stay perfectly round (never squeezed) */
.avatar { flex: none; aspect-ratio: 1; background-size: cover !important; background-position: center !important; }
/* Phone sticky widget: counts + "See all projects" only */
@media (max-width: 760px) { .m-sticky .st-chips { display: none; } .m-sticky .st-counts { margin-bottom: 12px; } }
/* Messages (phone): long pinned names wrap neatly instead of running into each other */
.imm-pin-name { min-width: 0; justify-content: center; text-align: center; line-height: 1.2; }
.imm-pin-name .pn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.imm-pin-name .udot { flex: none; }

/* Phone home screen: a shorter profile card and widget so all apps fit without scrolling */
@media (max-width: 760px) {
  #home { padding-top: 12px; }
  .home-card { padding: 12px 14px; margin-bottom: 14px; }
  .home-card-top { gap: 12px; }
  .home-card-top .avatar { width: 46px; height: 46px; }
  .home-actions { margin-top: 10px; }
  .home-actions > * { padding: 8px 6px; }
  .m-sticky { margin: 0 0 16px; padding: 12px 14px 14px; }
  .m-sticky p { display: none; }
  .m-sticky .st-counts { margin: 2px 0 10px; }
  .m-sticky .st-go { padding: 9px; }
  .home-grid { gap: 14px 8px; }
  #home .home-app[data-app="preview"] { display: none !important; }
}
.imm-pin-name, .imm-pin-name .pn { white-space: normal; text-overflow: clip; }
.imm-pin { align-content: start; }
/* Keyboard shortcuts list */
.kb-over { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 20px; }
.kb-card { width: min(460px, 100%); max-height: 86vh; overflow: auto; background: var(--win-bg, var(--glass-strong)); color: var(--text); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); padding: 16px 18px; }
.kb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
.kb-x { font-size: 20px; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.kb-x:hover { background: rgba(127,127,127,.15); }
.kb-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kb-keys { flex: none; }
kbd { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; font: 600 12px/1.4 Inter, sans-serif; text-align: center; background: rgba(127,127,127,.08); }
.kb-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* "Send this note to Shotok" box under a visitor's note */
.nt-send { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(127,127,127,.1); font-size: 13px; }
.nt-send-sub { color: var(--muted); font-size: 12px; line-height: 1.4; }
.nt-send-row { display: flex; gap: 8px; }
.nt-send-row input[type="email"] { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, #fff); color: inherit; font: inherit; }
.nt-send-row button { padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.nt-send-row button:disabled { opacity: .6; }
.nt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.nt-send-status { font-size: 12px; color: var(--muted); }
.nt-send-status:empty { display: none; }
.nt-edit { min-height: 30vh; }
.ios-note-page .nt-edit { min-height: 34vh; }
.kb-card { background: var(--win); }
.nt-send-row input[type="email"] { background: var(--win); }
/* Your private inbox (notes visitors sent) */
.inbox-meta { color: var(--muted); font-size: 13px; margin: -4px 0 14px; }
.inbox-text { font-size: 15px; line-height: 1.6; padding: 14px 16px; border-radius: 12px; background: rgba(127,127,127,.1); white-space: normal; overflow-wrap: anywhere; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.inbox-private { margin-top: 14px; font-size: 12px; color: var(--muted); }
.inbox-actions a.btn, .note .inbox-actions a.btn { color: #fff; text-decoration: none; }
.dicon > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.25; }
.dicon.sel > span { -webkit-line-clamp: 6; }

/* =====================================================================
   PHONE: Work widget + Projects widget + Experience screens
   ===================================================================== */
.m-widgets { display: none; }
@media (max-width: 760px) {
  #home .m-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 14px; }
  #home .m-widgets ~ .m-sticky { display: none; }
  .mw { display: grid; gap: 5px; min-width: 0; }
  .mw-box { aspect-ratio: 1; width: 100%; border-radius: 22px; padding: 13px 13px 12px; text-align: left; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  .mw-label { text-align: center; color: #fff; font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .mw-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
  .mw-head i { font-style: normal; opacity: .55; font-size: 18px; line-height: 1; }
  .mw-work { background: rgba(28,28,30,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; justify-content: flex-start; }
  .wkw-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .wkw-row + .wkw-row { margin-top: 9px; }
  .wkw-row span { min-width: 0; display: grid; line-height: 1.2; }
  .wkw-row b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wkw-row small { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
  .mw-proj { background: linear-gradient(180deg, #fff7b0, #ffe866); color: #3a3000; }
  .mw-proj .mw-head { font-size: 14px; margin-bottom: 2px; }
  .mw-big { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-top: 4px; }
  .mw-sub { font-size: 12px; font-weight: 600; margin-top: 2px; }
  .mw-counts { font-size: 10.5px; opacity: .7; margin-top: 3px; }
  .mw-go { margin-top: auto; align-self: stretch; text-align: center; background: #1d1d1f; color: #fff; border-radius: 10px; padding: 7px; font-size: 12.5px; font-weight: 600; }
}
.wk-logo { --wk: 40px; flex: none; width: var(--wk); height: var(--wk); border-radius: calc(var(--wk) * .24); display: grid; place-items: center; overflow: hidden; color: #fff; background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.wk-logo img { width: 100%; height: 100%; object-fit: cover; }
.wk-logo b { font-weight: 800; letter-spacing: -.02em; }
.ios-work .ios-scroll { padding-top: 58px; }
.wk-h { font-size: 24px; font-weight: 800; margin: 6px 4px 12px; color: var(--ios-text); }
.wk-h + .wk-list { margin-bottom: 26px; }
.wk-list { display: grid; gap: 10px; }
.wk-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 18px; background: var(--ios-card); color: var(--ios-text); }
.wk-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wk-txt b { font-size: 15.5px; font-weight: 700; }
.wk-txt small { font-size: 13px; color: var(--ios-muted); line-height: 1.3; }
.wk-chev { color: var(--ios-muted); font-size: 20px; }
.wk-detail { padding-top: 6px; color: var(--ios-text); }
.wk-title { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; }
.wk-title h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wk-role { display: block; font-size: 16px; }
.wk-dates { display: block; color: var(--ios-muted); font-size: 14px; margin-bottom: 14px; }
.wk-card { background: var(--ios-card); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; }
.wk-card ul { padding-left: 18px; display: grid; gap: 8px; }
.wk-sec { font-size: 12px; font-weight: 600; color: var(--ios-muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 4px 8px; }
.wk-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--ios-card); color: var(--ios-text); font-size: 15px; }
.wk-link > span:not(.wk-logo) { flex: 1; }
.wk-link i { font-style: normal; color: var(--ios-muted); }
a.wk-link:hover { text-decoration: none; }
@media (max-width: 760px) and (max-height: 830px) { #home .m-widgets { margin-bottom: 8px; gap: 12px; } .home-card { margin-bottom: 10px; } .home-grid { gap: 10px 8px; } }
@media (max-width: 760px) and (max-height: 830px) { .mw-box { aspect-ratio: auto; height: 156px; padding: 11px 12px 10px; } .wkw-row + .wkw-row { margin-top: 7px; } .mw-head { margin-bottom: 6px; } .mw-big { font-size: 34px; } }
@media (max-width: 760px) and (max-height: 830px) { #home { padding-top: 8px; } .home-actions > * { padding: 7px 6px; } .home-actions { margin-top: 8px; } }

/* =====================================================================
   ROUNDER, NEWER macOS LOOK (windows, buttons, menus)
   ===================================================================== */
:root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", system-ui, sans-serif; }
body { font-feature-settings: "cv11", "ss01", "ss03"; letter-spacing: -.003em; }
@media (min-width: 761px) {
  .window { border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 0 .5px rgba(0,0,0,.25), inset 0 0 0 .5px rgba(255,255,255,.12); }
  .titlebar { height: 46px; padding: 0 16px; border-bottom-color: transparent; }
  .lights { gap: 9px; }
  .btn, .seg, .seg button, .toolbar .btn, .fd-search, .nt-search, .im-search { border-radius: 999px !important; }
  .menu { border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 0 .5px rgba(255,255,255,.15); }
  .menu button { border-radius: 8px; }
  .menu button:disabled { opacity: .38; pointer-events: none; }
  .dock { border-radius: 26px; }
  .sticky { border-radius: 16px; }
}
.menu button:disabled { opacity: .38; pointer-events: none; }

/* Menu bar: no bar behind it, text sits right on the wallpaper (like the reference) */
@media (min-width: 761px) {
  .menubar { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.35); font-size: 13.5px; font-weight: 500; }
  .menubar .mb-item, .menubar .mb-icon, .menubar #clock { color: #fff !important; }
  .menubar .mb-item.open, .menubar .mb-item:hover { background: rgba(255,255,255,.18); }
  .menubar .logo-dot { background: #fff; color: #111; text-shadow: none; }
  .menubar .mb-icon[title="Battery"] { display: inline-flex !important; }
  .menubar svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
}

/* =====================================================================
   FINDER (rounded sidebar panel, pill toolbar, like the reference)
   ===================================================================== */
@media (min-width: 761px) {
  .window[data-key="finder"] { background: var(--win); }
  .window[data-key="finder"] .titlebar { position: absolute; top: 0; left: 0; width: 232px; z-index: 3; background: transparent; height: 50px; padding-left: 22px; }
  .window[data-key="finder"] .titlebar .wtitle { display: none; }
  .window[data-key="finder"] .wbody { padding: 0; }
  .fd { height: 100%; display: flex; gap: 0; }
  .fd .fd-side { width: 224px; flex: none; margin: 8px; padding: 46px 10px 10px; border-radius: 14px; background: var(--side); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.25); overflow-y: auto; border: 0; }
  .fd .fd-side h5 { font-size: 11px; font-weight: 600; color: var(--muted); margin: 10px 8px 4px; text-transform: none; letter-spacing: 0; }
  .fd .fd-place { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 9px; border-radius: 8px; font-size: 13.5px; color: var(--text); text-align: left; }
  .fd .fd-place svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .fd .fd-place.active { background: rgba(127,127,127,.22); font-weight: 600; }
  .fd .fd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .fd .fd-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px 8px 4px; border: 0; cursor: default; }
  .fd-pill { display: flex; align-items: center; height: 34px; border-radius: 999px; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); padding: 0 4px; }
  .fd-pill button, .fd-circle { height: 30px; min-width: 32px; display: grid; place-items: center; border-radius: 999px; color: var(--text); padding: 0 6px; }
  .fd-pill button:hover:not(:disabled), .fd-circle:hover { background: rgba(127,127,127,.18); }
  .fd-pill button:disabled { opacity: .35; }
  .fd-pill svg, .fd-circle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .fd-circle { width: 34px; height: 34px; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); }
  .fd .fd-title { flex: 1; font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fd .fd-views button { min-width: 30px; } .fd .fd-views button:not(.on) { opacity: .55; }
  .fd .fd-search { display: flex; align-items: center; height: 34px; width: 34px; padding: 0 9px; gap: 6px; border-radius: 999px; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); transition: width .2s; overflow: hidden; cursor: text; }
  .fd .fd-search:focus-within, .fd .fd-search.has { width: 190px; }
  .fd .fd-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .fd .fd-search input { border: 0; background: none; outline: none; color: var(--text); font: 13px var(--font); width: 100%; }
  .fd .fd-content { flex: 1; overflow: auto; padding: 6px 16px 16px; }
  .fd .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px 6px; align-content: start; }
  .fd .fitem { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 10px; font-size: 12.5px; text-align: center; color: var(--text); }
  .fd .fitem span:last-child { overflow-wrap: anywhere; line-height: 1.25; }
  .fd .fitem.sel { background: rgba(127,127,127,.18); }
  .fd .fitem.sel span:last-child { background: var(--accent); color: #fff; border-radius: 5px; padding: 0 5px; }
  .fd-air { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 60px 20px; color: var(--muted); }
  .fd-air i { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(10,132,255,.35) 0 20%, rgba(10,132,255,.15) 21% 45%, rgba(10,132,255,.06) 46% 70%, transparent 71%); animation: air 2.4s ease-in-out infinite; }
  @keyframes air { 50% { transform: scale(1.08); opacity: .8; } }
  .fd-air b { color: var(--text); font-size: 15px; }
}

/* =====================================================================
   MAIL (New Message)
   ===================================================================== */
.ml { height: 100%; display: flex; flex-direction: column; padding: 0 16px 12px; font-size: 14px; color: var(--text); }
.ml-row { display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--line); }
.ml-row > span { color: var(--muted); flex: none; }
.ml-row b { font-weight: 600; }
.ml-row input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text); font: 14px var(--font); }
.ml-body { flex: 1; min-height: 160px; border: 0; outline: none; resize: none; background: none; color: var(--text); font: 14.5px/1.6 var(--font); padding: 12px 0; }
.ml-status { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.ml-send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.ml-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ml-send:disabled { opacity: .5; }
.ml-send-tb { margin-left: auto; }
.window[data-key="mail"] .wtitle { position: static; transform: none; font-weight: 700; margin-left: 6px; }
.ml-ios { padding: 54px 16px 20px; background: var(--ios-bg); color: var(--ios-text); }
.ml-ios .ml-row { border-color: var(--ios-sep); }
.ml-ios .ml-row input, .ml-ios .ml-body { color: var(--ios-text); font-size: 16px; }
.ml-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ml-top b { font-size: 17px; }
.ml-cancel { color: #0a84ff; font-size: 16px; }
.ml-ios .ml-send { width: 34px; height: 34px; background: #0a84ff; }

/* =====================================================================
   WEATHER WIDGET (computer)
   ===================================================================== */
.wx { position: fixed; z-index: 2; left: 28px; top: 46px; width: 170px; height: 170px; border-radius: 22px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #1f63c4, #173f7d); box-shadow: 0 10px 30px rgba(0,0,0,.3); user-select: none; }
.wx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); pointer-events: none; }
/* Live scene behind the text: sky, sea, and the sun or moon on its real path */
.wx-bg, .wx-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.wx-txt { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.wx-city { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.wx-city svg { width: 10px; height: 10px; }
.wx-temp { font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.wx-foot { margin-top: auto; }
.wx-cond { font-weight: 600; font-size: 13px; }
.wx-hl { font-size: 12.5px; opacity: .85; font-variant-numeric: tabular-nums; }
/* ambient motion, each on its own clock */
.wx-glow { animation: wxBreathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wxBreathe { 50% { transform: scale(1.08); opacity: .85; } }
.wx-ref line { animation: wxShimmer 3.2s ease-in-out infinite; }
.wx-ref line:nth-child(2n) { animation-duration: 4.1s; animation-delay: -1.3s; }
.wx-ref line:nth-child(3n) { animation-duration: 2.7s; animation-delay: -.6s; }
@keyframes wxShimmer { 50% { opacity: .25; transform: translateX(1.5px); } }
.wx-star { animation: wxTwinkle 3s ease-in-out infinite; }
@keyframes wxTwinkle { 50% { opacity: .15; } }
.wx-cloud { animation: wxDrift 40s ease-in-out infinite; }
@keyframes wxDrift { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(8px); } }
.wx-rain line { animation: wxRain 1.1s linear infinite; }
@keyframes wxRain { from { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wx-glow, .wx-ref line, .wx-star, .wx-cloud, .wx-rain line { animation: none; } }
@media (max-width: 760px) { .wx { display: none !important; } }

/* Right-click menu, Get Info, renaming */
.ctx { position: fixed; z-index: 99999; min-width: 230px; }
.dicon-edit { width: 86px; font: 12px var(--font); text-align: center; border-radius: 4px; border: 0; outline: 2px solid var(--accent); padding: 1px 3px; color: #111; background: #fff; }
.gi { padding: 18px; font-size: 13px; }
.gi-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.gi-top svg, .gi-top .fi, .gi-top .appicon { width: 54px; height: 54px; flex: none; --fi: 54px; --s: 54px; }
.gi-top b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.gi-top small { color: var(--muted); }
.gi h6 { font-size: 12px; margin: 6px 0; color: var(--muted); }
.gi dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; }
.gi dt { color: var(--muted); text-align: right; }
.gi dd { overflow-wrap: anywhere; }
.window[data-key="mail"] .wtitle { color: var(--text); opacity: 1; font-size: 14px; }
/* Finder sidebar: blue icons for Favourites, grey for Locations (like macOS) */
@media (min-width: 761px) {
  .fd .fd-locs .fd-place svg { stroke: var(--muted); }
  .fd .fd-place.active svg { stroke: var(--accent); }
}

/* Phone: Work widget follows the theme (light by default) */
@media (max-width: 760px) {
  .mw-work { background: rgba(255,255,255,.92); color: #111; }
  .mw-work .wkw-row small { color: rgba(0,0,0,.5); }
  .mw-work .mw-head i { opacity: .4; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mw-work { background: rgba(28,28,30,.9); color: #fff; } :root:not([data-theme="light"]) .mw-work .wkw-row small { color: rgba(255,255,255,.6); } }
@media (max-width: 760px) { :root[data-theme="dark"] .mw-work { background: rgba(28,28,30,.9); color: #fff; } :root[data-theme="dark"] .mw-work .wkw-row small { color: rgba(255,255,255,.6); } }
/* Links: a round pill with the company logo */
.wk-link { border-radius: 999px; padding: 9px 18px 9px 10px; }
.wk-link .wk-logo { border-radius: 8px; }

/* Phone profile card: two buttons */
@media (max-width: 760px) { .home-actions.two { grid-template-columns: 1fr 1fr; } .home-actions.two > :first-child { background: var(--accent); color: #fff; } }

/* Phone Files: Browse like iOS */
.fl-search { display: flex; align-items: center; gap: 6px; width: 100%; height: 38px; padding: 0 10px; margin: 10px 0 4px; border-radius: 11px; background: rgba(118,118,128,.14); color: var(--ios-muted); font-size: 16px; text-align: left; }
.fl-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fl-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin: 0 6px 0 4px; }
.fl-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 0 26px; background: color-mix(in srgb, var(--ios-bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid var(--ios-sep); }
.fl-tabbar button { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ios-muted); }
.fl-tabbar button.on { color: #007aff; }
.fl-tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Phone dock + Search pill like the reference: a compact grey dock */
@media (max-width: 760px) {
  .dock { left: 50% !important; right: auto !important; transform: translateX(-50%); width: auto !important; justify-content: center !important; gap: 20px !important;
    padding: 13px 16px !important; bottom: 12px !important; border-radius: 32px !important; background: rgba(72,72,78,.55) !important; backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); border: 0 !important; box-shadow: none !important; }
  .dock-item .appicon { --s: 58px !important; }
  body:not(:has(.window:not(.kept))) .m-spot-pill { bottom: 106px !important; padding: 5px 12px !important; font-size: 13px !important; font-weight: 600; color: #fff !important; background: rgba(72,72,78,.55) !important; border: 0 !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  body:not(:has(.window:not(.kept))) .m-spot-pill svg { width: 13px; height: 13px; }
}
/* Work widget with 4 rows: a little tighter so everything fits */
@media (max-width: 760px) {
  .wk4 .mw-work .mw-head { margin-bottom: 6px; }
  .wk4 .wkw-row { gap: 8px; }
  .wk4 .wkw-row + .wkw-row { margin-top: 5px; }
  .wk4 .wkw-row .wk-logo { --wk: 25px !important; }
  .wk4 .wkw-row .wk-logo b { font-size: 9.5px !important; }
  .wk4 .wkw-row b { font-size: 12px; }
  .wk4 .wkw-row small { font-size: 10.5px; }
}
@media (max-width: 760px) and (max-height: 830px) { .wk4 .mw-box { height: 160px; padding-top: 10px; padding-bottom: 8px; } .wk4 .mw-work .mw-head { margin-bottom: 4px; font-size: 14px; } .wk4 .wkw-row + .wkw-row { margin-top: 3px; } .wk4 .wkw-row .wk-logo { --wk: 22px !important; } .wk4 .wkw-row b { font-size: 11.5px; } .wk4 .wkw-row small { font-size: 10px; } .home-grid { gap: 8px 8px; } }
/* Logo pictures: no dark square behind rounded or transparent corners */
.wk-logo.wk-img { background: transparent !important; box-shadow: none; }
.wk-logo.wk-img img { border-radius: inherit; object-fit: contain; }
@media (max-width: 760px) { .home-card { padding: 14px 16px; } }

/* =====================================================================
   NOTES (computer): one toolbar across the top, like Apple Notes
   ===================================================================== */
@media (min-width: 761px) {
  .window[data-key="notes"] { background: var(--win); }
  .window[data-key="notes"] .titlebar { position: absolute; top: 0; left: 0; width: 84px; z-index: 3; background: transparent; height: 56px; padding-left: 20px; border: 0; }
  .window[data-key="notes"] .titlebar .wtitle { display: none; }
  .nt2 { height: 100%; display: flex; flex-direction: column; }
  .nt2 > .split { flex: 1; min-height: 0; }
  .nt-top { flex: none; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 88px; border-bottom: 1px solid var(--line); cursor: default; }
  .nt-pill { display: flex; align-items: center; height: 34px; border-radius: 999px; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); padding: 0 4px; flex: none; }
  .nt-pill button, .nt-circle { height: 30px; min-width: 34px; display: grid; place-items: center; border-radius: 999px; color: var(--text); padding: 0 7px; flex: none; }
  .nt-circle { width: 34px; height: 34px; padding: 0; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); }
  .nt-pill button:hover:not(:disabled), .nt-circle:hover { background: rgba(127,127,127,.2); }
  .nt-pill button:disabled { opacity: .35; }
  .nt-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .nt-heading { width: 142px; flex: none; min-width: 0; line-height: 1.2; }
  .nt-heading b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
  .nt-heading small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
  .nt-div { width: 1px; height: 22px; background: var(--line); flex: none; }
  .nt-top .nt-search { flex: 1; min-width: 34px; height: 34px; padding: 0 11px; gap: 7px; border: 0; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); overflow: hidden; }
  .nt-top .nt-search svg { width: 16px; height: 16px; }
  .nt2 .nt.split { grid-template-columns: 290px 1fr; }
  .nt2.no-side .nt.split { grid-template-columns: 1fr; }
  .nt2.no-side .nt-side { display: none; }
  .nt2 .nt-side { padding: 4px 10px 10px; background: var(--win); border-right: 1px solid var(--line); gap: 0; }
  .nt2 .nt-list h5 { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--text); padding: 16px 6px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .nt2 .nt-pinhead { cursor: default; }
  .nt2 .nt-pinhead svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
  .nt2 .nt-pinhead.shut svg { transform: rotate(-90deg); }
  .nt2 .nt-row { padding: 9px 10px 9px 24px; border-radius: 9px; }
  .nt2 .nt-row + .nt-row::before { left: 24px; right: 6px; }
  .nt2 .nt-row.active { background: rgba(127,127,127,.2); }
  .nt2 .nt-row em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
  .nt2 .nt-row em svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .nt2 .nt-main .note { font-size: var(--nt-size, 15px); }
  .nt2 .nt-main .nt-edit { font-size: inherit; }
  .nt2 .nt-main .note .stamp { font-size: 12.5px; margin-bottom: 14px; }
}

/* Finder sidebar: Recents & Shared on top, then Favourites, Locations and Tags */
@media (min-width: 761px) {
  .fd .fd-side .fd-top { margin-bottom: 4px; }
  .fd .fd-side h5 { margin-top: 14px; }
  .fd .fd-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin: 0 2.5px; }
  .fd .fd-tags .fd-place svg { stroke: var(--muted); }
}
@media (max-width: 760px) { .fd-tags, .fd-side h5 { display: none; } }
/* Finder sidebar: scrolled items no longer slide under the window buttons */
@media (min-width: 761px) {
  .fd .fd-side::before { content: ""; display: block; position: sticky; top: -46px; height: 42px; margin: -46px -10px 4px; background: var(--side); border-radius: 14px 14px 0 0; z-index: 1; }
}

/* App icons from picture files have empty space around the artwork (like real
   macOS icons). Zoom them so every icon is the same size as the built-in ones. */
.appicon img { transform: scale(1.243); border-radius: 0; }
.appicon[data-ic="trash"] img { transform: scale(1.12); }

/* =====================================================================
   GUIDE BUTTON + GUIDED TOUR (computer only)
   ===================================================================== */
#guide, #guide-tip, #tour { display: none; }
@media (min-width: 761px) {
  #guide { display: flex; align-items: center; gap: 7px; position: fixed; right: 18px; bottom: 18px; z-index: 9; height: 38px; padding: 0 15px 0 11px; border-radius: 999px;
    color: #fff; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.25);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: background .15s, transform .15s; }
  #guide:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
  #guide svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  #guide-tip { display: grid; gap: 2px; position: fixed; right: 18px; bottom: 68px; z-index: 9100; width: 290px; padding: 14px 16px 12px; border-radius: 16px; background: var(--win); color: var(--text);
    box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 0 .5px rgba(127,127,127,.3); font-size: 13.5px; animation: guideIn .35s cubic-bezier(.2,.9,.3,1.2); }
  #guide-tip::after { content: ""; position: absolute; right: 38px; bottom: -6px; width: 12px; height: 12px; background: var(--win); transform: rotate(45deg); border-radius: 2px; }
  #guide-tip b { font-size: 14.5px; }
  #guide-tip span { color: var(--muted); }
  #guide-tip div { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
  #guide-tip button { height: 30px; padding: 0 12px; white-space: nowrap; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bubble); color: var(--text); }
  #guide-tip .gt-go { background: var(--accent); color: #fff; }
  #guide-tip .gt-x { margin-left: auto; width: 30px; padding: 0; font-size: 17px; font-weight: 400; color: var(--muted); background: none; }
  @keyframes guideIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }

  #tour { display: block; position: fixed; inset: 0; z-index: 100001; }
  .tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8,10,20,.62), 0 0 0 2px rgba(255,255,255,.9), 0 0 0 6px rgba(255,255,255,.22); pointer-events: none;
    transition: left .35s cubic-bezier(.3,.8,.3,1), top .35s cubic-bezier(.3,.8,.3,1), width .35s cubic-bezier(.3,.8,.3,1), height .35s cubic-bezier(.3,.8,.3,1), opacity .2s; }
  .tour-card { position: fixed; width: 330px; padding: 16px 18px 14px; border-radius: 18px; background: var(--win); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 0 .5px rgba(127,127,127,.35);
    transition: left .35s cubic-bezier(.3,.8,.3,1), top .35s cubic-bezier(.3,.8,.3,1); }
  .tour-count { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  .tour-card h3 { font-size: 17px; margin: 3px 0 5px; }
  .tour-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
  .tour-btns { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
  .tour-btns i { flex: 1; }
  .tour-btns button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bubble); color: var(--text); }
  .tour-btns .tour-skip { background: none; color: var(--muted); padding: 0 4px; font-weight: 500; }
  .tour-btns .tour-next { background: var(--accent); color: #fff; }
  .tour-btns .tour-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* =====================================================================
   FOR RECRUITERS: fast track, why me, flagship work, recommendations
   ===================================================================== */
.hire-track { margin: 0 0 16px; padding: 12px 14px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.ht-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ht-head b { font-size: 14px; }
.ht-prog { font-size: 12px; color: var(--muted); margin-right: auto; }
.ht-tour { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; }
.ht-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 6px; }
.ht-steps button { display: flex; align-items: center; gap: 7px; padding: 7px 9px; white-space: nowrap; border-radius: 10px; background: var(--win); text-align: left; font-size: 12px; font-weight: 600; color: var(--text); box-shadow: 0 0 0 .5px rgba(127,127,127,.3); }
.ht-steps button:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.ht-steps i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--bubble); color: var(--muted); }
.ht-steps .done i { background: #30b14e; color: #fff; font-size: 0; }
.ht-steps .done i::before { content: "✓"; font-size: 12px; }
.hire section[data-sec] { scroll-margin: 20px; }
.hire-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.hire-why div { padding: 12px 14px; border-radius: 12px; background: var(--side); border-left: 3px solid var(--accent); }
.hire-why b { display: block; font-size: 14px; margin-bottom: 3px; }
.hire-why span { font-size: 12.5px; line-height: 1.45; color: var(--muted); display: block; }
.hire-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.hire-case { display: grid; gap: 3px; align-content: start; text-align: left; padding: 14px; min-height: 128px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); transition: transform .15s, box-shadow .15s; }
.hire-case:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.hire-case em { font-style: normal; font-size: 11px; font-weight: 600; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hire-case b { font-size: 15px; line-height: 1.2; }
.hire-case span { font-size: 12px; line-height: 1.35; opacity: .92; }
.hire-case strong { font-size: 14px; }
.hire-case small { align-self: end; margin-top: 6px; font-size: 11.5px; font-weight: 600; opacity: .85; }
.hire-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.hire-rec-card:hover, .hire-cta a.btn:hover { text-decoration: none; }
.hire-rec-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--side); color: var(--text); }
.hire-rec-card { transition: transform .15s, box-shadow .15s; box-shadow: inset 0 0 0 1px color-mix(in srgb, #0a66c2 30%, transparent); }
.hire-rec-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #0a66c2; }
.hire-rec-card em { padding: 7px 13px; border-radius: 999px; background: #0a66c2; color: #fff !important; white-space: nowrap; }
.hire-rec-card div { flex: 1; min-width: 0; }
.hire-rec-card b { display: block; font-size: 14.5px; }
.hire-rec-card span { display: block; font-size: 12.5px; color: var(--muted); }
.hire-rec-card em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); }
.hire-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--side); }
.hire-cta b { display: block; font-size: 16px; }
.hire-cta span { font-size: 13px; color: var(--muted); }
.hire-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hire-cta .btn { padding: 8px 14px; font-weight: 500; }
@media (max-width: 760px) { .ht-tour { display: none; } .ht-steps { grid-template-columns: 1fr 1fr; } }

/* Smaller "Start here" note and a more compact Notes window, so the desktop has room to breathe */
@media (min-width: 761px) {
  .sticky { width: 204px; padding: 12px 13px 12px; font-size: 12.5px; }
  .sticky h3 { font-size: 14.5px; margin-bottom: 2px; }
  .sticky p { margin-bottom: 7px; line-height: 1.35; }
  .sticky .st-counts { font-size: 11px; gap: 2px 8px; margin: -2px 0 8px; }
  .sticky .st-chips { margin-bottom: 9px; }
  .sticky .st-chip { font-size: 11px; padding: 2px 8px; }
  .sticky .st-chip:not(.flag) { display: none; }   /* categories live in Photos; the note keeps only Flagship */
  .sticky .st-go { padding: 7px 10px; font-size: 12.5px; border-radius: 8px; }
  .sticky .st-close { top: 4px; right: 5px; }
  .nt2 .nt.split { grid-template-columns: 258px 1fr; }
  .nt-heading { width: 110px; }
  .nt-top { gap: 8px; }
  .nt2 .nt-main .note { padding: 22px 30px 50px; }
}

/* Project page: "Read more" news rows at the very end */
.pnews { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pnews h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 2px; }
.pnews-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; background: var(--side); color: var(--text); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.28); transition: transform .15s, box-shadow .15s; }
.pnews-row:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pnews-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pnews-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pnews-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pnews-text b { font-size: 14.5px; }
.pnews-text small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnews-go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pnews { padding-bottom: 4px; }
.pactions .pnews-btn { font-weight: 600; }

/* Projects: the filter bar stays above the project tiles while scrolling
   (tile titles used to show through it). */
.ph-filters { z-index: 6; background: var(--win); }

/* Phone: project folder covers (hashtag artwork, titled with the folder name) */
.ios-cover.folder .gen-tag { right: 8cqi; white-space: normal; font-size: 11.5cqi; line-height: 1.12; overflow-wrap: break-word; }
.ios-cover.folder:has(.flag-badge) .gen-tag { right: 22cqi; }

/* A project page opened inside Photos sits above the filter bar */
.ph-main > .viewer, .ph .viewer { z-index: 8; }
.ph-viewer { z-index: 8; }

/* =====================================================================
   MAPS APP
   ===================================================================== */
.window[data-key="maps"] .wbody { padding: 0; }
.mp { height: 100%; display: flex; background: var(--win); }
.mp-side { width: 280px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 10px; border-right: 1px solid var(--line); min-height: 0; }
.mp-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 4px; }
.mp-head b { display: block; font-size: 17px; }
.mp-head small { color: var(--muted); font-size: 12.5px; }
.mp-search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 999px; background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 .5px rgba(127,127,127,.3); color: var(--muted); flex: none; }
.mp-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.mp-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--text); }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.mp-chips button { padding: 5px 11px; border-radius: 999px; background: var(--bubble); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.mp-chips button.on { background: var(--accent); color: #fff; }
.mp-list { flex: 1; overflow: auto; min-height: 0; display: grid; gap: 2px; align-content: start; }
.mp-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 9px; border-radius: 11px; text-align: left; color: var(--text); }
.mp-row:hover { background: rgba(127,127,127,.1); }
.mp-row.on { background: rgba(127,127,127,.2); }
.mp-row b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row > span:last-child { min-width: 0; }
.mp-em { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.08); }
.mp-em.big { width: 46px; height: 46px; font-size: 23px; }
.mp-mapwrap { flex: 1; min-width: 0; position: relative; }
.mp-map { position: absolute; inset: 0; background: #e8ecef; z-index: 0; }
.mp-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.mp-pin { display: grid; place-items: center; }
.mp-pin span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.1); transition: transform .15s; cursor: pointer; }
.mp-pin:hover span { transform: scale(1.1); }
.mp-pin.on span { transform: scale(1.25); box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 0 3px var(--accent); }
.mp-pin b { display: none; position: absolute; top: 50px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: #fff; color: #1d1d1f; font: 600 13px var(--font); white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.mp-pin.on b { display: block; }
.mp-card { position: absolute; left: 14px; right: 14px; bottom: 26px; z-index: 500; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--win); color: var(--text); box-shadow: 0 12px 34px rgba(0,0,0,.3), 0 0 0 .5px rgba(127,127,127,.3); }
.mp-card[hidden] { display: none; }
.mp-card-text { flex: 1; min-width: 0; }
.mp-card-text b { display: block; font-size: 15.5px; }
.mp-card-text small { color: var(--muted); font-size: 12.5px; }
.mp-card-text p { font-size: 13px; margin-top: 3px; }
.mp-go { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mp-go:hover { text-decoration: none; filter: brightness(1.08); }
.mp-card-x { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--win); color: var(--muted); font-size: 16px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 .5px rgba(127,127,127,.3); }
.mp .leaflet-container { font: 11px var(--font); background: #e8ecef; }
.mp .leaflet-control-zoom { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.25); margin: 0 12px 26px 0; }
.mp .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; background: var(--win); color: var(--text); border-color: var(--line); }
.mp .leaflet-control-attribution { background: rgba(255,255,255,.75); border-radius: 6px 0 0 0; }
/* Phone layout: map on top, places as a swipeable strip underneath */
.mp-ios { flex-direction: column; background: var(--ios-bg); color: var(--ios-text); padding-top: 50px; }
.mp-ios .mp-side { display: contents; }
.mp-ios .mp-head { order: 1; padding: 4px 18px 8px; align-items: center; }
.mp-ios .mp-head b { font-size: 26px; font-weight: 800; }
.mp-ios .mp-x { width: 32px; height: 32px; border-radius: 50%; background: rgba(127,127,127,.2); color: var(--ios-text); font-size: 20px; line-height: 1; }
.mp-ios .mp-search { display: none; }
.mp-ios .mp-chips { order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px 10px; }
.mp-ios .mp-chips button { background: var(--ios-card); color: var(--ios-text); padding: 7px 13px; font-size: 13.5px; }
.mp-ios .mp-chips button.on { background: var(--accent); color: #fff; }
.mp-ios .mp-mapwrap { order: 3; flex: 1; min-height: 0; }
.mp-ios .mp-list { order: 4; flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 30px; }
.mp-ios .mp-row { flex: none; width: 210px; background: var(--ios-card); color: var(--ios-text); padding: 10px 11px; border-radius: 14px; }
.mp-ios .mp-row.on { box-shadow: 0 0 0 2px var(--accent); background: var(--ios-card); }
.mp-ios .mp-card { bottom: 12px; flex-wrap: wrap; }
.mp-ios .mp-go { width: 100%; text-align: center; padding: 10px; }
/* Maps in dark mode: the map pictures are light only, so they are dimmed and tinted */
.mp-map.dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.7); }
.mp-map.dark { background: #1b1d21; }
.mp-map.dark .leaflet-control-attribution { background: rgba(30,30,32,.75); color: #bbb; }
.mp-map.dark .leaflet-control-attribution a { color: #8ab4ff; }

/* =====================================================================
   PROJECT NUMBERS: three looks, chosen with statsStyle in content.js
   ("cards", "banner" or "tiles"). Colours come from each project.
   ===================================================================== */
.pstats[class*="st-"] { gap: 10px; margin: 4px 0 22px; }
.pstats[class*="st-"] .pstat span { display: block; line-height: 1.3; margin-top: 4px; }
.pstats[class*="st-"] .pstat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
/* A. Cards: white cards, number in the project's colour, coloured line on top */
.pstats.st-cards .pstat { position: relative; overflow: hidden; background: var(--win); border-radius: 16px; padding: 18px 16px 15px; box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 0 0 .5px rgba(127,127,127,.22); }
.pstats.st-cards .pstat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 45%, var(--c2))); }
.pstats.st-cards .pstat b { color: color-mix(in srgb, var(--c1) 82%, var(--text)); }
.ios-project .pstats.st-cards .pstat { background: var(--ios-card); }
/* B. Banner: one bold block in the project's colours, white numbers */
.pstats.st-banner { gap: 0; padding: 6px; border-radius: 18px; background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.28), transparent 45%), linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--c2) 35%, transparent); }
.pstats.st-banner .pstat { background: none; border-radius: 0; padding: 14px 14px 13px; color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.pstats.st-banner .pstat b { color: #fff; font-size: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pstats.st-banner .pstat span { color: rgba(255,255,255,.82); }
/* C. Tiles: softly tinted tiles with a coloured bar on the left */
.pstats.st-tiles .pstat { background: color-mix(in srgb, var(--c1) 11%, var(--win)); border-radius: 14px; padding: 14px 14px 13px 18px; border-left: 4px solid var(--c1); }
.pstats.st-tiles .pstat b { color: var(--text); }
.ios-project .pstats.st-tiles .pstat { background: color-mix(in srgb, var(--c1) 13%, var(--ios-card)); }
@media (max-width: 760px) { .pstats[class*="st-"] { grid-template-columns: 1fr 1fr; } .pstats[class*="st-"] .pstat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* =====================================================================
   CASE STUDIES
   ===================================================================== */
.cs { display: flex; height: 100%; outline: none; }
.cs-side { width: 230px; flex: none; padding: 14px 10px; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); }
.cs-side h5 { font-size: 11px; color: var(--muted); font-weight: 600; margin: 4px 8px 10px; }
.cs-th { display: grid; gap: 3px; width: 100%; text-align: left; padding: 8px; border-radius: 12px; color: var(--text); margin-bottom: 4px; }
.cs-th:hover { background: rgba(127,127,127,.12); }
.cs-th.on { background: rgba(127,127,127,.2); }
.cs-thumb { height: 74px; border-radius: 9px; padding: 8px 10px; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: flex-end; overflow: hidden; }
.cs-th b { font-size: 13px; margin-top: 4px; }
.cs-th small { font-size: 11.5px; color: var(--muted); }
.cs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 18px 12px; gap: 12px; }
.cs-stage { flex: 1; min-height: 0; border-radius: 16px; position: relative; overflow: hidden; color: #fff; transition: background .4s; }
.cs-slide { position: absolute; inset: 0; padding: 7% 7% 6%; display: flex; flex-direction: column; justify-content: center; animation: csIn .45s ease both; }
.cs-slide.from-r { animation-name: csInR; } .cs-slide.from-l { animation-name: csInL; }
@keyframes csIn { from { opacity: 0; transform: scale(.98); } }
@keyframes csInR { from { opacity: 0; transform: translateX(40px); } }
@keyframes csInL { from { opacity: 0; transform: translateX(-40px); } }
.cs-hash { position: absolute; right: -2%; bottom: -26%; font-size: min(46vw, 520px); font-weight: 900; line-height: 1; opacity: .07; pointer-events: none; }
.cs-kick { font-size: 13px; font-weight: 700; letter-spacing: .12em; opacity: .85; margin-bottom: 10px; }
.cs-slide { container-type: inline-size; }
.cs-h1 { font-size: min(clamp(34px, 5.4vw, 64px), calc(100cqi / (var(--n, 10) * .6))); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; } /* long hashtags shrink to fit */
.cs-h1.sm { font-size: clamp(28px, 4vw, 46px); }
.cs-sub { font-size: 18px; font-weight: 600; opacity: .85; margin-top: 6px; }
.cs-lead { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.55; max-width: 760px; margin-top: 18px; opacity: .95; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cs-meta span { background: rgba(255,255,255,.14); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-list { list-style: none; display: grid; gap: 14px; max-width: 820px; }
.cs-list li { display: flex; gap: 16px; align-items: flex-start; font-size: clamp(15px, 1.7vw, 20px); line-height: 1.45; animation: csUp .5s calc(var(--k) * .12s) ease both; }
.cs-list .cs-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 15px; font-style: normal; font-weight: 800; }
.cs-list li span b { font-weight: 800; }
@keyframes csUp { from { opacity: 0; transform: translateY(14px); } }
.cs-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cs-nums.n3 { grid-template-columns: repeat(3, 1fr); } .cs-nums.n4 { grid-template-columns: repeat(4, 1fr); }
.cs-nums div { background: rgba(255,255,255,.12); border-radius: 16px; padding: 18px 18px 16px; animation: csUp .5s calc(var(--k) * .1s) ease both; }
.cs-nums b { display: block; font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.cs-nums span { font-size: 14px; opacity: .88; }
.cs-quote { font-size: clamp(18px, 2.3vw, 28px); line-height: 1.4; font-weight: 600; max-width: 860px; border-left: 4px solid rgba(255,255,255,.6); padding-left: 22px; }
.cs-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cs-cta { padding: 11px 18px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 14px; }
.cs-cta:hover { background: rgba(255,255,255,.26); }
.cs-cta.primary { background: #fff; color: #111; }
.cs-page { position: absolute; right: 18px; bottom: 14px; font-size: 12px; font-weight: 700; opacity: .7; }
.cs-bar { display: flex; align-items: center; gap: 8px; }
.cs-btn { min-width: 36px; height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(127,127,127,.15); color: var(--text); font-weight: 600; font-size: 13.5px; }
.cs-btn:hover:not(:disabled) { background: rgba(127,127,127,.25); }
.cs-btn:disabled { opacity: .35; }
.cs-btn.play { background: var(--accent); color: #fff; }
.cs-dots { display: flex; gap: 6px; margin-left: 6px; }
.cs-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(127,127,127,.4); cursor: pointer; }
.cs-dots i.on { background: var(--accent); width: 20px; border-radius: 99px; }
.cs-sp { flex: 1; }
/* phone */
.ios-cases .ios-scroll { padding-top: 58px; }
.csm-list { display: grid; gap: 14px; margin-top: 16px; }
.csm-card { position: relative; display: grid; gap: 4px; text-align: left; color: #fff; min-height: 168px; padding: 18px; border-radius: 22px; align-content: end; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.csm-card small { font-size: 12.5px; font-weight: 600; opacity: .85; }
.csm-card b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.csm-card em { font-style: normal; font-size: 22px; font-weight: 800; } .csm-card em span { font-size: 13px; font-weight: 600; opacity: .85; }
.csm-play { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 14px; }
.csm-story { position: absolute; inset: 0; z-index: 20; color: #fff; display: flex; flex-direction: column; animation: csIn .3s ease both; }
.csm-bars { display: flex; gap: 4px; padding: 54px 14px 0; position: relative; z-index: 3; }
.csm-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); }
.csm-bars i.done, .csm-bars i.on { background: #fff; }
.csm-x { position: absolute; top: 64px; right: 12px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 22px; }
.csm-body { flex: 1; position: relative; }
.csm-body .cs-slide { padding: 40px 22px 60px; justify-content: center; }
.csm-body .cs-h1 { font-size: min(38px, calc(100cqi / (var(--n, 10) * .6))); } .csm-body .cs-lead { font-size: 16px; }
.csm-body .cs-nums, .csm-body .cs-nums.n3, .csm-body .cs-nums.n4 { grid-template-columns: 1fr 1fr; }
.csm-body .cs-nums b { font-size: 30px; }
.csm-body .cs-quote { font-size: 20px; }
.csm-body .cs-ctas { position: relative; z-index: 3; }
.csm-tap { position: absolute; top: 90px; bottom: 0; width: 34%; z-index: 2; }
.csm-tap.l { left: 0; } .csm-tap.r { right: 0; }
.csm-story .cs-ctas button { position: relative; z-index: 5; }

/* =====================================================================
   NEWS
   ===================================================================== */
.nw { display: flex; height: 100%; }
.nw-side { width: 210px; flex: none; padding: 14px 10px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.nw-brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin: 2px 8px 14px; }
.nw-logo svg { width: 26px; height: 26px; display: block; }
.nw-side button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 9px; color: var(--text); font-size: 14px; text-align: left; }
.nw-side button span { width: 20px; text-align: center; }
.nw-side button:hover { background: rgba(127,127,127,.12); }
.nw-side button.on { background: rgba(255,59,48,.14); color: #ff3b30; font-weight: 700; }
.nw-note { font-size: 12px; color: var(--muted); margin: 16px 10px 0; line-height: 1.45; }
.nw-main { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 26px 30px; }
.nw-head h1 { font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.nw-head small { color: var(--muted); font-size: 13.5px; }
.nw-sec { font-size: 15px; font-weight: 800; color: #ff3b30; margin: 18px 0 10px; }
.nw-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.nw-col { display: grid; gap: 16px; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.nw-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(127,127,127,.1); cursor: pointer; transition: transform .15s, box-shadow .15s; outline: none; }
.nw-card:hover, .nw-card:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.nw-art { position: relative; display: block; flex: none; height: 120px; overflow: hidden; }
.nw-card.big .nw-art { height: 250px; } .nw-card.mid .nw-art { height: 96px; }
.nw-art i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); font-style: normal; font-size: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.nw-card.big .nw-art i { font-size: 72px; }
.nw-art em { position: absolute; left: 12px; bottom: 9px; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; opacity: .85; letter-spacing: .02em; }
.nw-tx { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nw-src { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ff3b30; }
.nw-card h3 { font-size: 15.5px; line-height: 1.28; font-weight: 800; color: var(--text); }
.nw-card.big h3 { font-size: 23px; }
.nw-card p { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.nw-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.nw-proj, .nw-more { color: var(--accent); font-weight: 600; font-size: 12px; }
/* phone */
.ios-news .ios-scroll { padding-top: 56px; }
.nwm-brand { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: #ff3b30; }
.nwm-head small { color: var(--ios-muted); font-size: 14px; font-weight: 600; }
.nwm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 4px; padding: 0 16px; }
.nwm-chips button { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--ios-card); color: var(--ios-text); font-size: 14px; font-weight: 600; }
.nwm-chips button.on { background: #ff3b30; color: #fff; }
.nwm-sec { font-size: 20px; font-weight: 800; color: #ff3b30; margin: 14px 2px 10px; }
.ios-news .nw-card { background: var(--ios-card); margin-bottom: 12px; }
.ios-news .nw-card h3 { color: var(--ios-text); }
.ios-news .nw-card.big .nw-art { height: 200px; }
.ios-news .nw-card.row { flex-direction: row-reverse; align-items: stretch; }
.ios-news .nw-card.row .nw-art { width: 96px; height: auto; min-height: 96px; margin: 12px 12px 12px 0; border-radius: 10px; }
.ios-news .nw-card.row .nw-art i { font-size: 32px; } .ios-news .nw-card.row .nw-art em { display: none; }
.ios-news .nw-card.row h3 { font-size: 15.5px; }

/* =====================================================================
   BOOK A CALL
   ===================================================================== */
.bk { display: grid; grid-template-columns: 290px 1fr; height: 100%; color: var(--text); }
.bk-left { background: var(--side); padding: 22px 20px; border-right: 1px solid var(--line); overflow-y: auto; }
.bk-av .avatar { width: 56px; height: 56px; margin-bottom: 12px; }
.bk-left h3 { font-size: 19px; line-height: 1.25; }
.bk-left p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 8px; }
.bk-types { display: grid; gap: 8px; margin: 16px 0 6px; }
.bk-types button { display: flex; justify-content: space-between; padding: 11px 13px; border-radius: 12px; background: rgba(127,127,127,.12); color: var(--text); font-size: 13.5px; }
.bk-types button.on { background: rgba(10,132,255,.16); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-small { font-size: 12.5px !important; color: var(--muted); }
.bk-right { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bk-right h4 { font-size: 14px; font-weight: 700; margin-top: 4px; }
.bk-right h4 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.bk-days button { flex: none; width: 62px; padding: 8px 0; border-radius: 12px; display: grid; justify-items: center; gap: 1px; background: rgba(127,127,127,.12); color: var(--text); }
.bk-days button b { font-size: 19px; } .bk-days button small { font-size: 11px; color: var(--muted); }
.bk-days button.on { background: var(--accent); color: #fff; } .bk-days button.on small { color: rgba(255,255,255,.85); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.bk-slots button { padding: 10px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 600; font-size: 13.5px; }
.bk-slots button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-slots button.on { background: var(--accent); color: #fff; box-shadow: none; }
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.bk-form input, .bk-form textarea { border: 0; outline: none; border-radius: 10px; padding: 11px 12px; font: 14px var(--font); color: var(--text); background: rgba(127,127,127,.12); }
.bk-form textarea { grid-column: span 2; resize: none; }
.bk-form input:focus, .bk-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-send { padding: 11px 20px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.bk-send:disabled { opacity: .45; }
.bk-status { font-size: 12.5px; color: var(--muted); }
.bk-done { margin: auto; text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 380px; }
.bk-check { width: 64px; height: 64px; border-radius: 50%; background: #30d158; color: #fff; font-size: 32px; display: grid; place-items: center; }
.bk-ics { margin-top: 6px; padding: 10px 18px; border-radius: 99px; background: rgba(127,127,127,.15); color: var(--text); font-weight: 600; font-size: 13.5px; }
.bk-open { margin-left: auto; align-self: center; padding: 9px 16px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.cm-top .bk-open-ios { padding: 0 12px; font-size: 13px; font-weight: 600; }
/* phone booking */
.bk-ios { display: block; overflow-y: auto; height: 100%; padding: 54px 16px 40px; background: var(--ios-bg); color: var(--ios-text); }
.bk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bk-top b { font-size: 17px; } .bk-top span { width: 54px; }
.bk-cancel { color: #0a84ff; font-size: 16px; }
.bk-ios .bk-left { background: none; border: 0; padding: 0; }
.bk-ios .bk-right { padding: 14px 0 0; overflow: visible; }
.bk-ios .bk-form { grid-template-columns: 1fr; } .bk-ios .bk-form textarea { grid-column: auto; }
.bk-ios .bk-types button, .bk-ios .bk-days button, .bk-ios .bk-form input, .bk-ios .bk-form textarea { background: var(--ios-card); color: var(--ios-text); }
.bk-ios .bk-slots button { color: var(--ios-text); }
.bk-ios .bk-form input, .bk-ios .bk-form textarea { font-size: 16px; }
.cs-nums.many b { font-size: clamp(26px, 3vw, 40px); }
.cs-nums > div { min-width: 0; } .cs-nums b { overflow-wrap: anywhere; }
.bk-ios .bk-days button.on, .bk-ios .bk-types button.on { background: var(--accent); color: #fff; }
.bk-ios .bk-days button.on small { color: rgba(255,255,255,.85); }
.bk-ios .bk-slots button.on { color: #fff; }
.cs-nums b { overflow-wrap: normal; white-space: nowrap; font-size: clamp(26px, 3.3vw, 46px); }

/* =====================================================================
   CASE STUDY CHARTS (slides with chart: in content.js caseSlides)
   ===================================================================== */
.cc-s0 { --cc: #fff; } .cc-s1 { --cc: #ffd60a; } .cc-s2 { --cc: #64d2ff; }
.cc-note { margin-top: 14px; font-size: 13.5px; opacity: .78; }
.cc-legend { display: flex; gap: 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.cc-legend i, .cc-keys i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--cc); margin-right: 7px; vertical-align: -1px; }
/* columns */
.cc-bars { position: relative; display: flex; align-items: flex-end; gap: 4%; height: clamp(170px, 46%, 300px); padding: 26px 2% 0; border-bottom: 2px solid rgba(255,255,255,.35); }
.cc-grp { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.cc-cols { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 8%; }
.cc-col { position: relative; flex: 0 1 64px; height: var(--h); border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, var(--cc), color-mix(in srgb, var(--cc) 55%, transparent));
  transform-origin: bottom; animation: ccGrow .9s calc(.15s + var(--k) * .12s) cubic-bezier(.2,.8,.2,1) both; }
.cc-col.hit { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 24px color-mix(in srgb, var(--cc) 60%, transparent); }
.cc-col em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; font-style: normal; font-weight: 800; font-size: clamp(13px, 1.5vw, 18px); white-space: nowrap; animation: csUp .5s calc(.6s + var(--k) * .12s) ease both; }
.cc-grp small { position: absolute; top: 100%; left: 0; right: 0; text-align: center; margin-top: 8px; font-size: 13.5px; font-weight: 700; opacity: .9; }
.cc-bars:has(small) { margin-bottom: 30px; }
.cc-target { position: absolute; left: 0; right: 0; bottom: var(--t); border-top: 2px dashed rgba(255,255,255,.75); z-index: 2; pointer-events: none; animation: csUp .5s .2s ease both; }
.cc-legend i.cc-dash { width: 18px; height: 0; border-radius: 0; background: none; border-top: 2px dashed rgba(255,255,255,.85); vertical-align: 3px; }
@keyframes ccGrow { from { transform: scaleY(0); } }
/* funnel */
.cc-funnel { display: grid; justify-items: center; gap: 6px; }
.cc-step { width: var(--w); min-width: 220px; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); animation: ccWide .8s calc(var(--k) * .25s) cubic-bezier(.2,.8,.2,1) both; }
.cc-step:last-child { background: rgba(255,255,255,.95); color: #1d1d1f; }
.cc-step b { font-size: clamp(24px, 2.8vw, 38px); font-weight: 900; letter-spacing: -.02em; } .cc-step span { font-size: 14px; opacity: .9; }
.cc-rate { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.28); animation: csUp .4s calc(.2s + var(--k) * .25s) ease both; }
@keyframes ccWide { from { transform: scaleX(.3); opacity: 0; } }
/* donut */
.cc-donut { display: flex; align-items: center; gap: 6%; }
.cc-ring { position: relative; width: clamp(170px, 30%, 250px); aspect-ratio: 1; flex: none; }
.cc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cc-ring circle { fill: none; stroke-width: 6; }
.cc-track { stroke: rgba(255,255,255,.15); }
.cc-seg { stroke: var(--cc); stroke-dasharray: var(--len) calc(100 - var(--len)); stroke-dashoffset: var(--off); animation: ccDraw 1.1s calc(.2s + var(--k) * .35s) cubic-bezier(.3,.7,.2,1) both; }
@keyframes ccDraw { from { stroke-dasharray: 0 100; } }
.cc-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cc-center b { font-size: clamp(24px, 2.8vw, 36px); font-weight: 900; } .cc-center span { font-size: 12.5px; opacity: .85; }
.cc-keys { display: grid; gap: 14px; }
.cc-keys > div { animation: csUp .5s calc(.5s + var(--k) * .2s) ease both; }
.cc-keys b { font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: -.02em; display: block; line-height: 1.1; }
.cc-keys span { font-size: 14px; opacity: .88; }
.cc-keys.row { grid-auto-flow: column; justify-content: start; gap: 40px; margin-top: 18px; }
/* stack */
.cc-total { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; animation: csUp .5s ease both; }
.cc-bar { display: flex; height: 46px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.12); }
.cc-bar i { width: var(--w); background: var(--cc); transform-origin: left; animation: ccWide .9s calc(.2s + var(--k) * .3s) cubic-bezier(.2,.8,.2,1) both; }
.cc-bar i + i { box-shadow: inset 3px 0 0 rgba(0,0,0,.25); }
/* ladder */
.cc-ladder { display: grid; gap: 14px; }
.cc-rung { display: grid; grid-template-columns: 6.4em 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; animation: csUp .5s calc(var(--k) * .15s) ease both; }
.cc-rung b { grid-row: span 2; font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; }
.cc-track2 { height: 14px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.cc-track2 i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.65), #fff); transform-origin: left; animation: ccWide 1s calc(.25s + var(--k) * .15s) cubic-bezier(.2,.8,.2,1) both; }
.cc-rung span { font-size: 13.5px; opacity: .88; margin-top: 4px; }
/* scorecard */
.cc-score { display: grid; gap: 8px; max-width: 860px; }
.cc-row { display: grid; grid-template-columns: 1fr auto 30px; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.12); animation: csUp .45s calc(var(--k) * .12s) ease both; }
.cc-row span { font-size: 14.5px; opacity: .92; } .cc-row b { font-size: clamp(14px, 1.6vw, 18px); font-weight: 800; text-align: right; }
.cc-row i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #30d158; color: #04210f; font-style: normal; font-weight: 900; font-size: 14px; animation: ccPop .4s calc(.35s + var(--k) * .12s) cubic-bezier(.3,1.6,.5,1) both; }
.cc-done { justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 99px; background: #30d158; color: #04210f; animation: ccPop .4s calc(.4s + var(--k) * .12s) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes ccPop { from { transform: scale(0); } }
/* hub */
.cc-hub { display: grid; justify-items: center; gap: 0; }
.cc-core { width: 196px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 10px; background: rgba(255,255,255,.95); color: #1d1d1f;
  box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 0 0 22px rgba(255,255,255,.07); animation: ccPop .6s cubic-bezier(.3,1.4,.5,1) both; }
.cc-core b { font-size: 16.5px; font-weight: 900; letter-spacing: -.01em; } .cc-core span { font-size: 11.5px; font-weight: 600; opacity: .75; margin-top: 3px; }
.cc-nodes { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 14px; width: 100%; margin-top: 34px; position: relative; }
.cc-nodes::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: -18px; border-top: 2px solid rgba(255,255,255,.45); animation: ccWide .6s .3s ease both; }
.cc-node { position: relative; display: grid; justify-items: center; text-align: center; gap: 3px; padding: 14px 10px; border-radius: 14px; background: rgba(255,255,255,.13); animation: csUp .5s calc(.45s + var(--k) * .15s) ease both; }
.cc-node::before { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 2px solid rgba(255,255,255,.45); }
.cc-node > span { font-size: 26px; } .cc-node b { font-size: 15.5px; font-weight: 800; } .cc-node small { font-size: 12.5px; opacity: .85; line-height: 1.35; }
.cc-hub::before { content: ""; height: 18px; border-left: 2px solid rgba(255,255,255,.45); order: 1; margin-top: 22px; }
.cc-hub .cc-core { order: 0; } .cc-hub .cc-nodes { order: 2; margin-top: 18px; }
/* phone stories */
.csm-body .cc-bars { height: 220px; }
.csm-body .cc-donut { flex-direction: column; gap: 22px; } .csm-body .cc-ring { width: 190px; }
.csm-body .cc-keys:not(.row) { grid-template-columns: 1fr 1fr; width: 100%; }
.csm-body .cc-keys.row { gap: 22px; }
.csm-body .cc-step { min-width: 0; width: max(var(--w), 62%); flex-direction: column; align-items: center; gap: 0; padding: 10px 12px; }
.csm-body .cc-row { grid-template-columns: 1fr 26px; } .csm-body .cc-row b { grid-column: 1; grid-row: 2; text-align: left; } .csm-body .cc-row i { grid-row: span 2; grid-column: 2; grid-row-start: 1; }
.csm-body .cc-nodes { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; } .csm-body .cc-nodes::before, .csm-body .cc-node::before { display: none; }
.csm-body .cc-node { grid-template-columns: 36px 1fr; justify-items: start; text-align: left; column-gap: 10px; padding: 10px 12px; } .csm-body .cc-node > span { grid-row: span 2; font-size: 24px; }
.csm-body .cc-core { width: 168px; } .csm-body .cc-core b { font-size: 15px; }

/* =====================================================================
   SPOTIFY NOW PLAYING (spotify-widget.js)
   Computer: a play icon in the menu bar opens a Now Playing card.
   Phone: a Now Playing card at the top of the Music app.
   ===================================================================== */
.np-mb[hidden], .np-card[hidden] { display: none !important; }
.np-mb svg { width: 17px; height: 17px; }
.np-mb.open { background: rgba(255,255,255,.28); }
.np-mb.live svg .np-ring { stroke: #1ed760; }
.np-card { position: fixed; top: calc(var(--mb-h, 28px) + 6px); z-index: 9500; width: 380px; padding: 16px; border-radius: 20px; color: var(--text);
  background: var(--glass-strong); backdrop-filter: blur(34px) saturate(1.6); -webkit-backdrop-filter: blur(34px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 18px 50px rgba(0,0,0,.3); animation: npIn .18s ease both; }
@keyframes npIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.np-box { display: flex; gap: 16px; align-items: center; }
.np-cover { width: 124px; height: 124px; flex: none; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, #1ed760, #0a5a2a); display: grid; place-items: center; font-size: 34px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.np-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.np-top { display: flex; align-items: flex-start; gap: 8px; }
.np-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { font-size: 14px; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; margin-top: 4px; flex: none; }
.np-eq i { width: 2.5px; height: 30%; border-radius: 2px; background: #1ed760; animation: npEq 1s ease-in-out infinite; }
.np-eq i:nth-child(2) { animation-delay: .25s; } .np-eq i:nth-child(3) { animation-delay: .5s; } .np-eq i:nth-child(4) { animation-delay: .15s; }
@keyframes npEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.np-status { font-size: 12px; font-weight: 600; opacity: .62; margin-top: 2px; }
.np-live .np-status { color: #1aa34a; opacity: 1; }
.np-prog { margin-top: 10px; }
.np-bar { height: 5px; border-radius: 99px; background: rgba(127,127,127,.28); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent, #0a84ff); transition: width 1s linear; }
.np-times { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .62; }
.np-open { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 99px; background: #1ed760; color: #000 !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; }
.np-open svg { width: 18px; height: 18px; } .np-open svg circle { fill: #000; } .np-open svg path { stroke: #1ed760; }
/* Music app: Now Playing / Recently Played (computer and phone) */
.mu-libic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 15px; background: rgba(127,127,127,.14); }
.mu-librow.active .mu-libic { background: #1ed760; color: #000; }
.mu-side .mu-lib + h5 { margin-top: 14px; }
.npv { padding: 26px 30px 30px; color: var(--text); animation: npIn .25s ease both; }
.npv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.npv-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.npv-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(127,127,127,.35); white-space: nowrap; }
.npv-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.npv-badge.on { color: #1db954; background: rgba(30,215,96,.1); box-shadow: inset 0 0 0 1.5px rgba(30,215,96,.55); }
.npv-badge.on i { animation: npPulse 1.6s ease-in-out infinite; }
@keyframes npPulse { 50% { opacity: .3; } }
.npv-hero { display: flex; gap: 30px; align-items: center; }
.npv-cover { width: 230px; height: 230px; flex: none; border-radius: 16px; object-fit: cover; display: grid; place-items: center; font-size: 60px;
  background: linear-gradient(135deg, #5e8bff, #1ed760 55%, #ff9f0a); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.npv-info { flex: 1; min-width: 0; }
.npv-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.npv-artist { margin-top: 8px; font-size: 17px; font-weight: 500; opacity: .85; }
.npv-meta { margin-top: 3px; font-size: 14px; color: var(--muted); }
.npv .np-prog { margin-top: 22px; }
.npv .np-bar { height: 6px; } .npv .np-bar i { background: #1ed760; }
.npv .np-times { font-size: 12.5px; }
.npv-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.npv-play { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #1ed760; color: #000 !important; box-shadow: 0 8px 22px rgba(30,215,96,.35); transition: transform .15s; }
.npv-play:hover { transform: scale(1.06); text-decoration: none; }
.npv-play svg { width: 26px; height: 26px; fill: currentColor; }
.npv-hint { font-size: 13.5px; font-weight: 600; color: var(--muted); flex: 1; }
.npv-ctrl .np-eq { height: 26px; gap: 4px; margin: 0; } .npv-ctrl .np-eq i { width: 5px; }
.npv-sub { margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--line, rgba(127,127,127,.2)); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.npv-head + .npv-sub { margin-top: 0; padding-top: 0; border-top: 0; }
.npv-list { display: grid; gap: 2px; }
.npv-row { display: flex; align-items: center; gap: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text) !important; text-decoration: none !important; }
.npv-row:hover { background: rgba(127,127,127,.12); }
.npv-row img, .npv-row > span { width: 46px; height: 46px; flex: none; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.npv-row div { flex: 1; min-width: 0; display: grid; }
.npv-row b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npv-row small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npv-row time { font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.npv-none { color: var(--muted); }
.npv-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding-top: 90px; }
.npv-ic svg { width: 54px; height: 54px; } .npv-empty p { color: var(--muted); }
/* inside the phone Music app */
.np-music { margin: 4px 0 22px; }
.np-music[hidden] { display: none; }
.np-music .npv { padding: 16px; border-radius: 20px; background: var(--bubble, rgba(127,127,127,.12)); }
.np-music .npv-head { margin-bottom: 14px; } .np-music .npv-head h2 { font-size: 18px; }
.np-music .npv-badge { font-size: 9.5px; padding: 5px 9px; letter-spacing: .08em; }
.np-music .npv-hero { flex-direction: column; align-items: stretch; gap: 16px; }
.np-music .npv-cover { width: 100%; height: auto; aspect-ratio: 1; max-height: 320px; }
.np-music .npv-info h1 { font-size: 24px; }
.np-music .npv-artist { font-size: 16px; margin-top: 4px; }
.np-music .npv-ctrl { margin-top: 14px; } .np-music .npv-play { width: 54px; height: 54px; }
.np-music .npv-sub { margin-top: 18px; padding-top: 16px; } .np-music .npv-sub span { display: none; }
.np-music .npv-row { margin: 0 -8px; padding: 7px 8px; } .np-music .npv-row img, .np-music .npv-row > span { width: 42px; height: 42px; }

/* =====================================================================
   CASE STUDIES: motion design for numbers and charts
   (result cards with count-up numbers and gauges, funnel, level bars,
   a slowly moving light behind every slide)
   ===================================================================== */
/* moving light behind the slide */
.cs-stage::before, .csm-story::before { content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: -1;
  background: radial-gradient(38% 42% at 22% 24%, rgba(255,255,255,.2), transparent 70%), radial-gradient(34% 38% at 80% 78%, rgba(255,255,255,.11), transparent 70%);
  animation: csDrift 16s ease-in-out infinite alternate; }
@keyframes csDrift { from { transform: translate3d(-4%, -3%, 0) rotate(0deg); } to { transform: translate3d(5%, 4%, 0) rotate(8deg); } }
.cs-stage, .csm-story { isolation: isolate; }
.cs-slide [data-cu] { font-variant-numeric: tabular-nums; }

/* ---- result cards ---- */
.cs-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cs-stat { grid-column: span 2; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 22px 22px 24px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: csPop .6s calc(var(--k) * .11s) cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes csPop { from { opacity: 0; transform: translateY(22px) scale(.94); } }
.cs-stats.c1 .cs-stat { grid-column: span 6; }
.cs-stats.c2 .cs-stat, .cs-stats.c4 .cs-stat { grid-column: span 3; }
.cs-stats.c5 .cs-stat:nth-child(n+4) { grid-column: span 3; }
.cs-stat-t { flex: 1; min-width: 0; container-type: inline-size; }
.cs-stat b { display: block; white-space: nowrap; font-weight: 900; letter-spacing: -.035em; line-height: 1.02; font-size: min(clamp(30px, 4.6vw, 62px), calc(158cqi / var(--n))); text-shadow: 0 3px 14px rgba(0,0,0,.18); }
.cs-stat span { display: block; margin-top: 7px; font-size: 14.5px; line-height: 1.3; opacity: .9; }
/* a light sweeps across each card once, then a line fills along the bottom */
.cs-stat::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg);
  animation: csSweep 1.1s calc(.35s + var(--k) * .11s) ease-out both; pointer-events: none; }
@keyframes csSweep { to { left: 130%; } }
.cs-fill { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.35)); transform-origin: left;
  animation: csFill 1.3s calc(.2s + var(--k) * .11s) cubic-bezier(.2,.8,.2,1) both; }
@keyframes csFill { from { transform: scaleX(0); } }
/* ring gauge for percentages */
.cs-gauge { flex: none; width: clamp(54px, 6vw, 84px); aspect-ratio: 1; transform: rotate(-90deg); }
.cs-gauge circle { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.cs-gauge .t { stroke: rgba(255,255,255,.2); }
.cs-gauge .v { stroke: #fff; stroke-dasharray: var(--len) calc(100 - var(--len)); animation: ccDraw 1.4s calc(.3s + var(--k) * .11s) cubic-bezier(.3,.7,.2,1) both; }
.cs-gauge.full .v { stroke: #ffd60a; filter: drop-shadow(0 0 5px rgba(255,214,10,.7)); }

/* ---- funnel ---- */
.cf { display: grid; justify-items: center; gap: 5px; }
.cf-step { width: 100%; display: grid; justify-items: center; gap: 5px; }
.cf-bar { width: var(--w); min-width: 190px; height: clamp(52px, 8.5vh, 76px); display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.14));
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 22px 100%); animation: cfIn .85s calc(var(--k) * .28s) cubic-bezier(.2,.85,.25,1) both; }
@keyframes cfIn { from { opacity: 0; transform: scaleX(.25) translateY(-10px); } }
.cf-step:last-child .cf-bar { background: #fff; color: #1d1d1f; }
.cf-bar b { font-size: clamp(26px, 3.2vw, 44px); font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.cf-step > span { font-size: 14px; font-weight: 600; opacity: .92; text-align: center; animation: csUp .5s calc(.3s + var(--k) * .28s) ease both; }
.cf-rate { margin: 2px 0; font-size: 12.5px; font-weight: 800; padding: 3px 11px; border-radius: 99px; background: rgba(0,0,0,.3); animation: ccPop .45s calc(.15s + var(--k) * .28s) cubic-bezier(.3,1.6,.5,1) both; }

/* ---- level bars ("ladder"): numbers get their own column, so they never touch the bars ---- */
.cc-ladder { grid-template-columns: max-content 1fr; column-gap: 20px; row-gap: 0; align-items: center; }
.cc-rung { display: contents; animation: none; }
.cc-rung b { grid-row: span 2; white-space: nowrap; font-size: clamp(24px, 3vw, 40px); animation: csUp .5s calc(var(--k) * .15s) ease both; }
.cc-track2 { height: 20px; margin-top: 16px; overflow: visible; background: rgba(255,255,255,.16); }
.cc-rung:first-child .cc-track2 { margin-top: 0; }
.cc-track2 i { position: relative; background: linear-gradient(90deg, rgba(255,255,255,.45), #fff); box-shadow: 0 0 18px rgba(255,255,255,.35); }
.cc-track2 i::after { content: ""; position: absolute; right: -3px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 0 22px rgba(255,255,255,.8);
  animation: ccPulse 2.2s 1.2s ease-in-out infinite; }
@keyframes ccPulse { 50% { box-shadow: 0 0 0 11px rgba(255,255,255,.08), 0 0 26px rgba(255,255,255,.9); } }
.cc-rung span { margin-top: 6px; font-size: 14px; animation: csUp .5s calc(.1s + var(--k) * .15s) ease both; }

/* ---- columns: a little taller and wider, a glow on the ones that beat the target ---- */
.cc-bars { height: clamp(200px, 52%, 340px); }
.cc-col { flex-basis: 84px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cc-col.hit { animation: ccGrow .9s calc(.15s + var(--k) * .12s) cubic-bezier(.2,.8,.2,1) both, ccGlow 2.4s 1.4s ease-in-out infinite; }
@keyframes ccGlow { 50% { box-shadow: 0 0 0 2px #fff, 0 0 34px color-mix(in srgb, var(--cc) 85%, transparent); } }
.cc-col em { font-size: clamp(14px, 1.7vw, 21px); }
.cc-bar { height: 54px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* ---- phone stories ---- */
.csm-story { overflow: hidden; }
.csm-body .cs-stats { gap: 10px; }
.csm-body .cs-stats .cs-stat { grid-column: span 3; padding: 16px 14px 18px; border-radius: 16px; gap: 8px; }
.csm-body .cs-stats.c1 .cs-stat, .csm-body .cs-stats .cs-stat:last-child:nth-child(odd) { grid-column: span 6; }
.csm-body .cs-stat b { font-size: min(34px, calc(150cqi / var(--n))); }
.csm-body .cs-stat span { font-size: 13px; }
.csm-body .cs-gauge { width: 44px; }
.csm-body .cf-bar { min-width: 150px; height: 56px; }
.csm-body .cc-rung b { font-size: 24px; }
.csm-body .cc-ladder { column-gap: 14px; }
/* gauge sits in the card's bottom-right corner, so the number keeps the full width */
.cs-gauge { position: absolute; right: 16px; bottom: 18px; width: clamp(40px, 4.2vw, 58px); }
.cs-stat:has(.cs-gauge) .cs-stat-t span { padding-right: clamp(48px, 5vw, 68px); }
.csm-body .cs-gauge { width: 36px; right: 12px; bottom: 14px; }
.csm-body .cs-stat:has(.cs-gauge) .cs-stat-t span { padding-right: 42px; }
.cc-center b { font-size: clamp(20px, 2.3vw, 30px); }

/* =====================================================================
   ARCADE (computer only)
   ===================================================================== */
#home .home-app[data-app="arcade"] { display: none !important; }
.arc { height: 100%; overflow-y: auto; padding: 26px 30px 22px; background: linear-gradient(180deg, rgba(122,31,209,.08), transparent 220px); }
.arc-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.arc-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.arc-hero { width: 100%; margin-top: 18px; display: flex; align-items: center; gap: 22px; text-align: left; padding: 22px 24px; border-radius: 22px; color: #fff;
  background: radial-gradient(500px 200px at 85% 0%, rgba(255,255,255,.22), transparent 70%), linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 14px 34px rgba(0,0,0,.18); transition: transform .15s; }
.arc-hero:hover { transform: translateY(-2px); }
.arc-hero > div { flex: 1; min-width: 0; }
.arc-kick { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.arc-hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.arc-hero p { font-size: 14px; opacity: .9; line-height: 1.45; max-width: 520px; }
.arc-play { display: inline-block; background: rgba(127,127,127,.16); color: var(--accent, #0a84ff); font-weight: 700; font-size: 13.5px; padding: 6px 18px; border-radius: 99px; white-space: nowrap; }
.arc-play.big { background: #fff; color: #1d1d1f; font-size: 15px; padding: 9px 26px; }
.arc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.arc-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 18px; background: rgba(127,127,127,.08); transition: background .15s, transform .15s; min-width: 0; }
.arc-card:hover { background: rgba(127,127,127,.15); transform: translateY(-1px); }
.arc-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.arc-info b { font-size: 15.5px; }
.arc-info small { font-size: 12px; color: var(--muted); }
.arc-info span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arc-side { display: grid; justify-items: center; gap: 4px; }
.arc-side small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.arc-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.arc-player { height: 100%; display: flex; flex-direction: column; }
.arc-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(127,127,127,.18); font-size: 13.5px; }
.arc-back { color: var(--accent, #0a84ff); font-weight: 600; font-size: 14px; padding: 4px 8px; border-radius: 8px; }
.arc-back:hover { background: rgba(127,127,127,.12); }
.arc-sp { flex: 1; }
.arc-bar small { color: var(--muted); }
.arc-player iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* =====================================================================
   WHOOP app: dark bento grid where every card keeps moving on its own clock
   (motion language from the bento-ui-motion-grid skill). Text uses text
   colours only; colour lives on the marks; status = colour + icon + label.
   ===================================================================== */
.wh { --bg: #07080a; --s1: #101215; --s2: #16191e; --tray: #0c0d10; --ink: #f2f1ee; --ink2: #c3c2b7; --mute: #8b8a84; --line: rgba(255,255,255,.07);
  --blue: #3987e5; --blue-track: #15243b; --good: #0ca30c;
  position: relative; height: 100%; overflow-y: auto; color: var(--ink); background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-feature-settings: "tnum", "cv11", "ss01"; isolation: isolate; }
.wh::before { content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 32% at 18% 12%, rgba(57,135,229,.16), transparent 70%), radial-gradient(32% 28% at 88% 18%, rgba(12,163,12,.10), transparent 70%), radial-gradient(45% 40% at 60% 100%, rgba(144,133,233,.10), transparent 70%);
  animation: whDrift 22s ease-in-out infinite alternate; }
@keyframes whDrift { to { transform: translate(4%, -3%) rotate(4deg); } }
.wh-host { min-height: 100%; }
.wh-in { position: relative; padding: 16px 20px 12px; display: flex; flex-direction: column; gap: 12px; }

/* header */
.wh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wh-brand { display: flex; align-items: center; gap: 10px; }
.wh-brand b { font-size: 18px; font-weight: 900; letter-spacing: .16em; }
.wh-brand span:last-child { color: var(--mute); font-size: 13px; font-weight: 600; }
.wh-logo { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #08090b; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(255,255,255,.12); }
.wh-logo svg { width: 20px; height: 12px; }
.wh-logo.big { width: 64px; height: 64px; border-radius: 16px; } .wh-logo.big svg { width: 40px; height: 26px; }
.wh-logo.pulse { animation: whPulse 1.4s ease-in-out infinite; }
@keyframes whPulse { 50% { opacity: .45; transform: scale(.94); } }
.wh-sync { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding: 6px 12px; border-radius: 99px; background: rgba(12,163,12,.12); box-shadow: inset 0 0 0 1px rgba(12,163,12,.45); }
.wh-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: whPing 2s ease-out infinite; }
.wh-sync::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); animation: whSheen 4s ease-in-out infinite; }
.wh-sync.stale { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: var(--ink2); }
.wh-sync.stale i { background: var(--mute); animation: none; } .wh-sync.stale::after { display: none; }
@keyframes whPing { 0% { box-shadow: 0 0 0 0 rgba(12,163,12,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(12,163,12,0); } }
@keyframes whSheen { 60%, 100% { transform: translateX(100%); } }

/* bento grid */
.wh-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1.05fr 1.1fr; grid-template-rows: 138px 138px 196px;
  grid-template-areas: "rec rec str stp" "rec rec str wk" "slp stg stg stg"; }
.wh-grid.no-wk { grid-template-areas: "rec rec str stp" "rec rec str stp" "slp stg stg stg"; }
.wh-grid.no-stp { grid-template-areas: "rec rec str wk" "rec rec str wk" "slp stg stg stg"; }
.wh-grid.no-sl { grid-template-rows: 138px 138px; }
.wh-rec { grid-area: rec; } .wh-strain { grid-area: str; } .wh-steps { grid-area: stp; } .wh-work { grid-area: wk; } .wh-slp { grid-area: slp; } .wh-stg { grid-area: stg; }
.wh-card { position: relative; overflow: hidden; min-width: 0; background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.25); transition: border-color .2s ease; will-change: transform; }
.wh-card:hover { border-color: rgba(255,255,255,.15); }
.wh-ct { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--mute); }
.wh .rl { display: inline-flex; } .wh .rc { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: bottom; }
.wh .rc > span { display: block; } .wh .rc b, .wh .rc span b { display: block; height: 1.2em; font-weight: inherit; }
.wh-hero b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wh-sub { display: block; font-size: 12px; color: var(--ink2); }

/* recovery: orb with ripples + zone strip with a spring glider */
.wh-rec { display: flex; flex-direction: column; background: radial-gradient(120% 90% at 18% 40%, color-mix(in srgb, var(--z) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--s2), var(--s1)); }
.wh-rmain { flex: 1; display: flex; align-items: center; gap: 22px; }
.wh-orb { position: relative; width: 140px; height: 140px; margin-left: -4px; flex: none; display: grid; place-items: center; }
.wh-rip { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--z); opacity: 0; }
.wh-core { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--z) 65%, #fff), var(--z) 62%, color-mix(in srgb, var(--z) 70%, #000));
  box-shadow: 0 0 40px color-mix(in srgb, var(--z) 55%, transparent), inset 0 -6px 14px rgba(0,0,0,.25); }
.wh-sheen { position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(255,255,255,.35) 72%, transparent 84%); }
.wh .wh-core svg { position: relative; width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wh-core path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.wh-core b { position: relative; font-size: 24px; font-weight: 900; color: #fff; }
.wh-rec.pending .wh-core { background: #2a2d33; box-shadow: none; } .wh-rec.pending .wh-rip { border-style: dashed; }
.wh-zone b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.wh-zone small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink2); }
.wh-zbar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); }
.wh-zbar span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; font-size: 12px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.wh .wh-zbar svg { width: 13px; height: 13px; fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.wh-zbar span.on { color: var(--ink); } .wh-zbar span.on svg { opacity: 1; }
.wh-puck { --p: 0; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--z) 70%, transparent), 0 0 calc(8px + 10px * var(--p)) color-mix(in srgb, var(--z) 40%, transparent); }

/* strain: gauge + comet + band scale */
.wh-strain { display: flex; flex-direction: column; align-items: center; }
.wh-strain .wh-ct { align-self: flex-start; }
.wh-gauge { position: relative; width: var(--gs, 156px); height: var(--gs, 156px); margin: auto; }
.wh .wh-arc { width: var(--gs, 156px) !important; height: var(--gs, 156px) !important; display: block; overflow: visible; }
.wh-arc-fill[hidden] { display: none; }
.wh-arc circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.wh-arc-track { stroke: var(--blue-track); }
.wh-arc-fill { stroke: var(--blue); }
.wh-ticks line { stroke: rgba(255,255,255,.18); stroke-width: 1.2; stroke-linecap: round; }
.wh .wh-arc .wh-comet { fill: #cfe3ff; stroke: none; }
.wh .wh-arc .wh-head { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.wh-gv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.wh-gv b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.wh-gv small { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 3px; }
.wh-scale { position: relative; width: 100%; padding-top: 10px; }
.wh-sbar { display: flex; gap: 3px; height: 6px; }
.wh-sbar span { border-radius: 3px; background: color-mix(in srgb, var(--blue) calc(25% + var(--i) * 25%), var(--blue-track)); }
.wh-smark { --p: 0; position: absolute; top: 2px; width: 4px; height: 22px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 calc(4px + 8px * var(--p)) rgba(57,135,229,.9); }
.wh-chip { margin-top: 12px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: rgba(57,135,229,.16); box-shadow: inset 0 0 0 1px rgba(57,135,229,.45); color: var(--ink); }

/* steps: 10 blocks of 1,000 with a light sweep */
.wh-steps { display: flex; flex-direction: column; }
.wh-steps .wh-hero { margin-top: 2px; }
.wh-blocks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: auto 0 6px; }
.wh-blocks i { height: 16px; border-radius: 4px; background: var(--blue-track); overflow: hidden; }
.wh-blocks em { --g: 0; display: block; height: 100%; background: var(--blue); transform-origin: left; filter: brightness(calc(1 + .7 * var(--g))); }

/* workout */
.wh-work { display: flex; flex-direction: column; }
.wh-wrow { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.wh-wi { width: 44px; height: 44px; border-radius: 14px; background: rgba(57,135,229,.14); box-shadow: inset 0 0 0 1px rgba(57,135,229,.3); display: grid; place-items: center; font-size: 23px; flex: none; }
.wh-wi span { display: block; transform-origin: 50% 90%; }
.wh-wt { min-width: 0; display: grid; gap: 2px; } .wh-wt b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wh-wt small { color: var(--ink2); font-size: 12px; }
.wh-ws { margin-top: 8px; font-size: 11px; color: var(--mute); font-weight: 700; }
.wh-ws b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* last night */
.wh-slp { display: flex; flex-direction: column; background: radial-gradient(90% 70% at 85% 0%, rgba(85,152,231,.16), transparent 65%), linear-gradient(180deg, var(--s2), var(--s1)); }
.wh-moon { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; }
.wh .wh-moon svg { width: 22px; height: 22px; fill: #cfe3ff; stroke: none; position: absolute; right: 0; top: 2px; filter: drop-shadow(0 0 8px rgba(158,197,244,.6)); }
.wh-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; opacity: .4; }
.wh-star:nth-of-type(1) { left: -6px; top: 0; } .wh-star:nth-of-type(2) { left: 2px; top: 22px; width: 3px; height: 3px; } .wh-star:nth-of-type(3) { left: -14px; top: 15px; width: 3px; height: 3px; }
.wh-slp .wh-hero { margin-top: 10px; }
.wh-perf { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.wh .wh-ring { width: 46px !important; height: 46px !important; flex: none; }
.wh-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.wh-perf b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .wh-perf small { font-size: 11.5px; color: var(--mute); }

/* sleep stages: spotlight + glider */
.wh-stg { display: flex; flex-direction: column; }
.wh-stghead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wh-spot { display: flex; align-items: baseline; gap: 8px; }
.wh-spot-name { position: relative; display: inline-grid; font-size: 12.5px; font-weight: 700; color: var(--ink2); text-align: right; }
.wh-spot-name > span { grid-area: 1 / 1; }
.wh-spot-dur { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wh-spot-pct { font-size: 12.5px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 3ch; }
.wh-seg { display: flex; gap: 3px; height: 30px; margin: 12px 0 10px; }
.wh-part { --a: 0; width: var(--w); min-width: 4px; background: var(--c); border-radius: 6px; display: grid; place-items: center; transform-origin: left; cursor: default;
  filter: saturate(calc(.75 + .35 * var(--a))) brightness(calc(.85 + .3 * var(--a))); box-shadow: 0 0 calc(16px * var(--a)) color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 0 calc(2px * var(--a)) rgba(255,255,255,.55); }
.wh-part span { font-size: 11.5px; font-weight: 700; color: #fff; }
.wh-part[data-i="0"] span { color: #0b0b0b; }
.wh-tiles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; }
.wh-glider { --c: var(--blue); position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; opacity: 0; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 80%, transparent); pointer-events: none; }
.wh-tile { --a: 0; position: relative; display: grid; gap: 3px; text-align: left; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.035); color: var(--ink2); font: inherit; cursor: pointer; }
.wh-tile span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.wh-tile i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.wh-tile b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; opacity: calc(.7 + .3 * var(--a)); }
.wh-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wh-foot { font-size: 11px; color: var(--mute); text-align: center; line-height: 1.5; } .wh-foot a { color: var(--ink2); }
.wh-empty { min-height: 440px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--ink2); padding: 30px; }
.wh-empty h3 { color: var(--ink); font-size: 20px; }
.wh-retry { background: #fff; color: #08090b; font-weight: 700; padding: 8px 18px; border-radius: 99px; }

/* phone: two-column bento */
/* narrower windows: the grid adapts to the window's own width */
.wh { container-type: inline-size; container-name: wh; }
@container wh (max-width: 860px) {
  .wh-grid { grid-template-rows: minmax(130px, auto) minmax(130px, auto) minmax(190px, auto); }
  .wh-orb { width: 116px; height: 116px; } .wh-core { width: 66px; height: 66px; }
  .wh-zone b { font-size: 27px; } .wh-rmain { gap: 14px; }
  .wh-zbar span { font-size: 11px; gap: 4px; }
  .wh-strain { --gs: 136px; } .wh-gv b { font-size: 32px; }
  .wh-hero b { font-size: 25px; }
  .wh-tiles { grid-template-columns: 1fr 1fr; }
}
@container wh (max-width: 640px) {
  .wh-grid, .wh-grid.no-wk, .wh-grid.no-stp { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto;
    grid-template-areas: "rec rec" "str stp" "str wk" "slp slp" "stg stg"; }
  .wh-grid.no-wk { grid-template-areas: "rec rec" "str stp" "str stp" "slp slp" "stg stg"; }
  .wh-grid.no-stp { grid-template-areas: "rec rec" "str wk" "str wk" "slp slp" "stg stg"; }
}
.ios-whoop .ios-scroll { padding: 0; }
.ios-whoop .wh-in { padding: 54px 12px 40px; gap: 12px; }
.ios-whoop .wh-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 10px;
  grid-template-areas: "rec rec" "str stp" "str wk" "slp slp" "stg stg"; }
.ios-whoop .wh-grid.no-wk { grid-template-areas: "rec rec" "str stp" "str stp" "slp slp" "stg stg"; }
.ios-whoop .wh-grid.no-stp { grid-template-areas: "rec rec" "str wk" "str wk" "slp slp" "stg stg"; }
.ios-whoop .wh-card { padding: 13px 13px; border-radius: 20px; }
.ios-whoop .wh-rec { min-height: 230px; }
.ios-whoop .wh-orb { width: 112px; height: 112px; } .ios-whoop .wh-core { width: 64px; height: 64px; }
.ios-whoop .wh-zone b { font-size: 27px; }
.ios-whoop .wh-rmain { gap: 16px; margin: 6px 0 12px; }
.ios-whoop .wh-zbar span { font-size: 11px; gap: 4px; }
.ios-whoop .wh-strain { --gs: 132px; }
.ios-whoop .wh-gv b { font-size: 32px; }
.ios-whoop .wh-steps, .ios-whoop .wh-work { min-height: 128px; }
.ios-whoop .wh-hero b { font-size: 25px; }
.ios-whoop .wh-wrow { gap: 10px; } .ios-whoop .wh-wi { width: 40px; height: 40px; font-size: 21px; } .ios-whoop .wh-wt b { font-size: 15px; }
.ios-whoop .wh-slp { min-height: 150px; }
.ios-whoop .wh-tiles { grid-template-columns: 1fr 1fr; }
.ios-whoop .wh-spot-dur { font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  .wh *, .wh::before { animation: none !important; transition: none !important; }
}

/* =====================================================================
   PHONE HOME PAGES (swipe left/right when the apps need more than one screen)
   ===================================================================== */
.home-dots { display: none; }
@media (max-width: 760px) {
  #home { display: flex; padding-left: 0; padding-right: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  #home::-webkit-scrollbar { display: none; }
  .home-page { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 16px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; scroll-snap-align: start; scroll-snap-stop: always; }
  .home-dots { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: 143px; justify-content: center; z-index: 2; }
  .home-dots button { padding: 6px 4px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
  .home-dots[hidden], body:has(.window:not(.kept)) .home-dots { display: none; }
  .home-dots button i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.38); transition: background .2s; }
  .home-dots button.on i { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .wh-rip:nth-child(1) { opacity: .35; transform: scale(.92); } .wh-rip:nth-child(2) { opacity: .5; transform: scale(.75); } }

/* =====================================================================
   PLAYBOOK app: glass deck in the Shotok OS look. Follows the site setting
   (Light / Dark / Match System) like every other app.
   ===================================================================== */
.pb { --bg: #f5f5f7; --s1: #ffffff; --s2: #ffffff; --ink: #1d1d1f; --ink2: #3d3d42; --mute: #6e6e73; --line: rgba(20,20,22,.08);
  --acc: #3987e5; --acc2: #8b5cf6; --track: #dfe8f6; --good: #0ca30c; --good2: #0f8a0f;
  --f1: rgba(20,22,30,.045); --f2: rgba(20,22,30,.1); --f3: rgba(20,22,30,.2); --rail: rgba(255,255,255,.6); --well: rgba(20,22,30,.05);
  --eye: #2a6fd0; --needle: #1d1d1f; --comet: #2a6fd0; --halo: rgba(245,245,247,.92); --g1: #f3f7fd; --g2: #cfdcf2; --shade: 0 10px 28px rgba(20,30,60,.08); --chip: #ffffff;
  height: 100%; color: var(--ink); background: var(--bg); position: relative; isolation: isolate;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-feature-settings: "tnum", "cv11", "ss01"; }
.pb::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 78% 12%, rgba(57,135,229,.16), transparent 70%), radial-gradient(35% 30% at 15% 90%, rgba(139,92,246,.12), transparent 70%); }
.pb .rl { display: inline-flex; } .pb .rc { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: bottom; }
.pb .rc > span { display: block; } .pb .rc b { display: block; height: 1.15em; font-weight: inherit; }
.pb .rl, .pb .rl span { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }
.pb-eye { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--eye); }
.pb h1 { font-size: 54px; font-weight: 850; letter-spacing: -.04em; line-height: 1; margin: 10px 0 12px; }
.pb h2 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 8px 0 10px; }
.pb-lead { font-size: 18px; color: var(--ink2); line-height: 1.45; max-width: 600px; } .pb-lead.sm { font-size: 14.5px; max-width: 760px; }
.pb .pb-ck { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* desktop shell */
.pb-desk { display: grid; grid-template-columns: 228px 1fr; outline: none; }
.pb-rail { background: var(--rail); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; display: grid; align-content: start; gap: 3px; }
.pb-rail h5 { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; margin: 2px 8px 8px; }
.pb-th { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.pb-th i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; font-style: normal; font-size: 11px; font-weight: 800; background: var(--f1); color: var(--ink); }
.pb-th span { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; } /* long names wrap instead of hiding */
.pb-th:hover { background: var(--f1); }
.pb-th.on { background: rgba(57,135,229,.16); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(57,135,229,.35); } .pb-th.on i { background: var(--acc); color: #fff; }
.pb-main { display: grid; grid-template-rows: 1fr auto; min-width: 0; min-height: 0; }
.pb-stage { position: relative; overflow: hidden auto; padding: 24px 28px 16px; display: flex; flex-direction: column; }
.pb-slide { flex: 1 0 auto; display: flex; flex-direction: column; animation: pbIn .45s cubic-bezier(.2,.9,.25,1); }
.pb-slide.from-r { animation-name: pbInR; } .pb-slide.from-l { animation-name: pbInL; }
@keyframes pbIn { from { opacity: .4; } } @keyframes pbInR { from { opacity: .3; transform: translateX(26px); } } @keyframes pbInL { from { opacity: .3; transform: translateX(-26px); } }
.pb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--rail); }
.pb-btn { min-width: 34px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--f1); box-shadow: inset 0 0 0 1px var(--f2); font-weight: 700; font-size: 13px; color: var(--ink); }
.pb-btn:hover:not(:disabled) { background: var(--f2); } .pb-btn:disabled { opacity: .35; cursor: default; }
.pb-btn.play { color: #fff; background: var(--acc); box-shadow: 0 6px 16px rgba(57,135,229,.35); }
.pb-dots { display: flex; gap: 6px; margin-left: 10px; } .pb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--f3); cursor: pointer; transition: width .25s, background .25s; }
.pb-dots i.on { width: 20px; border-radius: 99px; background: var(--acc); }
.pb-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--mute); }

/* cover with dotted globe */
.pb-cover { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: center; padding: 6px; }
.pb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 28px; }
.pb-chips button { padding: 9px 15px; border-radius: 99px; background: var(--f1); font-size: 14px; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--f2); }
.pb-chips button:hover { background: rgba(57,135,229,.18); box-shadow: inset 0 0 0 1px rgba(57,135,229,.45); }
.pb-cstats { display: flex; gap: 34px; }
.pb-cstats b { display: block; font-size: 40px; font-weight: 850; letter-spacing: -.03em; }
.pb-cstats span, .pb-tiles span { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.pb-globe { position: relative; width: 300px; }
.pb-globe svg { display: block; width: 100%; height: auto; }
.pb-gdots circle { fill: var(--eye); }
.pb .pb-g1 { stop-color: var(--g1); } .pb .pb-g2 { stop-color: var(--g2); }
.pb-grim { fill: none; stroke: rgba(127,176,240,.25); stroke-width: 1; }
.pb-gpings circle.pb-pd { fill: var(--acc2); } .pb-gpings .home circle.pb-pd { fill: var(--good2); }
.pb-gpings circle.pb-pr { fill: none; stroke: var(--acc2); stroke-width: 1.2; } .pb-gpings .home circle.pb-pr { stroke: var(--good2); }
.pb-gpings text { fill: var(--ink); font-size: 8px; font-weight: 700; dominant-baseline: middle; paint-order: stroke; stroke: var(--halo); stroke-width: 2.4px; }
.pb-glabel { text-align: center; font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 6px; }

/* pillars + closing */
.pb-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.pb-pcard, .pb-card { background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 0 var(--f1) inset, 0 12px 30px var(--rail); }
.pb-pcard { padding: 16px; display: grid; align-content: start; gap: 8px; }
.pb-pi { width: 40px; height: 40px; border-radius: 12px; background: rgba(57,135,229,.14); box-shadow: inset 0 0 0 1px rgba(57,135,229,.3); display: grid; place-items: center; font-size: 20px; }
.pb-pcard b { font-size: 16px; } .pb-pcard p { font-size: 13px; color: var(--ink2); line-height: 1.45; }
.pb-plist { display: grid; gap: 5px; margin-top: 4px; }
.pb-plist button { display: flex; gap: 8px; align-items: center; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 8px 9px; border-radius: 11px; background: var(--f1); }
.pb-plist button:hover { background: rgba(57,135,229,.16); }
.pb-plist i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.pb-plist em { margin-left: auto; font-style: normal; color: var(--mute); }
.pb-close h2 { font-size: 30px; max-width: 760px; line-height: 1.2; }
.pb-pgrid.sm .pb-pcard { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
.pb-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pb-cta button { padding: 11px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--f1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--f2); }
.pb-cta button:hover { background: var(--f2); }
.pb-cta button:first-child { color: #fff; background: var(--acc); box-shadow: 0 8px 20px rgba(57,135,229,.35); }

/* strategy slide */
.pb-strat { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: start; }
.pb-sline { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.pb-strat h4 { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 14px 0 6px; }
.pb-strat ul { list-style: none; display: grid; gap: 6px; padding: 0; }
.pb-strat li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.pb-strat li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 8px rgba(57,135,229,.6); }
.pb blockquote { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(57,135,229,.1); box-shadow: inset 0 0 0 1px rgba(57,135,229,.25); font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.pb blockquote span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--eye); margin-bottom: 4px; }
.pb-card { padding: 16px 18px; display: grid; gap: 10px; }
.pb-ct { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--mute); }
.pb-ct i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(12,163,12,.6); animation: whPing 2.4s ease-out infinite; }
.pb-impact { font-size: 13px; line-height: 1.5; color: var(--ink2); padding-top: 10px; border-top: 1px solid var(--line); }
.pb-ch { display: grid; gap: 10px; }
.pb-cap { font-size: 13px; color: var(--ink); font-weight: 700; } .pb-cap.c { text-align: center; color: var(--ink2); font-weight: 600; }
.pb-note { font-size: 12px; color: var(--mute); line-height: 1.45; }
.pb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pb-tiles.one { grid-template-columns: 1fr; }
.pb-tiles > div { background: var(--f1); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pb-tiles b { display: block; font-size: 28px; font-weight: 850; letter-spacing: -.03em; }
.pb svg.pb-fit { display: block; width: 100%; height: auto; overflow: visible; }

/* 1. dot matrix + cohort glider */
.pb-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 5px; }
.pb-matrix i { --g: 0; aspect-ratio: 1; border-radius: 4px; background: var(--acc); transform: scale(0); filter: brightness(calc(.75 + .55 * var(--g))); box-shadow: 0 0 calc(10px * var(--g)) rgba(57,135,229,.55); }
.pb-cohorts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.pb-cohorts span { position: relative; z-index: 1; text-align: center; padding: 7px 0; font-size: 12.5px; font-weight: 800; color: var(--mute); transition: color .3s; }
.pb-cohorts span.on { color: var(--ink); }
.pb-glide { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; opacity: 0; border-radius: 9px; background: rgba(57,135,229,.22); box-shadow: inset 0 0 0 1px rgba(57,135,229,.55); }

/* 2. gauge */
.pb-gauge { position: relative; max-width: 270px; width: 100%; margin: 0 auto; }
.pb-gticks line { stroke: var(--f3); stroke-width: 1.2; stroke-linecap: round; }
.pb-gtrack { fill: none; stroke: var(--track); stroke-width: 12; stroke-linecap: round; }
.pb-gzone { fill: none; stroke: rgba(12,163,12,.28); stroke-width: 12; stroke-linecap: round; }
.pb-gfill { fill: none; stroke: url(#pb-arc); stroke-width: 12; stroke-linecap: round; }
.pb-gtarget { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.pb-needle { transform-origin: 100px 108px; transform-box: view-box; }
.pb-needle line { stroke: var(--needle); stroke-width: 3; stroke-linecap: round; } .pb-needle circle { fill: var(--needle); stroke: var(--acc); stroke-width: 3; }
.pb-gread { text-align: center; display: grid; margin-top: 2px; }
.pb-gread b { font-size: 34px; font-weight: 850; letter-spacing: -.03em; } .pb-gread small { font-size: 12px; color: var(--mute); font-weight: 600; }
.pb-qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.pb-qs span { display: grid; gap: 1px; padding: 9px 10px; border-radius: 13px; background: var(--f1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
.pb-qs em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mute); }
.pb-qs b { font-size: 17px; } .pb-qs small { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--mute); }
.pb-qs .hit small { color: var(--good2); }
.pb-qs span.on { background: rgba(57,135,229,.14); box-shadow: inset 0 0 0 1.5px rgba(57,135,229,.6); }

/* 3. dotted donut */
.pb-donut { position: relative; width: 170px; margin: 0 auto; }
.pb-dtrk { fill: none; stroke: var(--track); stroke-width: 16; }
.pb-dfill { fill: none; stroke: url(#pb-dots); stroke-width: 16; }
.pb-dsheen { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 16; opacity: 0; mix-blend-mode: overlay; }
.pb-donut > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pb-donut b { font-size: 34px; font-weight: 850; letter-spacing: -.03em; } .pb-donut small { font-size: 11px; color: var(--mute); font-weight: 700; }

/* 4. dot bars */
.pb-db { display: grid; gap: 7px; }
.pb-dbh { display: flex; justify-content: space-between; align-items: baseline; } .pb-dbh span { font-size: 13px; font-weight: 700; color: var(--ink2); } .pb-dbh b { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.pb-dbm { display: grid; grid-template-columns: repeat(auto-fill, minmax(11px, 1fr)); gap: 4px; }
.pb-dbm i { --g: 0; aspect-ratio: 1; border-radius: 50%; background: var(--acc); transform: scale(0); filter: brightness(calc(.8 + .6 * var(--g))); box-shadow: 0 0 calc(9px * var(--g)) rgba(57,135,229,.6); }
.pb-dbm.v i { background: var(--acc2); box-shadow: 0 0 calc(9px * var(--g)) rgba(139,92,246,.6); }

/* 5. growth line */
.pb-axis { stroke: var(--line); stroke-width: 1.5; }
.pb-sline { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pb-sarea { opacity: 0; }
.pb-comet { fill: var(--comet); opacity: 0; } .pb-comet.t { fill: #9ec5f4; } .pb-comet.t2 { fill: #5598e7; }
.pb-sdot { fill: var(--bg); stroke: var(--eye); stroke-width: 4; transform-box: fill-box; transform-origin: center; } .pb-sdot.end { stroke: var(--acc); }
.pb-ax { font-size: 12px; font-weight: 700; fill: var(--mute); text-anchor: middle; }
.pb-slab { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pb-slab > div b { display: block; font-size: 28px; font-weight: 850; letter-spacing: -.03em; } .pb-slab > div span { font-size: 12px; color: var(--mute); font-weight: 600; }
.pb-slab > div:last-child { text-align: right; }
.pb-delta { padding: 7px 12px; border-radius: 99px; background: rgba(12,163,12,.16); color: var(--good2); box-shadow: inset 0 0 0 1px rgba(12,163,12,.45); font-weight: 800; font-size: 15px; }

/* 6. node graph */
.pb-net { position: relative; aspect-ratio: 300 / 224; }
.pb-net svg { position: absolute; inset: 0; }
.pb-link { fill: none; stroke: rgba(57,135,229,.4); stroke-width: 1.6; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pb-pulse { fill: #9ec5f4; opacity: 0; }
.pb-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 14px; background: var(--acc); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 6px rgba(57,135,229,.15), 0 10px 26px rgba(57,135,229,.35); }
.pb-hub i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: whPing 2s ease-out infinite; }
.pb-node { position: absolute; transform: translate(-50%,-50%); padding: 6px 10px; border-radius: 99px; background: var(--chip); font-size: 11.5px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--f2), var(--shade); }
.pb-badge { position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; transform: scale(0); box-shadow: 0 0 0 2px var(--s1); }
.pb-badge .pb-ck { width: 10px; height: 10px; }

/* 7. money + ring */
.pb-money { position: relative; overflow: hidden; border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, rgba(57,135,229,.28), rgba(139,92,246,.22)); box-shadow: inset 0 0 0 1px rgba(127,176,240,.3); }
.pb-money small { font-size: 12.5px; color: var(--ink2); font-weight: 600; } .pb-money b { display: block; font-size: 40px; font-weight: 850; letter-spacing: -.03em; }
.pb-msheen { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, var(--f3), transparent); transform: translateX(-120%); pointer-events: none; }
.pb-mrow { display: flex; align-items: center; gap: 14px; }
.pb-ring { position: relative; width: 86px; flex: none; }
.pb-rfill { fill: none; stroke: var(--good); stroke-width: 10; stroke-linecap: round; }
.pb-ring .pb-dtrk { stroke-width: 10; }
.pb-ring > div { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.pb-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--good2); }
.pb-mtxt p { font-size: 13px; color: var(--ink2); margin-top: 3px; }

/* 8. flow loop */
.pb-flow { position: relative; aspect-ratio: 3 / 2; }
.pb-flow svg { position: absolute; inset: 0; }
.pb-ring2 { fill: none; stroke: rgba(57,135,229,.45); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pb-token { fill: var(--needle); opacity: 0; filter: drop-shadow(0 0 6px rgba(57,135,229,.9)); }
.pb-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; font-size: 12px; font-weight: 800; color: var(--mute); letter-spacing: .04em; }
.pb-step { --a: 0; position: absolute; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: var(--s2); font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,calc(.1 + .4 * var(--a))), 0 0 calc(18px * var(--a)) rgba(57,135,229,.55), 0 8px 18px var(--well); }
.pb-step i { font-style: normal; width: 18px; height: 18px; border-radius: 6px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }

/* narrow windows */
.pb-desk .pb-main { container-type: inline-size; }
@container (max-width: 760px) { .pb-strat { grid-template-columns: 1fr; } .pb h1 { font-size: 40px; } .pb-pgrid { grid-template-columns: 1fr; } .pb-cover { grid-template-columns: 1fr; } .pb-globe { width: 240px; margin: 0 auto; } }

/* phone: a scrolling story */
.ios-pb { position: relative; height: 100%; }
.ios-pb .ios-scroll { padding: 0 0 50px; }
.pb-prog { position: absolute; top: 47px; left: 0; right: 0; height: 3px; z-index: 3; background: var(--f1); }
.pb-prog i { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.pb-sec { padding: 60px 16px 26px; border-bottom: 1px solid var(--line); }
.pb-sec:first-child { padding-top: 76px; }
.ios-pb h1 { font-size: 44px; } .ios-pb h2 { font-size: 23px; } .ios-pb .pb-lead { font-size: 16.5px; }
.ios-pb .pb-cover { grid-template-columns: 1fr; padding-top: 4px; }
.ios-pb .pb-globe { width: 250px; margin: 6px auto 0; }
.ios-pb .pb-cstats { gap: 22px; } .ios-pb .pb-cstats b { font-size: 32px; }
.ios-pb .pb-pgrid { grid-template-columns: 1fr; }
.ios-pb .pb-strat { grid-template-columns: 1fr; gap: 16px; }
.ios-pb .pb-card { padding: 14px; }
.ios-pb .pb-close h2 { font-size: 24px; }
.ios-pb .pb-node { font-size: 10px; padding: 5px 8px; }
.ios-pb .pb-step { font-size: 10.5px; padding: 6px 8px; }
.ios.pb svg.pb-fit { width: 100%; height: auto; stroke: none; fill: none; }
.ios.pb .pb-ck { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.ios.pb .pb-badge .pb-ck { width: 10px; height: 10px; }
.pb-foot { padding: 20px 16px 10px; font-size: 12px; color: var(--mute); text-align: center; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .pb-slide { animation: none !important; } .pb-sline, .pb-link, .pb-ring2 { stroke-dashoffset: 0; } .pb-ct i, .pb-hub i { animation: none; } }

/* Playbook dark colours: Dark Mode, or Match System on a dark device */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pb { --bg: #07080a; --s1: #101215; --s2: #16191e; --ink: #f2f1ee; --ink2: #c3c2b7; --mute: #8b8a84; --line: rgba(255,255,255,.07);
  --acc: #3987e5; --acc2: #8b5cf6; --track: #15243b; --good: #0ca30c; --good2: #3ee06a;
  --f1: rgba(255,255,255,.05); --f2: rgba(255,255,255,.11); --f3: rgba(255,255,255,.18); --rail: rgba(0,0,0,.26); --well: rgba(0,0,0,.35);
  --eye: #7fb0f0; --needle: #ffffff; --comet: #cfe3ff; --halo: rgba(7,8,10,.8); --g1: #1b2a4a; --g2: #07090e; --shade: 0 12px 30px rgba(0,0,0,.25); --chip: #16191e; } }
:root[data-theme="dark"] .pb { --bg: #07080a; --s1: #101215; --s2: #16191e; --ink: #f2f1ee; --ink2: #c3c2b7; --mute: #8b8a84; --line: rgba(255,255,255,.07);
  --acc: #3987e5; --acc2: #8b5cf6; --track: #15243b; --good: #0ca30c; --good2: #3ee06a;
  --f1: rgba(255,255,255,.05); --f2: rgba(255,255,255,.11); --f3: rgba(255,255,255,.18); --rail: rgba(0,0,0,.26); --well: rgba(0,0,0,.35);
  --eye: #7fb0f0; --needle: #ffffff; --comet: #cfe3ff; --halo: rgba(7,8,10,.8); --g1: #1b2a4a; --g2: #07090e; --shade: 0 12px 30px rgba(0,0,0,.25); --chip: #16191e; }

/* Whoop: the drifting glow must not create extra scroll space; only the content scrolls */
.wh { overflow: hidden; }
.wh:not(.ios) > .wh-host { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.ios-whoop.wh { overflow: hidden; }
/* Whoop: up to two latest workouts */
.wh-wlist { display: grid; gap: 8px; margin-top: auto; }
.wh-wlist .wh-wrow { margin-top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.wh-wlist .wh-ws { margin-top: 0; text-align: right; display: grid; line-height: 1.1; }
.wh-wlist .wh-ws b { font-size: 15px; } .wh-wlist .wh-ws small { font-size: 10.5px; color: var(--mute); font-weight: 700; }
.wh-work.two .wh-wi { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
.wh-work.two .wh-wt b { font-size: 14.5px; } .wh-work.two .wh-wt small { font-size: 11.5px; }
.wh-work.two .wh-wrow + .wh-wrow { padding-top: 8px; border-top: 1px solid var(--line); }

/* phones and narrow windows: workouts get the full width */
.ios-whoop .wh-grid, .ios-whoop .wh-grid.no-stp { grid-template-areas: "rec rec" "str stp" "wk wk" "slp slp" "stg stg"; }
.ios-whoop .wh-grid.no-stp { grid-template-areas: "rec rec" "str str" "wk wk" "slp slp" "stg stg"; }
.ios-whoop .wh-work { min-height: 0; }
@container wh (max-width: 640px) {
  .wh-grid, .wh-grid.no-stp { grid-template-areas: "rec rec" "str stp" "wk wk" "slp slp" "stg stg"; }
  .wh-grid.no-stp { grid-template-areas: "rec rec" "str str" "wk wk" "slp slp" "stg stg"; }
}

/* Whoop workouts on computers: one line per workout, the card grows instead of hiding text */
.wh-grid:not(.no-sl) { grid-template-rows: minmax(138px, auto) minmax(138px, auto) minmax(196px, auto); }
.wh-wt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-work.two { gap: 8px; }
.wh-work.two .wh-wlist { margin-top: 2px; gap: 6px; }
.wh-work.two .wh-wrow + .wh-wrow { padding-top: 6px; }
.wh-grid { grid-template-columns: 1fr 1fr 1fr 1.25fr; }
.ios-whoop .wh-grid { grid-template-columns: 1fr 1fr; }
@container wh (max-width: 640px) { .wh-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   WHOOP: week streaks, training mix, active-days calendar (replace sleep stages)
   ===================================================================== */
.wh-grid { grid-template-areas: "rec rec str stp" "rec rec str wk" "slp stk act tr"; }
.wh-grid.no-wk { grid-template-areas: "rec rec str stp" "rec rec str stp" "slp stk act tr"; }
.wh-grid.no-stp { grid-template-areas: "rec rec str wk" "rec rec str wk" "slp stk act tr"; }
.wh-grid.no-ext { grid-template-areas: "rec rec str stp" "rec rec str wk" "slp slp slp slp"; }
.wh-stk { grid-area: stk; } .wh-act { grid-area: act; } .wh-tr { grid-area: tr; }
.wh-stk, .wh-act, .wh-tr { display: flex; flex-direction: column; }
/* streaks */
.wh-srow { display: grid; gap: 6px; margin-top: 10px; }
.wh-sh { display: flex; align-items: baseline; gap: 7px; } .wh-sh b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; } .wh-sh span { font-size: 12px; color: var(--ink2); }
.wh-sdots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wh-sd { display: grid; justify-items: center; gap: 3px; }
.wh-sd i { --g: 0; width: 100%; max-width: 18px; aspect-ratio: 1; border-radius: 50%; background: var(--blue-track); }
.wh-sd.on i { background: var(--blue); filter: brightness(calc(1 + .6 * var(--g))); box-shadow: 0 0 calc(10px * var(--g)) rgba(57,135,229,.7); }
.wh-sd.on.v i { background: #8b5cf6; box-shadow: 0 0 calc(10px * var(--g)) rgba(139,92,246,.7); }
.wh-sd small { font-size: 9.5px; font-weight: 700; color: var(--mute); }
/* calendar */
.wh-chead { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; } .wh-chead b { font-size: 24px; font-weight: 800; } .wh-chead span { font-size: 12px; color: var(--ink2); }
.wh-cgrid { display: grid; gap: 5px; margin-top: auto; }
.wh-cdow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .wh-cdow small { font-size: 9.5px; font-weight: 700; color: var(--mute); text-align: center; }
.wh-ccells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wh-cc { --g: 0; --p: 0; height: 14px; border-radius: 5px; background: var(--blue-track); }
.wh-cc.on { background: var(--blue); filter: brightness(calc(.9 + .35 * var(--g))); }
.wh-cc.out { background: transparent; }
.wh-cc.today { box-shadow: 0 0 0 1.5px rgba(255,255,255,calc(.35 + .5 * var(--p))); }
/* phone */
.ios-whoop .wh-grid { grid-template-areas: "rec rec" "str stp" "wk wk" "slp slp" "stk stk" "act act" "tr tr"; }
.ios-whoop .wh-grid.no-wk { grid-template-areas: "rec rec" "str stp" "slp slp" "stk stk" "act act" "tr tr"; }
.ios-whoop .wh-grid.no-ext { grid-template-areas: "rec rec" "str stp" "wk wk" "slp slp"; }
.ios-whoop .wh-cc { height: 20px; }
.ios-whoop .wh-ccells { gap: 4px; }
.ios-whoop .wh-cgrid { margin-top: 10px; }
.ios-whoop .wh-sd i { max-width: 22px; }
@media (prefers-reduced-motion: reduce) { .wh-sd i, .wh-cc { transform: none !important; } }

/* Whoop: 7-day strain trend */
.wh-trplot { position: relative; flex: 1; min-height: 96px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.wh-trcol { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-height: 0; }
.wh-trcol em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.wh-trcol small { font-size: 9.5px; font-weight: 700; color: var(--mute); }
.wh-trtrack { --y: 120%; --o: 0; position: relative; width: 100%; max-width: 22px; height: 100%; min-height: 60px; border-radius: 6px; background: var(--blue-track); overflow: hidden; display: flex; align-items: flex-end; }
.wh-trtrack i { display: block; width: 100%; border-radius: 6px; background: color-mix(in srgb, var(--blue) 70%, var(--blue-track)); }
.wh-trcol.today em, .wh-trcol.today small { color: var(--ink); }
.wh-trcol.today .wh-trtrack i { background: var(--blue); box-shadow: 0 0 14px rgba(57,135,229,.6); }
.wh-trcol.today .wh-trtrack i::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: var(--y); opacity: var(--o); background: linear-gradient(180deg, transparent, rgba(255,255,255,.45), transparent); pointer-events: none; }
.wh-travg { position: absolute; left: -3px; right: -3px; height: 0; border-top: 1.5px dashed rgba(255,255,255,.55); z-index: 1; pointer-events: none; }
.wh-trtrack { overflow: visible; } .wh-trtrack i { position: relative; overflow: hidden; }
.ios-whoop .wh-trplot { min-height: 130px; }

/* =====================================================================
   PARTNER LOGOS: every logo is a one-colour mark inside the same frosted chip.
   Same height for all (width follows the logo), equal padding on every side,
   never stretched or cropped. Light ink on dark surfaces, dark ink on light.
   ===================================================================== */
:root { --lg-bg: rgba(20,22,30,.045); --lg-line: rgba(20,22,30,.11); --lg-f: brightness(0); --lg-o: .8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lg-bg: rgba(255,255,255,.07); --lg-line: rgba(255,255,255,.13); --lg-f: none; --lg-o: .94; } }
:root[data-theme="dark"] { --lg-bg: rgba(255,255,255,.07); --lg-line: rgba(255,255,255,.13); --lg-f: none; --lg-o: .94; }
/* surfaces that are always dark (case study slides) */
.cs-stage, .csm-story { --lg-bg: rgba(255,255,255,.12); --lg-line: rgba(255,255,255,.22); --lg-f: none; --lg-o: .96; }
.plogos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.plogo { --lh: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: var(--lh); padding: calc(var(--lh) * .2);
  border-radius: calc(var(--lh) * .3); background: var(--lg-bg); box-shadow: inset 0 0 0 1px var(--lg-line);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.plogo img { display: block; height: 100%; width: auto; max-width: none; object-fit: contain; filter: var(--lg-f); opacity: var(--lg-o); }
/* case study cover */
.cs-slide .plogos { margin: 14px 0 0; gap: 8px; }
/* hub chart node markers */
.cc-node .plogos { justify-content: center; margin-top: 8px; gap: 5px; }
/* Playbook */
.pb-logos { margin-top: 10px; }
.pb-logos small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pb-logos .plogos { margin-top: 6px; }
.pb-node.lg { padding: 0; background: none; box-shadow: none; }
.pb-node.lg .plogo { background: var(--s2); box-shadow: inset 0 0 0 1px var(--f2), 0 6px 14px rgba(0,0,0,.25); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ios-pb .pb-node.lg .plogo { --lh: 26px !important; }
/* chips never inherit label styles from the page they sit in */
.plogos .plogo, .prole .plogos { text-transform: none; letter-spacing: 0; font-size: 0; }
.prole .plogos { display: flex; margin-top: 10px; }
.prole .plogo { display: inline-flex; }
.cc-node > .plogos { font-size: 0; grid-row: auto; }
.csm-body .cc-node > .plogos { grid-column: 2; grid-row: auto; justify-content: flex-start; margin-top: 4px; }
.plogo.pmore { font-size: calc(var(--lh) * .42); font-weight: 700; letter-spacing: 0; color: var(--lg-ink, currentColor); opacity: .85; white-space: nowrap; padding-left: calc(var(--lh) * .36); padding-right: calc(var(--lh) * .36); }
.plogos .plogo.pmore, .prole .plogos .plogo.pmore { font-size: calc(var(--lh) * .42); }
