/* LF Desktop: a website that works like a modern computer desktop. Studio piece, studio fonts.
   All classes are dk- prefixed. Light and dark themes via [data-theme] on .dk. */
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

html, body { margin: 0; height: 100%; overflow: hidden; background: #0c130e; }
body { font: 14px/1.45 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.dk [hidden] { display: none !important; }
.dk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: default; }

.dk {
  --accent: #2fb56a; --accent-2: #8fd14f; --on-accent: #06140a;
  --ink: #f2f6f1; --ink-2: #b7c4b9; --ink-3: #8a988d;
  --glass: rgba(26, 34, 29, .72); --glass-2: rgba(36, 46, 40, .82); --solid: #1d2520; --solid-2: #252f29;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --hover: rgba(255, 255, 255, .07); --press: rgba(255, 255, 255, .04);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --bar: 52px;
  position: fixed; inset: 0; color: var(--ink); user-select: none; -webkit-user-select: none; overflow: hidden;
}
.dk[data-theme="light"] {
  --ink: #18201a; --ink-2: #48544b; --ink-3: #6f7b72; --on-accent: #ffffff; --accent: #17743f;
  --glass: rgba(244, 247, 242, .74); --glass-2: rgba(250, 252, 249, .86); --solid: #f6f8f4; --solid-2: #eaefe8;
  --line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .14);
  --hover: rgba(0, 0, 0, .05); --press: rgba(0, 0, 0, .08);
  --shadow: 0 24px 60px rgba(20, 40, 25, .22), 0 2px 8px rgba(0, 0, 0, .12);
}
.dk input, .dk textarea { user-select: text; -webkit-user-select: text; }
.dk svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dk svg.dk-art { stroke: none; stroke-width: 1; } /* coloured artwork: only the shapes that ask for a stroke get one */

