/* Yapuka home: the desktop replica. Colours come from the real theme.json files (set by desktop.js). */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 400; font-display: swap; src: url("../fonts/andika-400.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 700; font-display: swap; src: url("../fonts/andika-700.woff2") format("woff2"); }

.desk { --fs: 1; --bg: #fff; --text: #2a2550; --muted: #6b6590; --surface: #f4f4f2; --panel: #1e1b33; --panel-text: #f3f1fb; --panel-card: #2b2840; --panel-hover: #37344c; --panel-muted: #b9b5d0;
  --accent: #ff6b35; --accent-text: #000; --accent-hover: #ff8559; --focus: #3a2bc4; --hover: #ecebf1; --dock: rgba(255,255,255,.96); --dock-text: #2a2550; --dock-hover: #ecebf1; --dock-muted: #6b6590; --dock-border: rgba(0,0,0,.1);
  --notch: #000; --notch-text: #f5f5f7; --notch-muted: #b8b8bd; --notch-card: #1f1f20; --wall-ink: #14161a; --win-border: rgba(0,0,0,.12);
  position: relative; height: 100svh; min-height: 520px; z-index: 5; overflow: hidden; background: #cfd0cf; color: var(--text); font: 600 calc(var(--fs) * 16px)/1.45 "Nunito", system-ui, sans-serif; outline: none; }
.desk[data-font="andika"], .desk[data-font="andika"] * { font-family: "Andika", "Nunito", sans-serif !important; }
.desk[data-cursor="big"], .desk[data-cursor="big"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.5L10 19z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
.desk *, .desk *::before, .desk *::after { box-sizing: border-box; }
.desk button { font: inherit; color: inherit; cursor: pointer; }
.desk :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.desk[data-theme="nuit"] :focus-visible, .desk[data-theme="contraste"] :focus-visible { outline-color: var(--focus); }
.desk a { color: inherit; }
.desk[hidden] { display: none; }
html.desk-on .nojs-hero { display: none; }
#presentation { outline: none; }
html.desk-on .site-foot { display: none; }
html.desk-on .site-nav:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
html.desk-on .site-nav:focus-within { z-index: 200; }

/* wallpaper */
.wall { position: absolute; inset: 0; background: #cfd0cf center / cover no-repeat; }
.desk[data-wall="rivage"] .wall { background-image: url("../../../images/yapuka/app/desk/rivage.webp"); }
.desk[data-wall="nuit"] .wall { background-image: url("../../../images/yapuka/app/desk/nuit.svg"); }
.desk[data-wall="prairie"] .wall { background-image: url("../../../images/yapuka/app/desk/prairie.svg"); }
.desk[data-wall="contraste"] .wall { background-image: url("../../../images/yapuka/app/desk/contraste.svg"); background-color: #000; }
.wall video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the name, like a wallpaper title: centred, behind the windows */
.deskname { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; z-index: 1; text-align: center; font-family: "Geist", "Nunito", sans-serif; font-weight: 600; letter-spacing: -.055em; line-height: 1; font-size: clamp(64px, 15vw, 230px); color: var(--wall-ink); text-shadow: 0 2px 40px rgba(255,255,255,.35); padding-bottom: 4vh; word-spacing: 0; }
.desk[data-theme="nuit"] .deskname, .desk[data-theme="contraste"] .deskname { text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.desk .deskname-sub { margin: 0; z-index: 1; pointer-events: none; position: absolute; left: 50%; top: calc(50% + clamp(38px, 8vw, 120px)); transform: translateX(-50%); font: 800 clamp(12px, 1.35vw, 17px)/1.35 "Nunito", sans-serif; letter-spacing: .01em; max-width: 86vw; width: max-content; padding: 6px 16px; border-radius: 99px; color: var(--text); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none; }

/* greeting */
.greet { position: absolute; z-index: 3; left: 12px; top: 8px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05em; color: var(--text); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 99px; padding: 4px 16px 4px 4px; }
.greet img { width: 38px; height: 38px; }

/* notch */
.notch { position: absolute; z-index: 60; left: 50%; top: 0; transform: translateX(-50%); display: grid; justify-items: center; }
#notch { background: var(--notch); color: var(--notch-text); border: 0; border-radius: 0 0 12px 12px; min-width: 190px; min-height: 32px; padding: 0 18px; font-weight: 800; font-size: .82em; transition: border-radius .2s, padding .2s; }
.notch-open #notch { border-radius: 0 0 22px 22px; padding-bottom: 8px; }
#notch-glance { background: var(--notch); color: var(--notch-text); border-radius: 0 0 22px 22px; min-width: 260px; padding: 2px 22px 16px; text-align: center; margin-top: -1px; display: none; }
.notch-open #notch-glance { display: block; }
#notch-glance .t { font-size: 1.9em; font-weight: 800; line-height: 1.1; }
#notch-glance .d { color: var(--notch-muted); font-weight: 700; font-size: .9em; text-transform: capitalize; }
#notch-glance .c { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
#notch-glance .c span { background: var(--notch-card); border-radius: 99px; padding: 4px 12px; font-size: .78em; font-weight: 800; }
.notif { position: absolute; z-index: 61; left: 50%; top: 40px; width: min(420px, calc(100vw - 24px)); transform: translate(-50%, -24px); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s; background: var(--notch); color: var(--notch-text); border-radius: 20px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; text-align: left; border: 0; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
.notif.show { transform: translate(-50%, 0); opacity: 1; }
.notif img { width: 36px; height: 36px; flex: none; }
.notif b { display: block; font-size: .95em; color: var(--notch-text); }
.notif .notif-body { color: var(--notch-muted); font-size: .88em; font-weight: 700; }

/* top right cluster */
.tray { position: absolute; z-index: 40; right: 14px; top: 10px; display: flex; gap: 8px; align-items: center; }
.pill { background: var(--dock); color: var(--dock-text); border: 1px solid var(--dock-border); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: .82em; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; min-height: 36px; transition: background .15s, transform .15s; }
.pill:hover { background: var(--dock-hover); }
.pill kbd { font: 800 .8em "Geist Mono", monospace; color: var(--dock-muted); border: 1px solid var(--dock-border); border-radius: 6px; padding: 0 5px; }
.pill[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
/* language: one button, black outline and text, colour only on hover (Seb, like oui.software) */
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 12px; border: 1.5px solid #000; border-radius: 99px; background: transparent; color: #000; font: 800 .8em "Geist Mono", monospace; letter-spacing: .04em; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.lang-btn:hover, .lang-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #000; }

/* dock */
.edge-l, .edge-r { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 30; }
.edge-l { left: 0; } .edge-r { right: 0; }
.dock { position: absolute; z-index: 45; left: 0; top: 50%; transform: translate(-115%, -50%); transition: transform .18s ease-out; background: var(--dock); border: 1px solid var(--dock-border); border-left: 0; border-radius: 0 18px 18px 0; padding: 6px 4px 6px 14px; display: grid; gap: 1px; }
.dock.open { transform: translate(0, -50%); }
.dock ul { list-style: none; margin: 0; padding: 0; display: contents; }
.tile { background: transparent; border: 0; color: var(--dock-text); width: 64px; padding: 5px 2px 4px; border-radius: 12px; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: .66em; line-height: 1.2; transition: background .14s; }
.tile span { white-space: nowrap; }
.tile img { width: 30px; height: 30px; transition: transform .14s; }
.tile:hover, .tile.current, .tile[aria-expanded="true"] { background: var(--dock-hover); }
.tile:hover img { transform: scale(1.12); }
.tile.apart { margin-top: 6px; }
.dock-tab { position: absolute; z-index: 44; left: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 76px; border: 0; border-radius: 0 12px 12px 0; background: var(--dock); border: 1px solid var(--dock-border); border-left: 0; color: var(--dock-muted); display: grid; place-items: center; padding: 0; }
.dock-open .dock-tab { opacity: 0; pointer-events: none; }
.dock-tab svg, .panel-tab svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.flyout { position: absolute; z-index: 46; left: 84px; background: var(--dock); border: 1px solid var(--dock-border); border-radius: 18px; padding: 8px; display: grid; grid-template-columns: repeat(3, 94px); gap: 2px; animation: pop .14s ease-out; }
.flyout[hidden] { display: none; }
.flyout h2 { grid-column: 1 / -1; margin: 2px 0 4px 8px; font-size: .8em; font-weight: 800; color: var(--dock-muted); letter-spacing: 0; text-transform: none; word-spacing: 0; }
.app { background: transparent; border: 0; color: var(--dock-text); padding: 8px 4px 8px; border-radius: 14px; display: grid; justify-items: center; gap: 4px; font-weight: 800; font-size: .8em; line-height: 1.2; transition: background .14s; }
.app img { width: 46px; height: 46px; transition: transform .14s; }
.app:hover, .app.current { background: var(--dock-hover); }
.app:hover img { transform: scale(1.08); }
@keyframes pop { from { opacity: 0; transform: translateX(-12px); } }

/* panel: Trucs importants */
.panel { position: absolute; z-index: 47; right: 0; top: 0; bottom: 0; width: min(340px, 92vw); background: var(--panel); color: var(--panel-text); transform: translateX(105%); transition: transform .2s ease-out; box-shadow: inset 2px 0 0 var(--panel-card); padding: 16px 16px 24px; overflow: auto; display: grid; gap: 12px; align-content: start; }
.panel.open { transform: none; }
.panel header { display: flex; justify-content: space-between; align-items: center; }
.panel h2 { font-size: 1.35em; font-weight: 800; margin: 0; letter-spacing: 0; word-spacing: 0; }
.panel .x { background: transparent; border: 0; border-radius: 99px; width: 36px; height: 36px; color: var(--panel-muted); font-size: 1.3em; font-weight: 800; }
.panel .x:hover { background: var(--panel-hover); }
.card { background: var(--panel-card); border-radius: 18px; padding: 12px 14px; display: grid; gap: 4px; }
.card h3 { font-size: .85em; font-weight: 800; color: var(--panel-muted); margin: 0; letter-spacing: 0; word-spacing: 0; }
.card .big { font-size: 2.6em; font-weight: 800; line-height: 1.05; }
.card .dt { font-size: 1.02em; font-weight: 700; text-transform: capitalize; }
.card textarea { width: 100%; min-height: 64px; resize: vertical; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 0; }
.cal { width: 100%; border-collapse: collapse; font-size: .82em; text-align: center; }
.cal th { color: var(--panel-muted); font-weight: 800; padding: 2px 0; }
.cal td { padding: 3px 0; border-radius: 99px; }
.cal td.today { background: var(--accent); color: var(--accent-text); font-weight: 800; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.nums b { display: block; font: 800 1.5em/1.05 "Geist Mono", monospace; letter-spacing: -.04em; }
.nums span { color: var(--panel-muted); font-size: .75em; font-weight: 700; line-height: 1.3; display: block; }
.panel-tab { position: absolute; z-index: 44; right: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 76px; border-radius: 12px 0 0 12px; background: var(--panel); color: var(--panel-muted); border: 0; display: grid; place-items: center; padding: 0; }
.panel-open .panel-tab { opacity: 0; pointer-events: none; }

/* windows */
.win { position: absolute; z-index: 20; width: min(740px, calc(100% - 32px)); max-height: calc(100% - 110px); display: flex; flex-direction: column; background: var(--bg); color: var(--text); border: 1px solid var(--win-border); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); overflow: hidden; outline: none; }
.win[hidden] { display: none; }
.win.pop { animation: winpop .22s ease-out; }
@keyframes winpop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.win:not(.active) { box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.wbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--surface); border-bottom: 1px solid var(--win-border); cursor: grab; user-select: none; touch-action: none; }
.win.dragging .wbar { cursor: grabbing; }
.wbar img { width: 24px; height: 24px; }
.wtitle { font-weight: 800; flex: 1; font-size: .95em; margin: 0; letter-spacing: 0; word-spacing: 0; line-height: 1.2; }
.wclose { width: 36px; height: 36px; border-radius: 99px; border: 0; background: transparent; font-size: 1.3em; font-weight: 800; color: var(--muted); }
.wclose:hover { background: var(--hover); color: var(--text); }
.wbody { padding: 18px 22px 24px; overflow: auto; display: grid; gap: 14px; align-content: start; font-weight: 600; }
.wbody h2 { font-size: 1.6em; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em; word-spacing: 0; }
.wbody h3 { font-size: 1.1em; margin: 0; font-weight: 800; letter-spacing: 0; word-spacing: 0; }
.wbody p { margin: 0; max-width: 62ch; }
.wbody .muted { color: var(--muted); }
.wbody a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 800; }
.wbody .tech { font: 500 .78em/1.55 "Geist Mono", monospace; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.wbody img.shot { border-radius: 10px; border: 1px solid var(--win-border); width: 100%; height: auto; }
.wbody ul.plain { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.btn2 { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 99px; background: var(--accent); color: var(--accent-text) !important; text-decoration: none !important; font-weight: 800; border: 0; transition: background .15s, transform .15s; }
.btn2:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn2:active { transform: scale(.97); }
.btn2.ghost { background: transparent; color: var(--text) !important; border: 2px solid var(--win-border); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 6px; background: var(--surface); border-radius: 99px; padding: 4px; width: max-content; max-width: 100%; }
.tabs [role="tab"] { border: 0; background: transparent; border-radius: 99px; padding: 6px 18px; font-weight: 800; min-height: 36px; color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-text); }
[role="tabpanel"] { display: grid; gap: 14px; }
[role="tabpanel"][hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats div { background: var(--surface); border-radius: 14px; padding: 10px 14px; }
.stats b { display: block; font: 800 1.6em/1.1 "Geist Mono", monospace; letter-spacing: -.04em; }
.stats span { color: var(--muted); font-size: .85em; }
.steps2 { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps2 li::before { content: counter(s); width: 28px; height: 28px; border-radius: 99px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: .85em; }
/* themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.themes button { border: 3px solid var(--win-border); border-radius: 16px; background: var(--surface); padding: 0; overflow: hidden; text-align: left; color: var(--text); }
.themes button[aria-pressed="true"] { border-color: var(--accent); }
.themes .sw { height: 70px; display: block; background-size: cover; background-position: center; }
.themes .tname { display: flex; justify-content: space-between; padding: 8px 12px; font-weight: 800; }
.themes .tname i { font-style: normal; font-size: .8em; color: var(--muted); }
.themes button[aria-pressed="true"] .tname i::after { content: "✓"; color: var(--text); }
.toggles { display: grid; gap: 10px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 10px 14px; }
.toggle .tl { display: grid; }
.toggle small { color: var(--muted); font-weight: 600; }
.toggle button[role="switch"] { flex: none; width: 52px; height: 30px; border-radius: 99px; border: 2px solid var(--win-border); background: var(--bg); position: relative; padding: 0; }
.toggle button[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: var(--muted); transition: transform .15s; }
.toggle button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.toggle button[aria-checked="true"]::after { transform: translateX(22px); background: var(--accent-text); }
.seg { display: flex; gap: 4px; }
.seg button { border: 2px solid var(--win-border); background: var(--bg); border-radius: 99px; padding: 4px 14px; font-weight: 800; min-height: 34px; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.faq2 details { background: var(--surface); border-radius: 12px; padding: 0; }
.faq2 summary { cursor: pointer; padding: 10px 14px; font-weight: 800; }
.faq2 details p { padding: 0 14px 12px; }
.kbds { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kbds kbd { font: 700 .8em "Geist Mono", monospace; border: 1px solid var(--win-border); border-radius: 6px; padding: 1px 7px; background: var(--surface); }

/* caption card */
.caption { position: absolute; z-index: 35; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); background: rgba(20, 22, 26, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 16px 18px 16px; display: grid; gap: 10px; font-weight: 700; }
.caption[hidden] { display: none; }
.caption p { margin: 0; font-size: .95em; line-height: 1.45; padding-right: 22px; }
.cap-m { display: none; }
.caption .row .btn2 { min-height: 38px; }
.caption .btn2.ghost { background: var(--dock); color: var(--dock-text) !important; border-color: transparent; }
.caption .x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 99px; background: transparent; border: 0; color: rgba(255,255,255,.75); font-size: 1.2em; }
.caption .x:hover { background: rgba(255,255,255,.14); }
.has-win .caption, .dock-open .caption, .panel-open .caption { opacity: 0; pointer-events: none; }
.caption:focus-within { opacity: 1 !important; pointer-events: auto !important; z-index: 70; }

/* launcher */
.launcher { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.28); display: grid; justify-items: center; align-content: start; padding-top: 14vh; }
.launcher[hidden] { display: none; }
.launcher .box { width: min(560px, calc(100% - 24px)); background: var(--panel); color: var(--panel-text); border-radius: 20px; padding: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); display: grid; gap: 8px; }
.launcher label { font-weight: 800; font-size: .85em; color: var(--panel-muted); padding-left: 6px; }
.launcher input { width: 100%; background: var(--panel-card); border: 2px solid transparent; border-radius: 14px; color: inherit; font: 700 1.15em "Nunito", sans-serif; padding: 12px 16px; }
.launcher input:focus { border-color: var(--accent); outline: none; }
.launcher ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.launcher li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.launcher li[aria-selected="true"], .launcher li:hover { background: var(--panel-hover); }
.launcher li .lh { margin-left: auto; color: var(--panel-muted); font-weight: 700; font-size: .8em; }
.launcher .hintline { color: var(--panel-muted); font-size: .78em; padding-left: 6px; }
.launcher .empty { padding: 10px 12px; color: var(--panel-muted); }

/* sleep */
.sleep { position: fixed; inset: 0; z-index: 410; background: #05060a center / cover no-repeat; display: grid; place-items: center; text-align: center; color: #fff; border: 0; width: 100%; }
.sleep[hidden] { display: none; }
.sleep > div { display: grid; gap: 14px; }
.sleep .t { font: 800 clamp(64px, 14vw, 180px)/1 "Nunito", sans-serif; letter-spacing: -.03em; }
.sleep .m { font-size: clamp(20px, 3vw, 34px); font-weight: 800; }
.sleep .h { color: #c9ccd4; font-size: .9em; font-weight: 700; }
.sleep { background-image: linear-gradient(rgba(5,6,10,.55), rgba(5,6,10,.7)), url("../../../images/yapuka/app/desk/nuit.svg"); }

/* phone-sized desktop */
@media (max-width: 900px) {
  .dock { top: auto; bottom: 0; left: 0; right: 0; transform: none; transition: none; border: 0; border-top: 1px solid var(--dock-border); border-radius: 18px 18px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; z-index: 55; }
  .dock ul { display: contents; }
  .dock.open { transform: none; }
  .tile { width: auto; flex: 1; max-width: 76px; min-height: 52px; font-size: .62em; }
  .tile.apart { margin-top: 0; }
  .dock-tab, .edge-l, .edge-r { display: none; }
  .panel-tab { top: 38%; width: 30px; height: 84px; }
  .flyout { left: 8px; right: 8px; bottom: 76px; top: auto !important; grid-template-columns: repeat(3, 1fr); z-index: 56; max-height: 50vh; overflow: auto; }
  .win { left: 0 !important; top: 0 !important; right: 0; bottom: 64px; width: auto; max-height: none; border-radius: 0 0 18px 18px; z-index: 52; }
  .wbar { cursor: default; padding-top: 42px; }
  .panel { z-index: 57; width: 100%; bottom: 0; padding-top: 46px; }
  .caption { bottom: 136px; left: 10px; right: 10px; width: auto; padding: 12px 14px; }
  .pill[data-launcher]::before { content: "⌕"; font-size: 1.3em; line-height: 1; }
  .caption p { font-size: .88em; }
  .cap-d { display: none; } .cap-m { display: inline; }
  .tray { top: 44px; right: 10px; gap: 6px; }
  .tray .pill { min-height: 44px; min-width: 44px; justify-content: center; padding: 6px 12px; }
  .tray .pill .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .caption .x { width: 44px; height: 44px; top: 0; right: 0; }
  .caption .row .btn2 { min-height: 44px; }
  #notch { min-height: 44px; }
  .win .wclose, .panel .x { width: 44px; height: 44px; }
  .tray .pill kbd { display: none; }
  .greet { top: 44px; left: 10px; font-size: .95em; }
  .greet img { width: 30px; height: 30px; }
  .desk .deskname-sub { white-space: normal; text-align: center; width: 86vw; border-radius: 18px; }
  .deskname { padding-bottom: 14vh; font-size: clamp(56px, 22vw, 120px); }
  .notif { top: 96px; }
  .launcher { padding-top: 8vh; z-index: 90; }
}
@media (max-width: 900px) and (max-height: 560px) { .caption { display: none; } }
@media (prefers-reduced-motion: reduce) { .desk *, .desk *::before, .desk *::after { animation: none !important; transition: none !important; } }
.desk[data-calm="1"] *, .desk[data-calm="1"] *::before, .desk[data-calm="1"] *::after { animation: none !important; transition: none !important; }
.desk [hidden] { display: none !important; }

/* download button, next to the language button: the primary action */
.desk .dl-btn { font: 800 .85em "Nunito", sans-serif; }
.desk .dl-btn:hover, .desk .dl-btn:focus-visible { background: transparent; color: var(--text); }
.desk[data-theme="nuit"] .dl-btn:hover, .desk[data-theme="contraste"] .dl-btn:hover { color: var(--accent); }
/* scroll cue */
.scrollcue { position: absolute; z-index: 36; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 22px; border-radius: 99px; background: var(--dock); color: var(--dock-text); border: 1px solid var(--dock-border); text-decoration: none; font-weight: 800; box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); transition: transform .15s, background .15s; }
.scrollcue:hover { background: var(--dock-hover); transform: translateX(-50%) translateY(-2px); }
.scrollcue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .scrollcue svg { animation: bob 1.8s ease-in-out infinite; } @keyframes bob { 50% { transform: translateY(4px); } } }
.has-win .scrollcue { opacity: 0; pointer-events: none; }
.scrollcue:focus-visible { opacity: 1 !important; pointer-events: auto !important; }
/* panel: clock + navigation */
.card.clock { padding: 14px 16px; }
.panel-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.panel-nav a { display: block; padding: 10px 14px; border-radius: 14px; color: var(--panel-text); text-decoration: none; font-weight: 800; font-size: 1.15em; transition: background .14s; }
.panel-nav a:hover, .panel-nav a:focus-visible { background: var(--panel-hover); }
.panel-nav a.hi { background: var(--accent); color: var(--accent-text); }
.panel-nav a.hi:hover { background: var(--accent-hover); }
@media (max-width: 900px) { .scrollcue { bottom: 84px; white-space: nowrap; } .dl-btn { min-height: 44px; padding: 0 12px; } }

/* the tray never reaches the notch or its notification */
.notif { top: 58px; }
@media (max-width: 1499px) and (min-width: 901px) {
  .tray .pill .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tray .pill { min-width: 44px; justify-content: center; }
  .pill[data-launcher]::before { content: "\2315"; font-size: 1.3em; line-height: 1; }
}

.panel-tab { color: var(--panel-text); border: 1px solid var(--panel-card); border-right: 0; }

/* language button: black outline and black text in every theme; white fill on the dark replica themes (as on the inner pages) */
.desk .lang-btn { border-color: #000; color: #000; }
.desk[data-theme="nuit"] .lang-btn, .desk[data-theme="contraste"] .lang-btn { background: #fff; }
.desk .lang-btn:hover, .desk .lang-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #000; }
.desk .dl-btn:not(:hover):not(:focus-visible) { color: #000; }
