/* izak OS v3: a literal MacBook. System chrome: screen, wallpaper, menu bar, menus, desktop icons, Dock,
   windows, Spotlight, notifications, phone home screen. Brand: cobalt #1455F5, black, white, Plus Jakarta Sans. */

:root {
  --cobalt: #1455F5; --cobalt-hover: #1045CC; --black: #000; --white: #fff;
  --ink: #111111; --surface: #F4F5F7; --muted: #535B68; --line: #D7DCE3;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Sans Arabic", "Plus Jakarta Sans", "Geeza Pro", Tahoma, sans-serif;
  --mb-h: 28px; --dock-h: 78px; --r-win: 12px; --side-w: 184px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #0B0F1A; color: var(--ink); font: 13px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
:lang(ar) body, [lang="ar"] { font-family: var(--font-ar); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: default; }
a { color: inherit; }
svg { display: block; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* the visible screen: on a phone, the browser's own bars never hide the dock (100dvh follows them) */
.page { height: 100%; display: flex; flex-direction: column; }
@supports (height: 100dvh) { .page { height: min(100dvh, var(--app-h, 100dvh)); } }

/* ---------- the screen and its appearance tokens ---------- */
.os {
  position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none;
  /* window appearance: light */
  --win-bg: #FFFFFF; --win-bar: #F6F7F9; --win-bar-line: rgba(17, 17, 17, .09); --side-bg: rgba(238, 240, 245, .86);
  --text: #111111; --text-2: #535B68; --text-3: #8A919C; --hair: rgba(17, 17, 17, .1); --hover: rgba(17, 17, 17, .055);
  --sel: var(--cobalt); --sel-soft: rgba(20, 85, 245, .12); --sel-idle: #DCDFE6; --field: rgba(17, 17, 17, .06);
  --menu-bg: rgba(246, 247, 250, .84); --menu-text: #111; --menu-line: rgba(17, 17, 17, .1);
  --page: #FFFFFF; --page-bg: #E4E6EB; --shadow: 0 22px 70px rgba(4, 12, 40, .35), 0 0 0 .5px rgba(0, 0, 0, .18);
  --shadow-idle: 0 12px 40px rgba(4, 12, 40, .22), 0 0 0 .5px rgba(0, 0, 0, .14);
  --light-idle: #D0D3D9;
  color: var(--text);
}
.os[data-mode="dark"] {
  --win-bg: #1D1E22; --win-bar: #26272C; --win-bar-line: rgba(0, 0, 0, .5); --side-bg: rgba(38, 40, 46, .84);
  --text: #F2F3F5; --text-2: #A3A9B4; --text-3: #6F7581; --hair: rgba(255, 255, 255, .1); --hover: rgba(255, 255, 255, .07);
  --sel-soft: rgba(20, 85, 245, .28); --sel-idle: #3A3C43; --field: rgba(255, 255, 255, .08);
  --menu-bg: rgba(40, 42, 48, .84); --menu-text: #F2F3F5; --menu-line: rgba(255, 255, 255, .12);
  --page-bg: #2A2C31; --shadow: 0 22px 70px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .12);
  --shadow-idle: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .08);
  --light-idle: #4A4C53;
  color-scheme: dark;
}

/* ---------- wallpaper: a quiet cobalt field that follows the time of day ---------- */
.wall { position: absolute; inset: 0; z-index: 0; }
.wall svg { width: 100%; height: 100%; }
.os { --wp1: #3D74FF; --wp2: #1455F5; --wp3: #0A33A6; --wa1: #0B2F9E; --wa2: #1B5CFA; --wb1: #7FA4FF; --wb2: #2D69FF; --wh: .16; }
.os[data-wall="cobalt"][data-phase="morning"] { --wp1: #7BA2FF; --wp2: #2F66F7; --wp3: #0F3DBA; --wa1: #1747C9; --wa2: #4C80FF; --wb1: #B7CCFF; --wb2: #5A8BFF; --wh: .22; }
.os[data-wall="cobalt"][data-phase="evening"] { --wp1: #2358E6; --wp2: #0E3399; --wp3: #061A55; --wa1: #051646; --wa2: #1446D1; --wb1: #4A78F0; --wb2: #173FB5; --wh: .12; }
.os[data-wall="cobalt"][data-phase="night"] { --wp1: #11308C; --wp2: #081B55; --wp3: #030A24; --wa1: #020716; --wa2: #0D2A80; --wb1: #2A4FC0; --wb2: #0D2472; --wh: .09; }
.os[data-wall="graphite"] { --wp1: #5B616C; --wp2: #30343C; --wp3: #14161A; --wa1: #0E1014; --wa2: #3B4250; --wb1: #7E8594; --wb2: #1455F5; --wh: .12; }
.os[data-wall="graphite"][data-phase="morning"] { --wp1: #737A86; --wp2: #414651; --wp3: #1C1F25; --wa2: #4A5262; --wb1: #9AA1AE; --wh: .16; }
.os[data-wall="graphite"][data-phase="evening"], .os[data-wall="graphite"][data-phase="night"] { --wp1: #3A3E47; --wp2: #1D2026; --wp3: #08090B; --wa1: #050608; --wa2: #262A33; --wb1: #545B69; --wb2: #0E3AA8; --wh: .08; }
.os[data-wall="clair"] { --wp1: #FFFFFF; --wp2: #E9EEF9; --wp3: #C9D6F6; --wa1: #9DB8FA; --wa2: #E3EAFB; --wb1: #FFFFFF; --wb2: #7FA2F8; --wh: .5; }
.os[data-wall="clair"][data-phase="evening"], .os[data-wall="clair"][data-phase="night"] { --wp1: #3A4150; --wp2: #232834; --wp3: #11141B; --wa1: #0B0E14; --wa2: #2C3444; --wb1: #56627A; --wb2: #1C3E99; --wh: .1; }

/* izak wallpaper, chosen by the founder on 28/09/2026: the white wordmark on black, centred on the desk.
   The logo is always the drawn SVG, never typed, never mirrored. */
.wall-logo { display: none; }
.os[data-wall="izak"] .wall { background: #000; }
.os[data-wall="izak"] .wall > svg { display: none; }
.os[data-wall="izak"] .wall-logo { display: grid; place-items: center; position: absolute; inset: var(--mb-h) 0 calc(var(--dock-h) + 6px); color: #fff; }
.os[data-wall="izak"][data-shape="phone"] .wall-logo { inset: 44px 0 120px; }
.wall-logo svg.logo { width: clamp(150px, 24vw, 400px); height: auto; }
/* the client's own wallpaper (onboarding, 29/09/2026): izak × their logo, white on black, or their company name */
.wall-logo .cobrand { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.6vw, 40px); max-width: calc(100% - 48px); }
.wall-logo .cobrand svg.logo { width: clamp(104px, 14vw, 240px); flex: none; }
.wall-logo .co-x { flex: none; color: rgba(255, 255, 255, .55); font: 200 clamp(24px, 3vw, 48px)/1 var(--font); }
.wall-logo .co-logo { display: block; flex: none; }
/* a fixed height: an SVG logo without its own size would otherwise shrink to nothing */
.wall-logo .co-logo img { display: block; height: clamp(32px, 4.8vw, 80px); width: auto; max-width: clamp(110px, 22vw, 340px); object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.wall-logo.ready .co-logo img { opacity: 1; }
.wall-logo .co-logo img.mono { filter: brightness(0) invert(1); }
.wall-logo .co-logo.tile img { border-radius: 16%; }
/* the client's name weighs as much as izak's mark (the founder's request, 30/09/2026) */
.wall-logo .co-name { min-width: 0; max-width: 40vw; color: #fff; font: 700 clamp(34px, 5.6vw, 104px)/1 var(--font); letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.os[data-shape="phone"] .wall-logo .co-name { font-size: 34px; max-width: 52vw; }
[lang="ar"] .wall-logo .co-name { font-family: var(--font-ar); }
/* on a phone the home screen's icons and widgets cover the middle: the wallpaper's mark sits low, above the search and edit buttons */
.os[data-wall="izak"][data-shape="phone"] .wall-logo { place-items: end center; padding-bottom: 76px; box-sizing: border-box; }
.os[data-wall="izak"][data-shape="phone"] .wall-logo:not(.is-co) svg.logo { width: 120px; }
/* the widgets take the desktop's free side: the wallpaper's mark centres in what is left */
@media (min-width: 1100px) { .os.has-widgets[data-shape="desk"] .wall-logo { inset-inline-end: 380px; } .os.has-widgets[data-shape="desk"] .sticky { right: 384px; } }
.wall-logo.reveal .cobrand { animation: co-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes co-in { from { opacity: 0; transform: scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .wall-logo.reveal .cobrand { animation: none; } }

/* menu bar, desktop labels and Dock read against the wallpaper */
.os { --mb-bg: rgba(8, 22, 70, .16); --mb-text: #fff; --lbl: #fff; --lbl-shadow: 0 1px 2px rgba(0, 0, 0, .45); --dock-bg: rgba(255, 255, 255, .2); --dock-line: rgba(255, 255, 255, .32); }
.os[data-wall="clair"]:not([data-phase="evening"]):not([data-phase="night"]) { --mb-bg: rgba(255, 255, 255, .5); --mb-text: #111; --lbl: #111; --lbl-shadow: none; --dock-bg: rgba(255, 255, 255, .5); --dock-line: rgba(17, 17, 17, .1); }
.os[data-mode="dark"] { --dock-bg: rgba(30, 32, 38, .42); --dock-line: rgba(255, 255, 255, .16); }
.os[data-wall="izak"] { --mb-bg: rgba(0, 0, 0, .45); --dock-bg: rgba(255, 255, 255, .13); --dock-line: rgba(255, 255, 255, .2); }

/* ---------- menu bar ---------- */
.mb {
  position: absolute; inset-inline: 0; top: 0; z-index: 60; height: var(--mb-h); display: flex; align-items: center; gap: 2px;
  padding-inline: 10px; color: var(--mb-text); background: var(--mb-bg); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  font-size: 13px; font-weight: 500;
}
.mb-i { height: 22px; padding-inline: 9px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mb-i:hover, .mb-i[aria-expanded="true"] { background: rgba(255, 255, 255, .2); }
.os[data-wall="clair"]:not([data-phase="evening"]):not([data-phase="night"]) .mb-i:hover,
.os[data-wall="clair"]:not([data-phase="evening"]):not([data-phase="night"]) .mb-i[aria-expanded="true"] { background: rgba(17, 17, 17, .1); }
.mb-logo { padding-inline: 10px 12px; }
.mb-logo svg.logo { height: 13px; width: auto; }
.mb-app { font-weight: 600; }
.mb-menus { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.mb-right { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.mb-lang { font-size: 11px; font-weight: 600; letter-spacing: .02em; min-width: 22px; justify-content: center; }
.mb-lang b { border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; line-height: 14px; font-weight: 600; }
.mb-i svg.i { width: 15px; height: 15px; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-chip { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); margin-inline-end: 4px; }
.os[data-wall="clair"]:not([data-phase="evening"]):not([data-phase="night"]) .mb-chip { background: rgba(20, 85, 245, .12); color: var(--cobalt); }

/* ---------- dropdown menus ---------- */
.menu {
  position: absolute; z-index: 80; min-width: 220px; padding: 5px; border-radius: 9px; color: var(--menu-text);
  background: var(--menu-bg); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28), 0 0 0 .5px var(--menu-line); font-size: 13px;
}
.mi { width: 100%; display: flex; align-items: center; gap: 6px; height: 24px; padding-inline: 8px 10px; border-radius: 5px; text-align: start; white-space: nowrap; }
.mi .ck { width: 14px; flex: 0 0 14px; font-size: 11px; text-align: center; }
.mi .sc { margin-inline-start: auto; padding-inline-start: 24px; color: var(--text-3); font-size: 12px; }
.mi:hover:not([aria-disabled="true"]), .mi:focus-visible { background: var(--cobalt); color: #fff; outline: none; }
.mi:hover .sc, .mi:focus-visible .sc { color: rgba(255, 255, 255, .8); }
.mi[aria-disabled="true"] { color: var(--text-3); }
.msep { height: 1px; margin: 5px 8px; background: var(--menu-line); }

/* ---------- desk and desktop icons: free placement on a grid, dragged with the mouse ---------- */
.desk { position: absolute; inset: var(--mb-h) 0 0 0; z-index: 1; }
.icons { position: absolute; inset: 0; pointer-events: none; }
.it {
  position: absolute; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 4px; outline: none; text-align: center;
  pointer-events: auto; touch-action: none; transition: left .3s var(--ease), top .3s var(--ease);
}
.it.is-drag { transition: none; z-index: 6; }
.it.is-drag .ic { opacity: .88; }
.it.is-drag .lb { opacity: .9; }
.it .ic { width: 70px; height: 62px; display: grid; place-items: center; border-radius: 8px; border: 2px solid transparent; }
.it .lb { max-width: 92px; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--lbl); text-shadow: var(--lbl-shadow); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* selection, as on a Mac: a soft box behind the icon, the name on an accent pill */
.it[aria-selected="true"] .ic { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .18); }
.it[aria-selected="true"] .lb { background: var(--cobalt); color: #fff; text-shadow: none; }
.os[data-wall="cobalt"] .it[aria-selected="true"] .lb { background: #fff; color: var(--cobalt); }
.os[data-wall="clair"]:not([data-phase="evening"]):not([data-phase="night"]) .it[aria-selected="true"] .ic { background: rgba(17, 17, 17, .08); border-color: rgba(17, 17, 17, .08); }
.it:focus-visible .ic { border-color: #fff; }
.it.is-new .ic { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }

/* file and folder artwork (shared by desktop, Finder, Spotlight) */
.fold { width: 64px; height: 52px; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, .3)) drop-shadow(0 3px 6px rgba(0, 0, 0, .12)); }
.fold .fb { fill: #3B6FEF; }
.fold .ff { fill: url(#g-fold); }
.fold .fl { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: .9; }
.fold .fe { fill: #2957D6; color: #2957D6; opacity: .52; }
.fold .fh { fill: #fff; color: #fff; opacity: .42; }
.docic { width: 46px; height: 56px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .26)) drop-shadow(0 3px 6px rgba(0, 0, 0, .1)); }
.docic .pg { fill: #fff; stroke: #000; stroke-opacity: .14; stroke-width: .8; }
.docic .dg { fill: url(#ag-corner); }
.docic .ln { fill: #CBD1DB; }
.docic .hd { fill: #111; }
.docic .ac { fill: var(--cobalt); }
.thumb { display: block; border-radius: 3px; background: #0B0F1A center / cover no-repeat; box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, .35); }
.thumb.land { width: 60px; height: 38px; }
.thumb.port { width: 28px; height: 58px; }
.vidic { position: relative; width: 64px; height: 36px; border-radius: 5px; background: #000 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 7px rgba(0, 0, 0, .45); }
.vidic::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.vidic::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 8px solid #fff; transform: translateX(1.5px); }
[dir="rtl"] .vidic::after { transform: translateX(-1.5px) scaleX(-1); }
.webic { width: 62px; height: 46px; border-radius: 5px; background: #fff; padding: 9px 3px 3px; position: relative; box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .2); }
.webic::before { content: ""; position: absolute; top: 3.5px; inset-inline-start: 4px; width: 3px; height: 3px; border-radius: 50%; background: #FF5F57; box-shadow: 5px 0 #FEBC2E, 10px 0 #28C840; }
[dir="rtl"] .webic::before { box-shadow: -5px 0 #FEBC2E, -10px 0 #28C840; }
.webic i { display: block; width: 100%; height: 100%; border-radius: 2px; background: #0B0F1A center / cover no-repeat; }

/* artwork at small sizes: list rows (art-s) and Spotlight (art-m) */
.art-s, .art-m { display: grid; place-items: center; flex: 0 0 auto; }
.art-s { width: 22px; height: 20px; } .art-m { width: 30px; height: 30px; }
.art-s .fold { width: 21px; height: 17px; filter: none; } .art-m .fold { width: 30px; height: 25px; }
.art-s .docic { width: 16px; height: 20px; filter: none; } .art-m .docic { width: 23px; height: 28px; }
.art-s .thumb, .art-m .thumb { border-radius: 2px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, .3); }
.art-s .thumb.land { width: 22px; height: 14px; } .art-s .thumb.port { width: 9px; height: 19px; }
.art-m .thumb.land { width: 30px; height: 19px; } .art-m .thumb.port { width: 13px; height: 28px; }
.art-s .vidic { width: 22px; height: 13px; border-radius: 2px; } .art-m .vidic { width: 30px; height: 17px; border-radius: 3px; }
.art-s .vidic::before, .art-m .vidic::before { display: none; }
.art-s .vidic::after, .art-m .vidic::after { border-block-width: 3.5px; border-inline-start-width: 6px; }
.art-s .webic, .art-m .webic { padding: 3px 1px 1px; border-radius: 3px; } .art-s .webic::before, .art-m .webic::before { display: none; }
.art-s .webic { width: 22px; height: 17px; } .art-m .webic { width: 30px; height: 23px; }
.art-s .ai { width: 22px; height: 22px; } .art-m .ai { width: 32px; height: 32px; }
.art-s .ai .badge, .art-m .ai .badge { display: none; }

/* app icons: izak's own artwork in SVG on a continuous-corner tile (never Apple's) */
.ai { position: relative; display: block; flex: 0 0 auto; width: 58px; height: 58px; }
.ai > svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22)) drop-shadow(0 3px 5px rgba(0, 0, 0, .16)); }
.ai.md { width: 38px; height: 38px; }
.ai.md > svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.ai .badge { position: absolute; top: 0; inset-inline-end: 0; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: #FF3B30; color: #fff; font: 600 12px/20px var(--font); text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* ---------- Dock ---------- */
.dock { position: absolute; z-index: 50; inset-inline: 0; bottom: 6px; display: flex; justify-content: center; pointer-events: none; }
.dock-in {
  --base: 58px; pointer-events: auto; position: relative; display: flex; align-items: flex-end; gap: 4px; height: calc(var(--base) + 12px); padding: 0 8px 6px; border-radius: 22px;
  background: var(--dock-bg); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px var(--dock-line), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .3);
}
.dk { --s: 1; position: relative; flex: 0 0 auto; width: calc(var(--base) * var(--s)); height: var(--base); display: flex; align-items: flex-end; justify-content: center; transition: width .22s var(--ease); }
.dk > .ai { width: calc(var(--base) * var(--s)); height: calc(var(--base) * var(--s)); transition: width .22s var(--ease), height .22s var(--ease); }
.dock-in.is-mag .dk, .dock-in.is-mag .dk > .ai { transition-duration: .06s; transition-timing-function: linear; }
.dk:active > .ai > svg { filter: brightness(.7) drop-shadow(0 1px 1px rgba(0, 0, 0, .22)); }
.dk:focus-visible { outline: none; }
.dk:focus-visible > .ai { outline: 2px solid #fff; outline-offset: 2px; border-radius: 14px; }
.dk .tip {
  position: absolute; bottom: calc(var(--base) * var(--s) + 12px); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--menu-bg); color: var(--menu-text); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 2px 10px rgba(0, 0, 0, .25), 0 0 0 .5px var(--menu-line);
  font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.dk:hover .tip, .dk:focus-visible .tip { opacity: 1; }
.dk[aria-expanded="true"] .tip { opacity: 0; }
.dk .run { position: absolute; bottom: -4px; left: 50%; margin-left: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--mb-text); opacity: 0; }
.dk.is-run .run { opacity: .9; }
.dk-sep { flex: 0 0 auto; width: 1px; height: calc(var(--base) - 8px); align-self: center; margin: 0 5px; background: var(--dock-line); }
.dk.bounce > .ai { animation: bounce .7s var(--ease) 1; }
@keyframes bounce { 0%, 100% { translate: 0 0; } 30% { translate: 0 -20px; } 55% { translate: 0 0; } 75% { translate: 0 -8px; } }

/* ---------- windows ---------- */
.wins { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.win {
  position: absolute; pointer-events: auto; display: flex; border-radius: var(--r-win); background: var(--win-bg); box-shadow: var(--shadow-idle);
  overflow: hidden; opacity: 0; transform: scale(.97); transition: opacity .16s ease-out, transform .2s var(--ease), box-shadow .2s;
}
.win.is-in { opacity: 1; transform: none; }
.win:focus { outline: none; }
.win.is-out { opacity: 0; transform: scale(.97); pointer-events: none; }
.win.is-min { opacity: 0; transform: translateY(40%) scale(.2); pointer-events: none; }
.win.is-active { box-shadow: var(--shadow); }
.win.is-drag, .win.is-rz { transition: none; }
.win.is-max { top: 0 !important; left: 0 !important; right: 0; bottom: calc(var(--dock-h) + 6px); width: auto !important; height: auto !important; border-radius: 0 0 var(--r-win) var(--r-win); }
.w-side { width: var(--side-w); flex: 0 0 var(--side-w); display: flex; flex-direction: column; background: var(--side-bg); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); border-inline-end: 1px solid var(--hair); }
.w-side .w-lights { height: 52px; flex: 0 0 52px; }
.w-side-in { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 12px; }
/* min-height: 0 lets the body scroll when the window is a column (phone), instead of growing past the screen */
.w-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.w-bar { height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 10px; padding-inline: 14px 12px; background: var(--win-bar); border-bottom: 1px solid var(--win-bar-line); }
.win.no-side .w-bar { padding-inline-start: 0; }
.w-body { flex: 1; min-height: 0; position: relative; overflow: auto; }
.w-foot:empty { display: none; }
.w-foot { flex: 0 0 auto; }
.w-lights { display: flex; align-items: center; gap: 8px; padding-inline: 16px 8px; }
.w-lights .l { width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.w-lights .l svg { width: 8px; height: 8px; stroke: rgba(0, 0, 0, .55); stroke-width: 1.4; fill: none; opacity: 0; }
.w-lights:hover .l svg, .w-lights:focus-within .l svg { opacity: 1; }
.w-lights .close { background: #FF5F57; } .w-lights .min { background: #FEBC2E; } .w-lights .zoom { background: #28C840; }
.w-lights .l[disabled] { background: var(--light-idle) !important; }
.w-lights .l[disabled] svg { display: none; }
.win:not(.is-active) .w-lights:not(:hover) .l { background: var(--light-idle); }
.w-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tools { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.w-tools .sp { flex: 1; }
.rz { position: absolute; z-index: 5; }
.rz.n, .rz.s { inset-inline: 10px; height: 6px; cursor: ns-resize; } .rz.n { top: -3px; } .rz.s { bottom: -3px; }
.rz.e, .rz.w { inset-block: 10px; width: 6px; cursor: ew-resize; } .rz.e { right: -3px; } .rz.w { left: -3px; }
.rz.ne, .rz.nw, .rz.se, .rz.sw { width: 12px; height: 12px; } .rz.ne { top: -3px; right: -3px; cursor: nesw-resize; } .rz.nw { top: -3px; left: -3px; cursor: nwse-resize; }
.rz.se { bottom: -3px; right: -3px; cursor: nwse-resize; } .rz.sw { bottom: -3px; left: -3px; cursor: nesw-resize; }
.win.is-max .rz { display: none; }

/* toolbar controls */
.tb { height: 28px; min-width: 28px; padding-inline: 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); }
.tb:hover:not([disabled]) { background: var(--hover); color: var(--text); }
.tb[disabled] { opacity: .35; }
.tb svg.i { width: 17px; height: 17px; }
.tb-pair { display: inline-flex; gap: 2px; }
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 7px; background: var(--field); }
.seg .tb { height: 24px; min-width: 30px; }
.seg .tb[aria-pressed="true"] { background: var(--win-bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.os[data-mode="dark"] .seg .tb[aria-pressed="true"] { background: #4A4C53; }
.sfield { position: relative; display: flex; align-items: center; width: 180px; max-width: 34%; }
.sfield svg.i { position: absolute; inset-inline-start: 8px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.sfield input { width: 100%; height: 28px; padding-inline: 28px 8px; border: 0; border-radius: 7px; background: var(--field); outline: none; font-size: 13px; }
.sfield input:focus { box-shadow: 0 0 0 3px rgba(20, 85, 245, .35); }
.sfield input::placeholder { color: var(--text-3); }

/* generic buttons inside apps */
.btn { height: 32px; padding-inline: 16px; border-radius: 4px; background: var(--cobalt); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--cobalt-hover); }
.btn.ghost { background: transparent; color: var(--cobalt); box-shadow: inset 0 0 0 1.5px currentColor; }
.os[data-mode="dark"] .btn.ghost { color: #8FB0FF; }
.btn.ghost:hover { background: var(--sel-soft); }
.btn.lg { height: 42px; padding-inline: 22px; font-size: 14px; }
.btn svg.i { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ---------- Spotlight ---------- */
.spot-wrap { position: absolute; inset: 0; z-index: 90; }
.spot-back { position: absolute; inset: 0; }
.spot {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: min(660px, calc(100% - 32px)); border-radius: 14px; overflow: hidden;
  background: var(--menu-bg); color: var(--menu-text); -webkit-backdrop-filter: blur(36px) saturate(1.7); backdrop-filter: blur(36px) saturate(1.7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4), 0 0 0 .5px var(--menu-line);
}
.spot-field { display: flex; align-items: center; gap: 12px; height: 56px; padding-inline: 18px; }
.spot-field svg.i { width: 22px; height: 22px; color: var(--text-2); flex: 0 0 auto; }
.spot-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 22px; font-weight: 400; }
.spot-field input::placeholder { color: var(--text-3); }
.spot-res { max-height: min(420px, 55vh); overflow: auto; padding: 0 8px 8px; border-top: 1px solid var(--menu-line); }
.spot-res:empty { display: none; }
.spot-grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.spot-it { display: flex; align-items: center; gap: 10px; height: 40px; padding-inline: 10px; border-radius: 8px; }
.spot-it b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-it small { margin-inline-start: auto; color: var(--text-3); white-space: nowrap; }
.spot-it[aria-selected="true"] { background: var(--cobalt); color: #fff; }
.spot-it[aria-selected="true"] small { color: rgba(255, 255, 255, .8); }

/* ---------- notifications (top right) ---------- */
.notes { position: absolute; z-index: 85; top: calc(var(--mb-h) + 8px); inset-inline-end: 12px; display: grid; gap: 8px; width: min(356px, calc(100% - 24px)); pointer-events: none; }
.note {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 16px; text-align: start; width: 100%;
  background: var(--menu-bg); color: var(--menu-text); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 0 .5px var(--menu-line); animation: slidein .35s var(--ease);
}
[dir="rtl"] .note { animation-name: slidein-rtl; }
.note .ai { flex: 0 0 auto; }
.note div { flex: 1; min-width: 0; }
.note b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.note b small { font-weight: 400; color: var(--text-3); }
.note .note-b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); }
.note .note-t { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.note .note-t span { font-weight: 600; }
.note .ai .badge { top: -4px; inset-inline-end: -4px; min-width: 17px; height: 17px; padding-inline: 4px; font-size: 11px; line-height: 17px; }
.note.is-out { opacity: 0; transform: translateX(30px); transition: .25s; }
.note.is-out.is-up { transform: translateY(-40px); }
.note { position: relative; touch-action: none; }
.note-main { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; text-align: start; color: inherit; font: inherit; }
.note-x { position: absolute; top: -7px; inset-inline-start: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--menu-bg); color: var(--text-2); box-shadow: 0 0 0 .5px var(--menu-line), 0 2px 6px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .15s; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.note-x svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.note:hover .note-x, .note-x:focus-visible { opacity: 1; }
@media (hover: none) { .note-x { opacity: 1; top: 8px; inset-inline-start: auto; inset-inline-end: 8px; width: 28px; height: 28px; background: rgba(120, 120, 128, .24); box-shadow: none; } .note-x svg { width: 11px; height: 11px; } .note .note-main { padding-inline-end: 30px; } }
.os[data-shape="phone"] .note-x { opacity: 1; top: 8px; inset-inline-start: auto; inset-inline-end: 8px; width: 28px; height: 28px; background: rgba(120, 120, 128, .24); box-shadow: none; }
.os[data-shape="phone"] .note .note-main { padding-inline-end: 30px; }
@keyframes slidein { from { transform: translateX(110%); } to { transform: none; } }
@keyframes slidein-rtl { from { transform: translateX(-110%); } to { transform: none; } }

/* Stickies-style review note (mock-up only) */
.sticky { position: absolute; z-index: 2; bottom: 100px; right: 20px; width: 250px; padding: 12px 14px 14px; background: #FFF6A8; color: #3A3200; font-size: 12.5px; line-height: 1.45; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); border-radius: 2px; }
.sticky b { display: block; margin-bottom: 4px; }
.sticky p { margin: 0 0 6px; }

/* ---------- phone: an iOS-style home screen ---------- */
.os[data-shape="phone"] { --mb-h: 44px; }
.os[data-shape="phone"] .mb, .os[data-shape="phone"] .icons, .os[data-shape="phone"] .dock, .os[data-shape="phone"] .sticky { display: none; }
.ph-status { position: absolute; z-index: 40; inset-inline: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding-inline: 26px 16px; color: var(--mb-text); font-weight: 600; font-size: 15px; }
.ph-status .mb-i { color: inherit; }
.home { position: absolute; inset: 44px 0 0; display: flex; flex-direction: column; padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; }
.happ { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.happ .hic { width: 66px; height: 66px; display: grid; place-items: center; }
.happ .hic .ai { width: 66px; height: 66px; }
.happ > span:last-child { max-width: 100%; font-size: 11.5px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--lbl); text-shadow: var(--lbl-shadow); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* izak's mark (or « izak × » the client) in the space the icons leave; it hides when there is too little room */
.home-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin: -6px -16px 0; padding: 6px 16px 0; }
.home-main::-webkit-scrollbar { display: none; }
.home-pills, .home-dock { flex: none; }
.home-brand { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; color: #fff; container-type: size; }
.home-brand > svg.logo { width: min(150px, 42cqw); height: auto; max-height: 64cqh; }
.home-brand .cobrand { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.home-brand .cobrand svg.logo { width: min(96px, 26cqw); height: auto; flex: none; }
.home-brand .co-x { color: rgba(255, 255, 255, .55); font: 200 24px/1 var(--font); }
.home-brand .co-name { color: #fff; font: 700 min(34px, 10cqw)/1 var(--font); letter-spacing: -.03em; max-width: 48cqw; overflow-wrap: anywhere; }
.home-brand .co-logo img { display: block; height: min(44px, 50cqh); width: auto; max-width: 42cqw; object-fit: contain; opacity: 0; transition: opacity .4s; }
.home-brand.ready .co-logo img { opacity: 1; } .home-brand .co-logo img.mono { filter: brightness(0) invert(1); } .home-brand .co-logo.tile img { border-radius: 16%; }
@container (max-height: 54px) { .home-brand > * { display: none; } }
.os[data-shape="phone"] .wall-logo { display: none !important; }
.os:not([data-wall="izak"]) .home-brand > * { display: none; }
.home-pills { margin: 10px auto 12px; display: flex; gap: 10px; justify-content: center; }
.home-pills .home-search { margin: 0; }
.home-search { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 14px; border-radius: 15px; background: rgba(255, 255, 255, .22); color: var(--mb-text); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-weight: 500; }
.home-search svg.i { width: 14px; height: 14px; }
/* the dock holds the computer's Dock apps: as many columns as apps, the icons as big as they can be */
.home-dock { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; justify-items: center; align-items: center; padding: 12px 10px; border-radius: 28px; background: var(--dock-bg); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); }
.home-dock > button { width: 100%; max-width: 62px; display: grid; place-items: center; }
.home-dock .ai, .home-dock .lk { width: 100%; height: auto; aspect-ratio: 1; }
.home-dock .lk .ai { width: 100%; }
.ph-logo { display: inline-flex; align-items: center; } .ph-logo svg.logo { width: 46px; height: auto; }
.os[data-shape="phone"] .desk { inset: 0; }
.os[data-shape="phone"] .win { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; flex-direction: column; transform: translateY(30px); }
.os[data-shape="phone"] .win.is-in { transform: none; }
.os[data-shape="phone"] .w-side { display: none; }
.os[data-shape="phone"] .w-bar { height: auto; flex-basis: auto; padding: 50px 12px 8px; gap: 6px; }
.os[data-shape="phone"] .w-lights { display: none; }
.ph-back { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding-inline: 4px 8px; color: var(--cobalt); font-size: 16px; font-weight: 500; }
.os[data-mode="dark"] .ph-back { color: #6F9BFF; }
.ph-back svg.i { width: 22px; height: 22px; }
.ph-bar { position: absolute; bottom: 7px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--text); opacity: .75; z-index: 30; }
/* on a real phone its own home bar is there: ours only shows over an open app, to come back home */
.os[data-device="phone"]:not(:has(.win.is-in)) .ph-bar { display: none; }
.os[data-device="phone"] .ph-bar { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
.os:not([data-shape="phone"]) .ph-bar, .os:not([data-shape="phone"]) .ph-back, .os:not([data-shape="phone"]) .ph-status, .os:not([data-shape="phone"]) .home { display: none; }

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

/* ---------- the account: avatar in the menu bar, its menu, sizes ---------- */
.uav { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 600; letter-spacing: .01em; line-height: 1; overflow: hidden; }
.uav.is-anon { background: var(--field); color: var(--text-2); }
.uav svg.i { width: 58%; height: 58%; stroke-width: 2; }
.uav-mb { width: 20px; height: 20px; font-size: 9px; }
.uav-sm { width: 28px; height: 28px; font-size: 11px; }
.uav-md { width: 36px; height: 36px; font-size: 14px; }
.uav-lg { width: 40px; height: 40px; font-size: 15px; }
.uav-xl { width: 76px; height: 76px; font-size: 28px; }
.mb .uav.is-anon, .ph-status .uav.is-anon { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.mb .uav.is-anon svg.i, .ph-status .uav.is-anon svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.mb .uav:not(.is-anon), .ph-status .uav:not(.is-anon) { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.mb-prof { padding-inline: 6px; position: relative; }
/* the client's profile is not complete yet (the founder's onboarding): a red dot, as macOS does */
.mb-dot { position: absolute; top: 1px; inset-inline-end: 1px; width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .45); pointer-events: none; }
.mi .mdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; }
.mhead { display: flex; align-items: center; gap: 10px; padding: 7px 10px 8px; max-width: 280px; }
.mhead div b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead div span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-right { display: flex; align-items: center; gap: 2px; }
.os[data-shape="phone"]:has(.win.is-in) .ph-status { color: var(--text); }
.os[data-shape="phone"]:has(.win.is-in) .ph-status .uav:not(.is-anon) { box-shadow: none; }
/* thin, quiet scrollbars, closer to macOS overlay scrollbars */
.w-body, .w-side-in, .spot-res, .msgs, .fgal-strip { scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .45) transparent; }

/* ---------- padlocks on locked items ---------- */
.lk { position: relative; display: inline-grid; place-items: center; }
.lockb { position: absolute; bottom: -3px; inset-inline-start: -5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .15); }
.lockb svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.art-s .lockb, .art-m .lockb, .fgal-strip .lockb { width: 13px; height: 13px; bottom: -2px; inset-inline-start: -3px; }
.art-s .lockb svg.i, .art-m .lockb svg.i, .fgal-strip .lockb svg.i { width: 8px; height: 8px; stroke-width: 2.8; }
.lockb.is-open { background: var(--cobalt); color: #fff; animation: unlock 1.5s var(--ease) forwards; }
@keyframes unlock { 0% { transform: none; } 25% { transform: scale(1.3); } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(.3); opacity: 0; } }
/* izak HQ looking at a client's desktop */
.mb-view { height: 20px; padding-inline: 8px 10px; border-radius: 99px; background: var(--cobalt); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 6px; white-space: nowrap; }
.mb-view svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.mb-view:hover { background: var(--cobalt-hover); }
[dir="rtl"] .sticky { right: auto; left: 20px; }