/* ---------- wallpaper ---------- */
.dk-wall { position: absolute; inset: 0; background: #0f1a12; }
.dk-wall canvas { width: 100%; height: 100%; display: block; }

/* ---------- desktop icons ---------- */
.dk-icons { position: absolute; inset: var(--top, 0px) 0 var(--bar) 0; margin: 0; padding: 0; list-style: none; }
.dk-ic { position: absolute; width: 92px; padding: 6px 4px 7px; border-radius: 8px; text-align: center; border: 1px solid transparent; outline: none; touch-action: none; }
.dk-ic:hover { background: rgba(255, 255, 255, .1); }
.dk-ic.is-sel { background: rgba(143, 209, 79, .22); border-color: rgba(143, 209, 79, .45); }
.dk-ic:focus-visible { border-color: #fff; }
.dk-ic__img { width: 50px; height: 50px; margin: 0 auto 4px; display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); pointer-events: none; }
.dk-ic__img img, .dk-ic__img svg { max-width: 100%; max-height: 100%; }
.dk-ic__name { display: block; color: #fff; font-size: 12.5px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .5); overflow-wrap: anywhere; pointer-events: none; }
.dk-ic.is-drag { opacity: .75; z-index: 2; }
.dk-band { position: absolute; border: 1px solid rgba(143, 209, 79, .8); background: rgba(143, 209, 79, .16); pointer-events: none; }

/* file-type artwork (shared by icons, explorer and the start menu) */
.dk-thumb { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.dk-thumb > img { width: 100%; height: 76%; object-fit: cover; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); background: #fff; }
.dk-thumb__badge { position: absolute; right: -3px; bottom: 4px; width: 18px; height: 18px; border-radius: 5px; background: #fff; color: #17743f; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.dk .dk-thumb .dk-thumb__badge svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* ---------- windows ---------- */
.dk-wins { position: absolute; inset: var(--top, 0px) 0 var(--bar) 0; pointer-events: none; }
.dk-win {
  position: absolute; display: flex; flex-direction: column; min-width: 280px; min-height: 180px;
  background: var(--solid); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden; pointer-events: auto; transform-origin: 50% 100%;
  transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.dk-win.is-in { opacity: 0; transform: scale(.94) translateY(10px); }
.dk-win.is-min { opacity: 0; transform: scale(.06); pointer-events: none; transition: opacity .34s ease-in, transform .34s cubic-bezier(.5, 0, .7, .4); } /* shrinks into its dock/taskbar button (origin set by desktop.js) */
.dk-win.is-out { opacity: 0; transform: scale(.94); }
.dk-win.is-max { border-radius: 0; border-width: 0; }
.dk-win.is-anim { transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1), left .22s cubic-bezier(.2, .8, .2, 1), top .22s cubic-bezier(.2, .8, .2, 1), width .22s cubic-bezier(.2, .8, .2, 1), height .22s cubic-bezier(.2, .8, .2, 1); }
.dk-win:not(.is-active) { box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.dk-win__bar { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding-left: 12px; background: var(--solid-2); border-bottom: 1px solid var(--line); touch-action: none; }
.dk-win:not(.is-active) .dk-win__bar { color: var(--ink-3); }
.dk-win__ic { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.dk-win__ic svg, .dk-win__ic img { width: 18px; height: 18px; }
.dk-win__title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-win__btns { display: flex; height: 100%; }
.dk-win__btns button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: inherit; }
.dk-win__btns button:hover { background: var(--hover); }
.dk-win__btns button[data-act="close"]:hover { background: #d9402b; color: #fff; }
.dk-win__btns svg { width: 14px; height: 14px; stroke-width: 1.4; }
.dk-win__body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.dk-win__shield { position: absolute; inset: 40px 0 0; display: none; }
.dk.is-dragging .dk-win__shield { display: block; } /* stops iframes eating the pointer mid-drag */
.dk-rs { position: absolute; z-index: 3; touch-action: none; }
.dk-rs[data-e="n"] { top: -3px; left: 8px; right: 8px; height: 7px; cursor: ns-resize; }
.dk-rs[data-e="s"] { bottom: -3px; left: 8px; right: 8px; height: 7px; cursor: ns-resize; }
.dk-rs[data-e="e"] { right: -3px; top: 8px; bottom: 8px; width: 7px; cursor: ew-resize; }
.dk-rs[data-e="w"] { left: -3px; top: 8px; bottom: 8px; width: 7px; cursor: ew-resize; }
.dk-rs[data-e="ne"] { right: -3px; top: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.dk-rs[data-e="nw"] { left: -3px; top: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.dk-rs[data-e="se"] { right: -3px; bottom: -3px; width: 14px; height: 14px; cursor: nwse-resize; }
.dk-rs[data-e="sw"] { left: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.dk-win.is-max .dk-rs { display: none; }
.dk-snap { position: absolute; border-radius: 10px; background: rgba(143, 209, 79, .16); border: 1px solid rgba(143, 209, 79, .55); backdrop-filter: blur(6px); transition: all .15s; pointer-events: none; z-index: 5; }

/* ---------- taskbar ---------- */
.dk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--glass); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); border-top: 1px solid var(--line); }
.dk-bar__mid { display: flex; align-items: center; gap: 4px; }
.dk-tb { position: relative; width: 44px; height: 42px; border: 0; border-radius: 7px; background: none; display: grid; place-items: center; }
.dk-tb:hover { background: var(--hover); }
.dk-tb:active { background: var(--press); }
.dk-tb > svg, .dk-tb > img, .dk-tb > .dk-tb__ic { width: 26px; height: 26px; }
.dk-tb__ic svg { width: 100%; height: 100%; }
.dk-tb--start svg { fill: var(--accent-2); stroke: none; width: 24px; height: 24px; }
.dk-tb::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: var(--ink-3); opacity: 0; transition: width .2s, margin .2s, opacity .2s, background .2s; }
.dk-tb.is-open::after { opacity: 1; }
.dk-tb.is-active { background: var(--hover); }
.dk-tb.is-active::after { width: 16px; margin-left: -8px; background: var(--accent-2); }
.dk-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; margin: 0 6px; border-radius: 17px; background: var(--hover); border: 1px solid var(--line); color: var(--ink-2); }
.dk-search svg { width: 16px; height: 16px; }
.dk-search input { width: 150px; border: 0; background: none; outline: none; }
.dk-search input::placeholder { color: var(--ink-3); }
.dk-tasks { display: flex; gap: 4px; }
.dk-tray { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding-right: 0; }
.dk-tray__btn { height: 42px; padding: 0 10px; border: 0; border-radius: 7px; background: none; display: flex; align-items: center; }
.dk-tray__btn:hover { background: var(--hover); }
.dk-tray__btn svg { width: 20px; height: 20px; }
.dk-tray__btn.is-muted svg path:last-child { opacity: .25; }
.dk-clock { flex-direction: column; align-items: flex-end; justify-content: center; font-size: 12px; line-height: 1.25; }
.dk-clock b { font-weight: 500; }
.dk-peek { width: 10px; height: 100%; border: 0; border-left: 1px solid var(--line); background: none; margin-left: 4px; }
.dk-peek:hover { background: var(--hover); }
.dk-tip { position: absolute; z-index: 80; padding: 5px 9px; border-radius: 6px; background: var(--glass-2); backdrop-filter: blur(20px); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

/* ---------- flyouts: start menu, calendar, menus ---------- */
.dk-start, .dk-cal, .dk-menu { position: absolute; z-index: 60; background: var(--glass-2); backdrop-filter: blur(36px) saturate(1.5); -webkit-backdrop-filter: blur(36px) saturate(1.5); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); }
.dk-start { bottom: calc(var(--bar) + 10px); left: 50%; width: min(620px, calc(100vw - 20px)); max-height: calc(100% - var(--bar) - 30px); margin-left: calc(min(620px, calc(100vw - 20px)) / -2); display: flex; flex-direction: column; animation: dk-up .22s cubic-bezier(.2, .8, .2, 1); }
.dk-cal { bottom: calc(var(--bar) + 10px); right: 10px; width: 300px; padding: 16px; animation: dk-up .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes dk-up { from { opacity: 0; transform: translateY(16px); } }
.dk-start__search { padding: 20px 24px 6px; }
.dk-start__search input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--hover); outline: none; }
.dk-start__search input:focus { border-color: var(--accent-2); }
.dk-start__body { padding: 8px 24px 16px; overflow: auto; min-height: 0; }
.dk-start h2 { font-size: 13px; font-weight: 600; margin: 14px 8px 8px; }
.dk-pins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.dk-pin { border: 0; background: none; border-radius: 7px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; }
.dk-pin:hover, .dk-row:hover, .dk-menu button:hover { background: var(--hover); }
.dk-pin__ic { width: 34px; height: 34px; }
.dk-pin__ic svg, .dk-pin__ic img { width: 100%; height: 100%; }
.dk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.dk-row { display: flex; align-items: center; gap: 12px; border: 0; background: none; border-radius: 7px; padding: 7px 8px; text-align: left; min-width: 0; }
.dk-row__ic { width: 30px; height: 30px; flex: none; }
.dk-row__ic svg, .dk-row__ic img { width: 100%; height: 100%; }
.dk-row b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row small { display: block; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row > span:last-child { min-width: 0; }
.dk-start__none { color: var(--ink-3); padding: 8px; }
.dk-start__foot { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-top: 1px solid var(--line); background: var(--hover); border-radius: 0 0 10px 10px; }
.dk-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dk-user__pic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8fd14f, #17743f); color: #fff; font: 700 15px "Bricolage Grotesque", sans-serif; }
.dk-user__pic--big { width: 96px; height: 96px; font-size: 42px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.dk-power { width: 36px; height: 36px; border: 0; border-radius: 7px; background: none; display: grid; place-items: center; }
.dk-power:hover { background: var(--hover); }
.dk-power svg { width: 18px; height: 18px; }
.dk-menu { min-width: 190px; padding: 4px; display: flex; flex-direction: column; animation: dk-pop .12s ease-out; }
@keyframes dk-pop { from { opacity: 0; transform: scale(.97); } }
.dk-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; border-radius: 5px; padding: 7px 12px; text-align: left; font-size: 13px; }
.dk-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent-2); }
.dk-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.dk-powermenu { position: absolute; right: 16px; bottom: 54px; }
.dk-cal__time { font: 600 32px/1.1 "Bricolage Grotesque", sans-serif; }
.dk-cal__date { color: var(--ink-2); margin-bottom: 12px; }
.dk-cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 12.5px; }
.dk-cal th { color: var(--ink-3); font-weight: 500; padding: 4px 0; }
.dk-cal td { padding: 6px 0; border-radius: 50%; }
.dk-cal td.is-today b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-2); color: #06140a; }
.dk-cal td.is-other { color: var(--ink-3); opacity: .5; }

.dk-toast { position: absolute; z-index: 70; right: 14px; bottom: calc(var(--bar) + 14px); max-width: 320px; padding: 12px 40px 12px 16px; border-radius: 10px; background: var(--glass-2); backdrop-filter: blur(30px); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; pointer-events: none; }
.dk-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dk-toast__x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); display: grid; place-items: center; }
.dk-toast__x:hover { background: var(--hover); color: var(--ink); }
.dk-toast__x svg { width: 12px; height: 12px; stroke-width: 1.8; }
.dk-toast b { display: block; margin-bottom: 2px; }

/* ---------- lock screen, shut down ---------- */
.dk-lock { position: absolute; inset: 0; z-index: 90; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(5, 12, 7, .25); backdrop-filter: blur(0px); transition: transform .6s cubic-bezier(.6, 0, .2, 1), opacity .5s, backdrop-filter .4s; }
.dk.is-locked .dk-icons, .dk.is-locked .dk-bar, .dk.is-locked .dk-wins, .dk.is-locked .dk-top, .dk.is-locked .dk-dock { visibility: hidden; }
.dk-lock.is-sign { backdrop-filter: blur(26px); background: rgba(5, 12, 7, .45); }
.dk-lock.is-gone { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.dk-lock__time { transition: opacity .3s, transform .4s; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.dk-lock__time b { display: block; font: 600 clamp(64px, 12vw, 120px)/1 "Bricolage Grotesque", sans-serif; letter-spacing: 0; }
.dk-lock__time span { font-size: 22px; }
.dk-lock__hint { position: absolute; bottom: 40px; opacity: .75; font-size: 14px; animation: dk-breathe 2.6s ease-in-out infinite; }
@keyframes dk-breathe { 50% { opacity: .35; } }
.dk-lock__sign { display: none; }
.dk-lock.is-sign .dk-lock__time, .dk-lock.is-sign .dk-lock__hint { display: none; }
.dk-lock.is-sign .dk-lock__sign { display: block; animation: dk-up .35s ease-out; }
.dk-lock__sign p { font-size: 26px; margin: 14px 0 18px; }
.dk-signin { padding: 9px 34px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 500; }
.dk-signin:hover { background: rgba(255, 255, 255, .26); }
.dk-lock__sign small { display: block; margin-top: 14px; opacity: .7; }
.dk-off { position: absolute; inset: 0; z-index: 95; background: #000; color: #8a988d; display: grid; place-items: center; text-align: center; font-size: 15px; }
.dk-off .dk-spin { width: 36px; height: 36px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid rgba(143, 209, 79, .2); border-top-color: #8fd14f; animation: dk-turn .9s linear infinite; }
@keyframes dk-turn { to { transform: rotate(1turn); } }
.dk-off button { margin-top: 18px; padding: 9px 22px; border-radius: 6px; border: 1px solid #333; background: #111; color: #ddd; }

/* ---------- apps ---------- */
.dk-tools { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--solid); }
.dk-tools button { height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.dk-tools button:hover:not(:disabled) { background: var(--hover); }
.dk-tools button:disabled { opacity: .35; }
.dk-tools svg { width: 16px; height: 16px; }
.dk-addr { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 5px; background: var(--hover); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; }
.dk-addr button { height: 24px; padding: 0 4px; }
.dk-addr i { font-style: normal; color: var(--ink-3); }

/* explorer */
.dk-fx { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px 1fr; }
.dk-fx__side { border-right: 1px solid var(--line); padding: 8px 6px; overflow: auto; background: var(--solid); }
.dk-fx__side button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; border-radius: 5px; padding: 6px 10px; text-align: left; font-size: 13px; }
.dk-fx__side button:hover { background: var(--hover); }
.dk-fx__side button[aria-current="true"] { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent-2); }
.dk-fx__side svg, .dk-fx__side img { width: 18px; height: 18px; flex: none; }
.dk-fx__side hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.dk-fx__main { overflow: auto; padding: 10px; align-content: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px; background: var(--solid); }
.dk-fx__main.is-list { display: block; padding: 4px 8px; }
.dk-fi { border: 1px solid transparent; background: none; border-radius: 6px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; text-align: center; min-width: 0; outline: none; }
.dk-fi:hover { background: var(--hover); }
.dk-fi.is-sel { background: rgba(143, 209, 79, .18); border-color: rgba(143, 209, 79, .4); }
.dk-fi__img { width: 72px; height: 64px; display: grid; place-items: center; pointer-events: none; }
.dk-fi__img svg { width: 58px; height: 58px; }
.dk-fi__name { overflow-wrap: anywhere; line-height: 1.3; pointer-events: none; }
.is-list .dk-fi { width: 100%; flex-direction: row; text-align: left; padding: 4px 8px; gap: 10px; }
.is-list .dk-fi__img { width: 22px; height: 22px; }
.is-list .dk-fi__img svg { width: 20px; height: 20px; }
.is-list .dk-fi__img .dk-thumb > img { height: 100%; border-width: 1px; }
.is-list .dk-thumb__badge { display: none; }
.is-list .dk-fi__name { flex: 1; }
.dk-fi__kind { color: var(--ink-3); width: 120px; flex: none; pointer-events: none; }
.dk-fi__kind:empty { display: none; }
.dk-fx__main:not(.is-list) .dk-fi__kind { display: none; }
.dk-fx__empty { grid-column: 1 / -1; color: var(--ink-3); text-align: center; padding: 50px 10px; }
.dk-status { flex: none; padding: 4px 12px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--solid); display: flex; justify-content: space-between; }

/* photos */
.dk-ph { flex: 1; min-height: 0; position: relative; background: #0b0f0c; display: grid; place-items: center; overflow: hidden; }
.dk[data-theme="light"] .dk-ph { background: #e9ede7; }
.dk-ph img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.dk-ph__nav { position: absolute; top: 50%; width: 40px; height: 64px; margin-top: -32px; border: 0; border-radius: 6px; background: var(--glass-2); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.dk-ph:hover .dk-ph__nav { opacity: 1; }
.dk-ph__nav svg { width: 18px; height: 18px; }
.dk-ph__nav--p { left: 10px; } .dk-ph__nav--n { right: 10px; }
.dk-strip { flex: none; display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--solid); border-top: 1px solid var(--line); }
.dk-strip button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: #000; opacity: .65; }
.dk-strip button[aria-current="true"] { border-color: var(--accent-2); opacity: 1; }
.dk-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* notepad */
.dk-np { flex: 1; min-height: 0; border: 0; resize: none; outline: none; padding: 16px 20px; background: var(--solid); font: 14.5px/1.6 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; }
.dk-menurow { flex: none; display: flex; gap: 2px; padding: 3px 6px; border-bottom: 1px solid var(--line); background: var(--solid); font-size: 13px; }
.dk-menurow button { border: 0; background: none; border-radius: 5px; padding: 4px 10px; }
.dk-menurow button:hover { background: var(--hover); }

/* web */
.dk-web { flex: 1; min-height: 0; border: 0; width: 100%; background: #fff; }
.dk-web-load { position: absolute; left: 0; top: 0; height: 2px; background: var(--accent-2); transition: width .4s, opacity .3s; }

/* music */
.dk-mp { flex: 1; min-height: 0; display: grid; grid-template-columns: 196px 1fr; grid-template-rows: 1fr auto; background: var(--solid); }
.dk-mp__side { grid-row: 1; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--solid-2); display: flex; flex-direction: column; gap: 2px; }
.dk-mp__side button { display: flex; align-items: center; gap: 10px; border: 0; background: none; border-radius: 6px; padding: 8px 10px; text-align: left; font-size: 13.5px; }
.dk-mp__side button:hover { background: var(--hover); }
.dk-mp__side button[aria-current="true"] { background: var(--hover); color: var(--accent-2); font-weight: 600; }
.dk[data-theme="light"] .dk-mp__side button[aria-current="true"] { color: var(--accent); }
.dk-mp__side svg { width: 18px; height: 18px; }
.dk-mp__credit { margin: auto 10px 4px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.dk-mp__main { grid-row: 1; min-height: 0; overflow: auto; position: relative; }
.dk-mp__lib { padding: 22px 26px 18px; }
.dk-mp__head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 18px; }
.dk-mp__cover { width: 150px; height: 150px; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); flex: none; }
.dk-mp__head small { font-size: 12px; color: var(--ink-3); }
.dk-mp__head h2 { margin: 2px 0 4px; font: 700 clamp(24px, 3.2vw, 34px)/1.1 "Bricolage Grotesque", sans-serif; }
.dk-mp__head p { margin: 0 0 14px; color: var(--ink-2); }
.dk-mp__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-mp__big, .dk-mp__ghost { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px 8px 14px; border-radius: 20px; font-weight: 600; }
.dk-mp__big { border: 0; background: var(--accent); color: var(--on-accent); }
.dk-mp__big:hover { filter: brightness(1.08); }
.dk-mp__ghost { border: 1px solid var(--line-2); background: none; }
.dk-mp__ghost:hover { background: var(--hover); }
.dk-mp__big svg, .dk-mp__ghost svg { width: 16px; height: 16px; }
.dk-mp__list { list-style: none; margin: 0; padding: 0; }
.dk-mp__list button { width: 100%; display: grid; grid-template-columns: 26px 44px 1fr 140px 50px; align-items: center; gap: 12px; padding: 6px 10px; border: 0; border-radius: 7px; background: none; text-align: left; }
.dk-mp__list button:hover { background: var(--hover); }
.dk-mp__list img { width: 44px; height: 44px; border-radius: 5px; }
.dk-mp__n { color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.dk-mp__tt { min-width: 0; }
.dk-mp__tt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-mp__tt small, .dk-mp__mood, .dk-mp__len { color: var(--ink-3); font-size: 12.5px; }
.dk-mp__len { text-align: right; font-variant-numeric: tabular-nums; }
.dk-mp__list .is-cur b { color: var(--accent-2); }
.dk[data-theme="light"] .dk-mp__list .is-cur b { color: var(--accent); }
.dk-mp__list .is-playing .dk-mp__n { font-size: 0; }
.dk-mp__list .is-playing .dk-mp__n::before { content: ""; display: inline-block; width: 14px; height: 12px; background: linear-gradient(var(--accent-2), var(--accent-2)) 0 100% / 3px 60% no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 5px 100% / 3px 100% no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 10px 100% / 3px 40% no-repeat; animation: dk-eq .8s ease-in-out infinite alternate; }
@keyframes dk-eq { to { background-size: 3px 30%, 3px 50%, 3px 100%; } }
.dk-mp__now { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 26px; background: radial-gradient(80% 80% at 30% 40%, var(--hover), transparent); }
.dk-mp__art { width: min(48vh, 46%, 360px); aspect-ratio: 1; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); flex: none; }
.dk-mp__meta { min-width: 0; max-width: 300px; }
.dk-mp__meta small { color: var(--ink-3); font-size: 12px; }
.dk-mp__meta h2 { margin: 4px 0 6px; font: 700 clamp(24px, 3vw, 36px)/1.1 "Bricolage Grotesque", sans-serif; }
.dk-mp__meta p { margin: 0 0 14px; color: var(--ink-2); }
.dk-mp__src { color: var(--ink-3); font-size: 12.5px; }
.dk-mp__src:hover { color: var(--ink); }
.dk-mp__bar { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 1.6fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--solid-2); }
.dk-mp__np { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.dk-mp__np img { width: 46px; height: 46px; border-radius: 6px; flex: none; }
.dk-mp__np span { min-width: 0; }
.dk-mp__np b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-mp__np small { color: var(--ink-3); font-size: 12px; }
.dk-mp__ctl { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dk-mp__btns { display: flex; align-items: center; gap: 10px; }
.dk-mp__btns button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--ink-2); }
.dk-mp__btns button:hover { color: var(--ink); background: var(--hover); }
.dk-mp__btns button svg { width: 18px; height: 18px; }
.dk-mp__btns button[aria-pressed="true"] { color: var(--accent-2); }
.dk[data-theme="light"] .dk-mp__btns button[aria-pressed="true"] { color: var(--accent); }
.dk-mp__btns .dk-mp__play { width: 40px; height: 40px; background: var(--ink); color: var(--solid); }
.dk-mp__btns .dk-mp__play:hover { background: var(--ink); color: var(--solid); transform: scale(1.06); }
.dk-mp__btns .dk-mp__play svg { width: 20px; height: 20px; }
.dk-mp__seek { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dk-mp__seek input { flex: 1; }
.dk-mp__vol { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--ink-2); }
.dk-mp__vol svg { width: 18px; height: 18px; flex: none; }
.dk-mp__vol input { width: 96px; }
.dk-mp__meter { width: 30px; height: 18px; }
/* thin sliders with a filled part (--p) */
.dk-mp input[type="range"] { -webkit-appearance: none; appearance: none; height: 14px; background: none; cursor: pointer; --p: 0%; }
.dk-mp input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / var(--p) 100% no-repeat, var(--line-2); }
.dk-mp input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / var(--p) 100% no-repeat, var(--line-2); }
.dk-mp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity .15s; }
.dk-mp input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); opacity: 0; }
.dk-mp input[type="range"]:hover::-webkit-slider-thumb, .dk-mp input[type="range"]:focus-visible::-webkit-slider-thumb { opacity: 1; }
.dk-mp input[type="range"]:hover::-moz-range-thumb, .dk-mp input[type="range"]:focus-visible::-moz-range-thumb { opacity: 1; }
@media (max-width: 700px) {
  .dk-mp { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .dk-mp__side { grid-row: 1; flex-direction: row; padding: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dk-mp__credit { display: none; }
  .dk-mp__main { grid-row: 2; }
  .dk-mp__lib { padding: 16px 12px; }
  .dk-mp__cover { width: 96px; height: 96px; }
  .dk-mp__list button { grid-template-columns: 22px 40px 1fr 44px; }
  .dk-mp__mood { display: none; }
  .dk-mp__now { flex-direction: column; gap: 18px; text-align: center; }
  .dk-mp__art { width: min(72vw, 40vh); }
  .dk-mp__bar { grid-template-columns: 1fr; gap: 8px; }
  .dk-mp__np, .dk-mp__vol { display: none; }
}

/* mail */
.dk-mail { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--solid); }
.dk-mail__f { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dk-mail__f label { width: 64px; color: var(--ink-3); font-size: 13px; flex: none; }
.dk-mail__f input { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; }
.dk-mail__to { padding: 11px 0; }
.dk-mail__to span { padding: 3px 10px; border-radius: 12px; background: var(--hover); border: 1px solid var(--line); font-size: 13px; }
.dk-mail textarea { flex: 1; min-height: 120px; border: 0; resize: none; outline: none; padding: 14px 16px; background: none; line-height: 1.55; }
.dk-mail__foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.dk-send { padding: 8px 22px; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.dk-send:hover { filter: brightness(1.08); }
.dk-send:disabled { opacity: .6; }
.dk-mail__msg { font-size: 13px; color: var(--ink-2); }
.dk-mail__msg[data-state="ok"] { color: var(--accent-2); }
.dk-mail__msg[data-state="err"] { color: #ff8a73; }
.dk-mail .dk-bot { position: absolute; left: -9999px; }

/* settings */
.dk-set { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px; background: var(--solid); }
.dk-set h2 { font: 600 22px "Bricolage Grotesque", sans-serif; margin: 0 0 18px; }
.dk-set h3 { font-size: 13px; font-weight: 600; margin: 20px 0 10px; }
.dk-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.dk-walls button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; aspect-ratio: 16 / 10; }
.dk-walls button[aria-pressed="true"] { border-color: var(--accent-2); }
.dk-walls canvas { width: 100%; height: 100%; display: block; }
.dk-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 8px; background: var(--hover); border: 1px solid var(--line); }
.dk-seg button { border: 0; background: none; border-radius: 6px; padding: 6px 16px; }
.dk-seg button[aria-pressed="true"] { background: var(--solid-2); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.dk-set p { color: var(--ink-2); max-width: 46ch; }

/* about/properties dialog */
.dk-props { flex: 1; padding: 18px 20px; background: var(--solid); }
.dk-props__head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dk-props__head .dk-props__ic { width: 44px; height: 44px; }
.dk-props__head .dk-props__ic svg, .dk-props__head .dk-props__ic img { width: 100%; height: 100%; }
.dk-props dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.dk-props dt { color: var(--ink-3); }
.dk-props dd { margin: 0; overflow-wrap: anywhere; }
.dk-props__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dk-btn { padding: 7px 18px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--solid-2); }
.dk-btn:hover { background: var(--hover); }
.dk-btn--go { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }

.dk-plain { padding: 30px; color: #eee; font: 16px/1.6 system-ui, sans-serif; }
.dk-plain a { color: #8fd14f; }

/* ---------- dock layout: a menu bar along the top, a floating dock at the bottom ---------- */
.dk[data-layout="dock"] { --top: 30px; --bar: 86px; }
.dk-top { position: absolute; left: 0; right: 0; top: 0; height: var(--top); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 13px; background: var(--glass); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); border-bottom: 1px solid var(--line); }
.dk-top__l, .dk-top__r { display: flex; align-items: center; gap: 1px; height: 100%; min-width: 0; }
.dk-top__l button { height: 24px; padding: 0 10px; border: 0; border-radius: 5px; background: none; white-space: nowrap; }
.dk-top__l button:hover, .dk-top__l button:focus-visible { background: var(--hover); }
.dk-top__brand { font: 700 13.5px "Bricolage Grotesque", sans-serif; color: var(--accent-2); }
.dk[data-theme="light"] .dk-top__brand { color: var(--accent); }
.dk-top__app { font-weight: 700; }
.dk-top .dk-tray__btn { height: 24px; padding: 0 8px; border-radius: 5px; }
.dk-top .dk-tray__btn svg { width: 16px; height: 16px; }
.dk-top .dk-clock { flex-direction: row; gap: 8px; font-size: 13px; }
.dk-top .dk-clock b { font-weight: 600; order: 2; }

.dk-dock { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.dk-dock__in { display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px; border-radius: 20px; pointer-events: auto; background: var(--glass); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.dk-dock .dk-tasks { gap: 6px; }
.dk-dock .dk-tb { width: 54px; height: 54px; border-radius: 13px; transform-origin: 50% 100%; transition: transform .14s ease-out, background .2s; }
.dk-dock .dk-tb:hover { background: none; }
.dk-dock .dk-tb > svg, .dk-dock .dk-tb > .dk-tb__ic { width: 46px; height: 46px; }
.dk-dock .dk-tb--start > svg { width: 34px; height: 34px; }
.dk-dock .dk-tb--start { background: var(--hover); }
.dk-dock .dk-tb::after { width: 5px; height: 5px; margin-left: -2.5px; bottom: -5px; border-radius: 50%; background: var(--ink-2); }
.dk-dock .dk-tb.is-active { background: none; }
.dk-dock .dk-tb.is-active::after { width: 5px; margin-left: -2.5px; background: var(--ink); }
.dk-dock__sep { align-self: stretch; width: 1px; margin: 6px 3px; background: var(--line-2); }

/* windows: three dots on the left, title in the middle */
.dk[data-layout="dock"] .dk-win__bar { height: 38px; padding-left: 14px; }
.dk[data-layout="dock"] .dk-win__shield { inset: 38px 0 0; }
.dk[data-layout="dock"] .dk-win__ic { display: none; }
.dk[data-layout="dock"] .dk-win__btns { order: -1; height: auto; gap: 8px; align-items: center; }
.dk[data-layout="dock"] .dk-win__btns button { width: 13px; height: 13px; padding: 0; border-radius: 50%; color: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.dk[data-layout="dock"] .dk-win__btns button[data-act="close"] { order: 0; background: #e5574b; }
.dk[data-layout="dock"] .dk-win__btns button[data-act="min"] { order: 1; background: #f0b43c; }
.dk[data-layout="dock"] .dk-win__btns button[data-act="max"] { order: 2; background: #6cc04a; }
.dk[data-layout="dock"] .dk-win__btns button:hover, .dk[data-layout="dock"] .dk-win__btns button[data-act="close"]:hover { filter: brightness(1.08); color: rgba(0, 0, 0, .6); }
.dk[data-layout="dock"] .dk-win__btns svg { width: 9px; height: 9px; stroke-width: 2.2; opacity: 0; }
.dk[data-layout="dock"] .dk-win__bar:hover .dk-win__btns svg { opacity: 1; }
.dk[data-layout="dock"] .dk-win:not(.is-active) .dk-win__btns button { background: var(--line-2); box-shadow: none; }
.dk[data-layout="dock"] .dk-win__title { text-align: center; padding-right: 70px; font-weight: 600; }

/* flyouts sit under the menu bar or above the dock */
.dk[data-layout="dock"] .dk-cal { top: calc(var(--top) + 6px); bottom: auto; right: 8px; }
.dk[data-layout="dock"] .dk-toast { top: calc(var(--top) + 10px); bottom: auto; }
.dk[data-layout="dock"] .dk-start { bottom: calc(var(--bar) + 4px); }
.dk[data-layout="dock"] .dk-ctx { border-radius: 8px; }
@media (max-width: 700px) {
  .dk[data-layout="dock"] { --bar: 70px; }
  .dk-top__l button[data-tm="file"], .dk-top__l button[data-tm="view"], .dk-top__l button[data-tm="window"], .dk-top__l button[data-tm="help"] { display: none; }
  .dk-dock { bottom: 6px; }
  .dk-dock__in { gap: 2px; padding: 5px 6px; border-radius: 16px; max-width: calc(100vw - 12px); }
  .dk-dock .dk-tb { width: 44px; height: 44px; }
  .dk-dock .dk-tb > svg, .dk-dock .dk-tb > .dk-tb__ic { width: 36px; height: 36px; }
  .dk-dock .dk-tb--start > svg { width: 26px; height: 26px; }
  .dk-top .dk-clock span { display: none; }
}

/* dock layout, part 2: the things that make it feel like a Mac (all our own versions) */
.dk[data-layout="dock"] { --tile: linear-gradient(#ffffff, #e2e9e0); --tile-line: rgba(255, 255, 255, .5); }
.dk[data-layout="dock"][data-theme="dark"] { --tile: linear-gradient(#414b45, #262d29); --tile-line: rgba(255, 255, 255, .14); }
/* app icons sit on rounded tiles */
.dk-dock .dk-tb__ic, .dk-tile__ic { box-sizing: border-box; display: grid; place-items: center; border-radius: 23%; background: var(--tile); box-shadow: 0 2px 6px rgba(0, 0, 0, .28), inset 0 0 0 .5px var(--tile-line); }
.dk-dock .dk-tb__ic { padding: 7px; }
.dk-dock .dk-tb__ic svg, .dk-tile__ic svg { width: 100%; height: 100%; }
.dk-tb__ic--grid { display: grid !important; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: stretch !important; gap: 3px; padding: 9px !important; background: linear-gradient(#2c3d33, #121a15) !important; }
.dk-tb__ic--grid i { border-radius: 30%; background: #8fd14f; }
.dk-tb__ic--grid i:nth-child(3n+2) { background: #63d6c6; }
.dk-tb__ic--grid i:nth-child(3n) { background: #f0b43c; }
.dk-tb__ic--grid i:nth-child(5) { background: #ff7a5c; }
.dk-dock .dk-tb--start { background: none; }
@keyframes dk-bounce { 0%, 40%, 80%, 100% { transform: none; } 20% { transform: translateY(-20px); } 60% { transform: translateY(-9px); } }
.dk-dock .dk-tb.is-bounce .dk-tb__ic { animation: dk-bounce .85s cubic-bezier(.3, 0, .4, 1); }

/* windows: unified title bar and toolbar, rounder corners, deeper shadow */
.dk[data-layout="dock"] .dk-win { border-radius: 12px; border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .4); }
.dk[data-layout="dock"][data-theme="light"] .dk-win { border-color: rgba(0, 0, 0, .12); box-shadow: 0 30px 80px rgba(20, 40, 25, .28), 0 0 0 .5px rgba(0, 0, 0, .1); }
.dk[data-layout="dock"] .dk-win.is-max { border-radius: 0; }
.dk[data-layout="dock"] .dk-win__bar { border-bottom: 0; }
.dk[data-layout="dock"] .dk-tools, .dk[data-layout="dock"] .dk-menurow { background: var(--solid-2); }
.dk[data-layout="dock"] .dk-fx__side { background: var(--solid-2); border-right-color: var(--line); }
.dk[data-layout="dock"] .dk-fx__side button[aria-current="true"] { box-shadow: none; background: var(--press); }
.dk[data-layout="dock"] .dk-menu button:hover, .dk[data-layout="dock"] .dk-menu button:focus-visible { background: var(--accent); color: #fff; }
.dk[data-layout="dock"] .dk-menu { padding: 5px; border-radius: 9px; }
.dk[data-layout="dock"] .dk-menu button { padding: 4px 12px; border-radius: 4px; }

/* desktop icons: a soft square behind the picture and a coloured pill behind the name */
.dk[data-layout="dock"] .dk-ic:hover, .dk[data-layout="dock"] .dk-ic.is-sel { background: none; border-color: transparent; }
.dk[data-layout="dock"] .dk-ic.is-sel .dk-ic__img { background: rgba(255, 255, 255, .16); border-radius: 7px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.dk[data-layout="dock"] .dk-ic.is-sel .dk-ic__name { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #17743f; text-shadow: none; }

/* lock screen: date and clock at the top, you at the bottom */
.dk[data-layout="dock"] .dk-lock { justify-content: flex-start; padding-top: 8vh; }
.dk[data-layout="dock"] .dk-lock__time { display: flex; flex-direction: column-reverse; }
.dk[data-layout="dock"] .dk-lock__time b { font-weight: 500; font-size: clamp(76px, 13vw, 132px); }
.dk[data-layout="dock"] .dk-lock__time span { font-size: 20px; font-weight: 500; }
.dk[data-layout="dock"] .dk-lock__hint { display: none; }
.dk[data-layout="dock"] .dk-lock__sign, .dk[data-layout="dock"] .dk-lock.is-sign .dk-lock__sign { display: block; position: absolute; left: 0; right: 0; bottom: 7vh; animation: none; }
.dk[data-layout="dock"] .dk-lock.is-sign .dk-lock__time { display: flex; }
.dk[data-layout="dock"] .dk-user__pic--big { width: 72px; height: 72px; font-size: 32px; }
.dk[data-layout="dock"] .dk-lock__sign p { font-size: 17px; font-weight: 600; margin: 10px 0 12px; }
.dk[data-layout="dock"] .dk-signin { border-radius: 20px; padding: 7px 26px; backdrop-filter: blur(10px); }

/* full-screen app grid */
.dk-pad { position: absolute; inset: 0; z-index: 58; display: flex; flex-direction: column; align-items: center; padding: 56px 24px 110px; overflow: auto; background: rgba(8, 14, 10, .38); backdrop-filter: blur(34px) saturate(1.3); -webkit-backdrop-filter: blur(34px) saturate(1.3); animation: dk-pad-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes dk-pad-in { from { opacity: 0; transform: scale(1.06); } }
.dk-pad input { width: min(260px, 80vw); height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12); color: #fff; text-align: center; outline: none; }
.dk-pad input::placeholder { color: rgba(255, 255, 255, .6); }
.dk-pad input:focus { text-align: left; border-color: rgba(255, 255, 255, .45); }
.dk-pad__body { width: min(980px, 100%); margin-top: 34px; }
.dk-pad h2 { color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; margin: 34px 0 12px 14px; }
.dk-pad__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 8px; }
.dk-tile { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.dk-tile:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); }
.dk-tile__ic { width: 78px; height: 78px; padding: 12px; transition: transform .15s; }
.dk-tile:hover .dk-tile__ic { transform: scale(1.06); }
.dk-tile:active .dk-tile__ic { transform: scale(.95); filter: brightness(.85); }
.dk-tile__name { max-width: 110px; line-height: 1.25; text-align: center; }
.dk-pad__grid--demos .dk-tile__ic { padding: 0; overflow: hidden; }
.dk-pad__grid--demos .dk-thumb > img { height: 100%; border: 0; border-radius: 0; }
.dk-tile .dk-thumb__badge { display: none; }
.dk-pad__none { color: rgba(255, 255, 255, .75); text-align: center; }

/* centred search bar */
.dk-spot { position: absolute; z-index: 59; top: 18%; left: 50%; width: min(640px, calc(100vw - 24px)); transform: translateX(-50%); border-radius: 14px; overflow: hidden; background: var(--glass-2); backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: dk-pop .14s ease-out; }
.dk-spot__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 56px; }
.dk-spot__bar svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.dk-spot__bar input { flex: 1; border: 0; background: none; outline: none; font-size: 22px; }
.dk-spot__bar input::placeholder { color: var(--ink-3); }
.dk-spot.has-res .dk-spot__res { border-top: 1px solid var(--line); padding: 6px; }
.dk-spot__res .dk-row { width: 100%; }
.dk-spot__res .dk-row.is-sel { background: var(--accent); color: #fff; }
.dk-spot__res .dk-row.is-sel small { color: rgba(255, 255, 255, .8); }
.dk-spot__res .dk-pad__none { color: var(--ink-3); padding: 10px; }
@media (max-width: 700px) {
  .dk-pad__grid { grid-template-columns: repeat(4, 1fr); gap: 16px 4px; }
  .dk-tile__ic { width: 58px; height: 58px; padding: 9px; }
  .dk-tile { font-size: 11.5px; }
  .dk-spot { top: calc(var(--top) + 10px); }
}

/* lock screen: pick the taskbar or dock layout before signing in */
.dk-lock__layout { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .14); }
.dk-lock__layout button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px 6px; border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, .75); font-size: 12px; }
.dk-lock__layout button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dk-lock__layout button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
.dk-lock__layout svg { width: 32px; height: 22px; stroke-width: 1.5; }
.dk-lock__layout svg rect:last-child:not(:first-child) { fill: currentColor; stroke: none; }
.dk-lock.is-gone .dk-lock__layout { visibility: hidden; }
@media (max-width: 700px) { .dk-lock__layout { right: 50%; transform: translateX(50%); bottom: 14px; } .dk[data-layout="dock"] .dk-lock__sign { bottom: calc(7vh + 64px); } .dk-lock__hint { bottom: 92px; } }

/* ---------- phones: windows always fill the screen ---------- */
@media (max-width: 700px) {
  .dk { --bar: 56px; }
  .dk-search { display: none; }
  .dk-tray .dk-clock span, .dk-peek { display: none; }
  .dk-tray { gap: 0; }
  .dk-ic { width: 84px; }
  .dk-win { border-radius: 0; border: 0; }
  .dk-rs { display: none; }
  .dk-fx { grid-template-columns: 1fr; }
  .dk-fx__side { display: none; }
  .dk-pins { grid-template-columns: repeat(4, 1fr); }
  .dk-rows { grid-template-columns: 1fr; }
  .dk-win__btns button[data-act="max"] { display: none; }
  .dk-bar { justify-content: flex-start; padding-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk *, .dk *::before, .dk *::after { animation: none !important; transition: none !important; }
}
