/* ---------- Try it (Nov 2026): the real Alma, in the shape of the device you're on ----------
   Built from the app's own measurements (app.css, Tokyo Night default theme): sidebar 13141c, page 1a1b26, tonal fill
   292e42, text c0caf5 / a9b1d6 / 565f89, Bricolage; "Søg eller tilføj" sheet with a round + on each cover and the
   in-cover "Tilføj som" menu; countdown widgets; the phone's floating tab bar. No browser chrome: Alma runs in any
   browser. Drawn by try27.js. */
.t27 { position: relative; --warm-run: linear-gradient(120deg, #e8590c, #f17a22, #f59f3a, #fcc96b, #f59f3a, #f17a22, #e8590c);
  --spring: cubic-bezier(.3, 1.45, .45, 1); --ease: cubic-bezier(.22, .9, .28, 1); padding: 130px 0 120px; overflow: clip; }
.t27 .h-wrap { display: block; }
.t27 .kick { color: #c2560a; }
.t27 .h2 { font-size: clamp(44px, 5.6vw, 88px); }
.t27-head { text-align: center; max-width: 980px; margin: 0 auto; }
.t27-head .h2 { margin-left: auto; margin-right: auto; }
.t27-head .h-lead { margin: 0 auto; max-width: 700px; }

/* the three slots + device switch */
.t27-bar { position: relative; display: flex; justify-content: center; align-items: center; margin: 46px auto 30px; max-width: 1200px; min-height: 64px; }
.t27-slots { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; position: relative; }
.t27-slots::before { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 2px; margin-top: -1px; background: #ddd6c8; border-radius: 2px; }
.t27-slots::after { content: ""; position: absolute; left: 30px; top: 50%; height: 2px; margin-top: -1px; width: calc((100% - 60px) * var(--fill, 0)); background: linear-gradient(90deg, #e8590c, #f59f3a); border-radius: 2px; transition: width .8s var(--ease); }
.t27-slots li { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #e2dccf, 0 10px 24px -14px rgb(60 40 10 / .45); display: grid; place-items: center; transition: transform .5s var(--spring), box-shadow .4s; }
.t27-slots .zn { font: 800 22px/1 var(--font); font-stretch: 80%; color: #b5ae9f; transition: opacity .3s; }
.t27-slots .cv { position: absolute; inset: 4px; border-radius: 50%; background: center/cover #ddd; opacity: 0; transform: scale(.4) rotate(-12deg); transition: opacity .35s, transform .7s var(--spring); }
.t27-slots li.on { box-shadow: 0 0 0 2.5px #f17a22, 0 14px 30px -12px rgb(232 89 12 / .55); }
.t27-slots li.on .zn { opacity: 0; }
.t27-slots li.on .cv { opacity: 1; transform: none; }
.t27-slots li.on::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: #e8590c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; box-shadow: 0 0 0 3px var(--paper); animation: t27pop .5s var(--spring); }
.t27-slots li.next { transform: scale(1.08); box-shadow: 0 0 0 2px #f5c79a, 0 10px 24px -14px rgb(60 40 10 / .45); }
.t27-slots li.ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #f17a22; animation: t27ring .9s var(--ease) forwards; }
@keyframes t27ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes t27pop { from { transform: scale(0); } }
.t27-mode { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; padding: 4px; border-radius: 999px; background: #e7e1d5; }
.t27-mode button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: 700 14px var(--font); color: #6d6a62; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.t27-mode button svg { width: 16px; height: 16px; }
.t27-mode button[aria-pressed="true"] { background: #fff; color: var(--paper-text); box-shadow: 0 4px 12px -6px rgb(60 40 10 / .4); }

/* the stage */
.t27-stage { position: relative; display: flex; justify-content: center; }
.t27-stage::before { content: ""; position: absolute; left: 50%; top: 8%; width: min(1100px, 90%); height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(241 122 34 / .16), transparent); filter: blur(30px); pointer-events: none; }
.t27-win { position: relative; width: min(1200px, 100%); border-radius: 14px; overflow: hidden; background: var(--bg);
  box-shadow: 0 0 0 1px rgb(20 21 30 / .9), 0 0 0 7px rgb(20 21 30 / .06), 0 60px 120px -40px rgb(40 25 5 / .6), 0 30px 60px -30px rgb(0 0 0 / .45);
  transition: width .7s var(--ease), border-radius .7s var(--ease); }


/* the app's three looks (lib/theme.mjs + app.css, measured): Dark is Alma's default */
.t27-app, .t27-app[data-theme="dark"] { --bg: #1a1b26; --side: #13141c; --sel: #292e42; --sheet: #1f2131; --chip: #424860; --t1: #c0caf5; --t2: #a9b1d6; --t3: #565f89; --hi: #c5cef6; --ph: #20233a; --line: rgb(255 255 255 / .06); --shade: #000;
  --c-movie: #f7768e; --c-series: #ad8ee6; --c-game: #7aa2f7; --c-book: #9ece6a; --c-audiobook: #e0af68; --c-music: #449dab; --c-podcast: #eb927b; --tabs: rgb(30 32 46 / .9); --toast: #1d1f2d; --kbd: #343a55; --rail: #2a2e45; --bar: #3a405e; }
.t27-app[data-theme="dim"] { --bg: #2a2e42; --side: #24283a; --sel: #3a4060; --sheet: #2f3449; --chip: #4a5175; --t1: #dde3ff; --t2: #bcc4e6; --t3: #8088ad; --hi: #e0e5ff; --ph: #353a55; --line: rgb(255 255 255 / .07); --shade: #0d0f18;
  --tabs: rgb(46 50 72 / .9); --toast: #343953; --kbd: #4a5075; --rail: #3c4262; --bar: #4c5378; }
.t27-app[data-theme="light"] { --bg: #f4f1ea; --side: #ece7dd; --sel: #e2dccf; --sheet: #f8f6f1; --chip: #d6cfbf; --t1: #16171f; --t2: #3b3d4a; --t3: #7d7f8e; --hi: #292a31; --ph: #e6e0d3; --line: rgb(0 0 0 / .06); --shade: rgb(60 40 10 / .45);
  --c-movie: #d4415d; --c-series: #7d55c4; --c-game: #3c66d2; --c-book: #5a8c2b; --c-audiobook: #b07a22; --c-music: #287c89; --c-podcast: #cf6446; --tabs: rgb(250 248 243 / .9); --toast: #ffffff; --kbd: #d6cfbf; --rail: #e2dccf; --bar: #ddd5c6; }

/* ---------- the app (desktop) ---------- */
.t27-app { position: relative; height: 690px; display: grid; grid-template-columns: 250px 1fr; background: var(--bg); color: var(--t2); font: 400 14px/1.35 var(--font); text-align: left; overflow: hidden; }
.t27-app button { font-family: var(--font); color: inherit; }
.t27-app svg { flex: none; }
.sd { background: var(--side); padding: 14px 12px 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sd-top { display: flex; justify-content: space-between; padding: 0 6px; color: var(--t3); }
.sd-top svg { width: 19px; height: 19px; }
.sd-brand { width: 112px; height: 41px; margin: 20px 8px 10px; background: var(--hi); -webkit-mask: url('assets/logo-wordmark.svg') left center / contain no-repeat; mask: url('assets/logo-wordmark.svg') left center / contain no-repeat; }
.sd-month { display: flex; align-items: center; gap: 11px; padding: 5px 12px 5px 4px; color: var(--t3); font-size: 13px; line-height: 1.25; }
.sd-month b { color: var(--t1); font-weight: 800; } .sd-month em { display: block; font-style: normal; font-weight: 700; color: #f59f3a; font-size: 12.5px; }
.ring { --p: 0; width: 32px; height: 32px; border-radius: 50%; flex: none; background: conic-gradient(#f59f3a calc(var(--p) * 1%), var(--rail) 0); -webkit-mask: radial-gradient(circle, transparent 11px, #000 11.5px); mask: radial-gradient(circle, transparent 11px, #000 11.5px); }
.sd-add { display: flex; align-items: center; gap: 13px; height: 54px; margin: 14px 0 18px; padding: 9px 12px 9px 8px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--sel) 70%, transparent); color: var(--t1); font: 800 17px var(--font); letter-spacing: -.02em; cursor: pointer; text-align: left; }
.sd-add .ai { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--warm-run); background-size: 300% 100%; box-shadow: 0 6px 16px -6px rgb(183 70 9 / .76); animation: t27drift 8s ease-in-out infinite; }
.sd-add .ai svg { width: 18px; height: 18px; }
.sd-add kbd { margin-left: auto; font: 600 12px var(--font); color: var(--t3); border: 1px solid var(--kbd); border-radius: 6px; padding: 1px 7px; }
@keyframes t27drift { 50% { background-position: 100% 0; } }
.sd h5 { margin: 6px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.sd-nav { display: flex; align-items: center; gap: 11px; width: 100%; height: 35px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--t2); font: 800 15.5px var(--font); letter-spacing: -.015em; cursor: pointer; text-align: left; transition: background .2s; }
.sd-nav:hover { background: color-mix(in srgb, var(--sel) 50%, transparent); }
.sd-nav.on { background: var(--sel); color: var(--t1); }
.sd-nav svg { width: 19px; height: 19px; color: var(--c, var(--t2)); }
.sd-nav .zn { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--t3); font-variant-numeric: tabular-nums; transition: color .3s; }
.sd-nav.bump { animation: t27bump .7s var(--spring); }
.sd-nav.bump .zn { color: #f59f3a; font-weight: 800; }
@keyframes t27bump { 30% { background: rgb(241 122 34 / .18); transform: translateX(5px); } }
.sd-cats { margin-top: 18px; }
.sd-cats .sd-nav { height: 33px; cursor: default; }

.mn { position: relative; min-width: 0; overflow: hidden; }
.pg { position: absolute; inset: 0; overflow: hidden; padding: 26px 34px 30px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease), visibility 0s .35s; }
.pg.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s var(--ease); }
.pg-h { display: flex; align-items: center; gap: 14px; }
.pg-h h3 { margin: 0; color: var(--t1); font-size: 46px; line-height: 1; font-weight: 800; font-stretch: 75%; letter-spacing: -.035em; }
.pg-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: color-mix(in srgb, var(--sel) 80%, transparent); color: var(--t1); font-weight: 700; font-size: 14px; }
.pg-pill svg { width: 16px; height: 16px; }
.pg-tabs { display: flex; gap: 8px; margin: 20px 0 22px; flex-wrap: wrap; }
.pg-tabs span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 8px; background: color-mix(in srgb, var(--sel) 55%, transparent); color: var(--t2); font-weight: 700; font-size: 14px; }
.pg-tabs span.on { background: var(--sel); color: var(--t1); }
.pg-tabs span svg { width: 15px; height: 15px; } .pg-tabs span i { font-style: normal; color: var(--t3); font-weight: 600; font-size: 12.5px; }
.pg-sec { margin: 0 0 12px; color: var(--t1); font-size: 26px; font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; }
.pg-empty { display: grid; place-items: center; text-align: center; height: 380px; color: var(--t3); font-size: 15px; }
.pg-empty b { display: block; color: var(--t1); font-size: 24px; font-weight: 800; font-stretch: 80%; margin-bottom: 6px; }

/* the Add sheet ("Søg eller tilføj") */
.pg.zadd { padding: 18px 18px 0; background: color-mix(in srgb, var(--bg) 70%, #000); }
.t27-app[data-theme="light"] .pg.zadd { background: color-mix(in srgb, var(--bg) 88%, #6b5a3a); }
.zsheet { position: relative; height: 100%; border-radius: 14px 14px 0 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -20px var(--shade); padding: 34px 40px 0; overflow: hidden; display: flex; flex-direction: column; }
.zsheet .x { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--sel); color: var(--t2); display: grid; place-items: center; cursor: pointer; }
.zsheet .x svg { width: 16px; height: 16px; }
.zsheet h3 { margin: 0; color: var(--t1); font-size: 50px; line-height: 1; font-weight: 800; font-stretch: 75%; letter-spacing: -.035em; }
.zsheet .sub { margin: 10px 0 20px; color: var(--t3); font-size: 15px; }
.srch { display: flex !important; align-items: center; gap: 14px; height: 54px; width: 100%; max-width: none; margin: 0; padding: 0 20px; border-radius: 12px; background: var(--sel); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); transition: box-shadow .3s; flex: none; }
.srch:focus-within { box-shadow: 0 0 0 2px rgb(241 122 34 / .55), 0 18px 40px -18px rgb(0 0 0 / .6); }
.srch.pulse { animation: t27glow 1.8s ease-in-out infinite; }
@keyframes t27glow { 50% { box-shadow: 0 0 0 2px rgb(241 122 34 / .75), 0 0 0 8px rgb(241 122 34 / .14); } }
.srch > svg { width: 20px; height: 20px; color: var(--t2); }
.srch input { flex: 1; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: none; box-shadow: none !important; -webkit-appearance: none; appearance: none; color: var(--t1); font: 500 18px var(--font); letter-spacing: -.01em; }
.srch input::placeholder { color: var(--t3); }
.srch input::-webkit-search-cancel-button { display: none; }
.srch .clr { width: 26px; height: 26px; border: 0; background: none; color: var(--t1); display: none; place-items: center; cursor: pointer; padding: 0; }
.srch .clr svg { width: 16px; height: 16px; } .srch.has .clr { display: grid; }
.zkinds { display: flex; gap: 8px; margin: 14px 0 18px; overflow-x: auto; scrollbar-width: none; flex: none; }
.zkinds::-webkit-scrollbar { display: none; }
.zkinds button { display: inline-flex; align-items: center; gap: 7px; height: 33px; padding: 0 14px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--chip) 55%, transparent); color: var(--t1); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.zkinds button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.zkinds button.on { background: var(--chip); }
.zres { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -40px; padding: 0 40px 30px; scrollbar-width: thin; scrollbar-color: var(--chip) transparent; }
.res-empty { text-align: center; padding: 40px 0 0; }
.res-empty b { display: block; color: var(--t1); font-size: 24px; font-weight: 800; font-stretch: 80%; letter-spacing: -.01em; }
.res-empty p { margin: 6px 0 18px; color: var(--t3); font-size: 14.5px; }
.res-empty .zsug { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.res-empty .zsug button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sel); color: var(--t1); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.res-empty .zsug button:hover { background: #e8590c; color: #fff; }
.zres .msg { text-align: center; padding: 40px 0; color: var(--t3); font-size: 14.5px; }
.zres .dots { display: inline-flex; gap: 5px; } .zres .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); animation: t27dot 1s infinite; } .zres .dots i:nth-child(2) { animation-delay: .15s; } .zres .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes t27dot { 50% { opacity: .25; transform: translateY(-3px); } }
.rg { margin-bottom: 22px; animation: t27in .35s var(--ease) both; }
@keyframes t27in { from { opacity: 0; transform: translateY(6px); } }
.rg header { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; color: var(--t1); }
.rg header > svg { width: 21px; height: 21px; color: var(--c); }
.rg header h4 { margin: 0; font-size: 15px; font-weight: 800; }
.rg header .ct { font-size: 13px; color: var(--t3); }
.rg header .lib { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #e8590c, #f59f3a); color: #fff; }
.rg header .lib svg { width: 17px; height: 17px; }
.mine-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 5px 6px; border-radius: 10px; animation: t27in .4s var(--ease) both; }
.mine-row i { width: 40px; height: 60px; border-radius: 5px; background: center/cover var(--ph); box-shadow: 0 8px 14px -8px #000; }
.mine-row i.sq { height: 40px; }
.mine-row b { display: block; color: var(--t1); font-size: 15px; font-weight: 700; } .mine-row b em { font-style: normal; color: #f59f3a; }
.mine-row small { display: flex; align-items: center; gap: 6px; color: var(--t3); font-size: 13px; } .mine-row small svg { width: 14px; height: 14px; color: var(--c); }
.covers { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.cov { min-width: 0; }
.cov .po { position: relative; aspect-ratio: 2/3; border-radius: 8px; background: center/cover var(--sel); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .7); overflow: hidden; }
.cov .po.sq { background-size: contain; background-repeat: no-repeat; background-color: var(--ph); }
.cov .zadd { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(20 21 30 / .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 14px rgb(0 0 0 / .45); cursor: pointer; transition: background .2s, transform .2s var(--spring); padding: 0; }
.cov .zadd:hover { background: #e8590c; transform: scale(1.08); }
.cov .zadd:active { transform: scale(.92); }
.cov .zadd svg { width: 17px; height: 17px; }
.cov .zadd.got { background: #3d6b16; cursor: default; } .cov .zadd.got.want { background: var(--sel); color: #f59f3a; } .cov .zadd.got.soon { background: #e8590c; }
.cov b { margin-top: 8px; color: var(--t1); font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cov small { display: block; margin-top: 2px; color: var(--t3); font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the in-cover "Tilføj som" menu (app: .r-pick) */
.zpick { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 9px 9px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); animation: t27fade .2s ease; }
@keyframes t27fade { from { opacity: 0; } }
.zpick .zph { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); margin-bottom: 2px; }
.zpick button { height: 32px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--t1) 10%, transparent); color: var(--t1); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; padding: 0 4px; }
.zpick button:hover { background: color-mix(in srgb, var(--t1) 20%, transparent); }
.zpick button.main { background: linear-gradient(90deg, #e8590c, #f59f3a); color: #fff; }
.zpick .px { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--t1) 10%, transparent); color: var(--t2); }
.zpick .px svg { width: 12px; height: 12px; }

/* Upcoming: countdown widgets (app: .widget.large) */
.wgs { display: flex; gap: 18px; flex-wrap: wrap; }
.wg { position: relative; width: 300px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: center/cover #0e0e14; color: #fff; animation: t27land .6s var(--spring) both; }
.wg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgb(0 0 0 / .55), transparent 40%), linear-gradient(0deg, rgb(0 0 0 / .65), transparent 45%); }
.wg > * { position: absolute; }
.wg .ty { left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgb(14 14 20 / .55); color: var(--c); backdrop-filter: blur(6px); }
.wg .ty svg { width: 17px; height: 17px; }
.wg .hd { right: 16px; top: 16px; left: 56px; text-align: right; }
.wg .hd b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 2px 14px rgb(0 0 0 / .45); }
.wg .hd small { font-size: 13.5px; color: rgb(255 255 255 / .8); }
.wg .ct { left: 16px; bottom: 12px; display: flex; align-items: baseline; gap: 6px; }
.wg .ct b { font-size: 54px; line-height: .9; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 2px 14px rgb(0 0 0 / .45); font-variant-numeric: tabular-nums; }
.wg .ct span { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
@keyframes t27land { from { opacity: 0; transform: scale(.9); } }
/* Library */
.zhero { position: relative; width: min(540px, 100%); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: center/cover #222; margin: 18px 0 20px; animation: t27land .6s var(--spring) both; }
.zhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .7), transparent 50%); }
.zhero div { position: absolute; left: 20px; bottom: 16px; color: #fff; }
.zhero small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; } .zhero b { display: block; font-size: 18px; font-weight: 800; }
.lib-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lib-grid .cov .po .zst { position: absolute; left: 7px; top: 7px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgb(14 14 20 / .6); color: var(--c); backdrop-filter: blur(6px); }
.lib-grid .cov .po .zst svg { width: 15px; height: 15px; }
.lib-grid .cov { animation: t27land .6s var(--spring) both; }
/* My series */
.sers { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; }
.serc { border-radius: 14px; background: var(--sel); padding: 14px; animation: t27land .6s var(--spring) both; }
.serc .zfan { position: relative; height: 112px; }
.serc .zfan i { position: absolute; bottom: 0; width: 72px; height: 108px; border-radius: 7px; background: center/cover #333; box-shadow: 0 10px 18px -8px #000; }
.serc .zfan i.sq { height: 72px; width: 72px; }
.serc .zfan i:nth-child(1) { left: 0; z-index: 3; } .serc .zfan i:nth-child(2) { left: 30px; transform: rotate(5deg); z-index: 2; opacity: .85; } .serc .zfan i:nth-child(3) { left: 58px; transform: rotate(10deg); opacity: .65; }
.serc b { display: block; margin-top: 12px; color: var(--t1); font-size: 16px; font-weight: 800; }
.serc small { display: block; color: var(--t3); font-size: 13px; }
.serc .zbar { height: 4px; border-radius: 4px; background: var(--bar); margin: 10px 0 8px; overflow: hidden; } .serc .zbar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #e8590c, #f59f3a); }
.serc .znx { font-size: 13px; color: var(--t2); }

/* a cover in flight */
.t27-fly { position: fixed; z-index: 9999; border-radius: 8px; background: center/cover #333; pointer-events: none; box-shadow: 0 24px 50px -12px rgb(0 0 0 / .6); will-change: transform; }
/* the app's toast */
.tst { position: absolute; left: 50%; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 14px; background: var(--toast); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -16px var(--shade);
  transform: translate(-50%, 30px); opacity: 0; transition: transform .5s var(--spring), opacity .3s; pointer-events: none; max-width: 92%; }
.tst.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tst .zic { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #e8590c, #f59f3a); color: #fff; }
.tst .zic svg { width: 20px; height: 20px; }
.tst .tx { min-width: 0; text-align: left; } .tst .tx small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f59f3a; }
.tst .tx b { display: block; color: var(--t1); font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst .zgo { border: 0; background: var(--sel); color: var(--t1); font-weight: 700; font-size: 13.5px; height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }

/* the demo's finger: a soft touch point (reads the same for a mouse and a finger) */
.ztap { position: absolute; z-index: 30; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgb(255 255 255 / .92) 0 8px, rgb(255 255 255 / .25) 9px 19px, transparent 20px); filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35));
  transition: transform .85s var(--ease), opacity .3s; }
.ztap.on { opacity: 1; }
.ztap.down::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: t27ripple .6s ease-out forwards; }
@keyframes t27ripple { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.dtag { position: absolute; z-index: 21; left: 50%; top: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgb(14 14 20 / .7); backdrop-filter: blur(8px); color: var(--t2); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; }
.dtag.on { opacity: 1; }

/* "Your Alma is ready" */
.zdone { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; text-align: center; background: rgb(15 16 24 / .55); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); opacity: 0; pointer-events: none; transition: opacity .5s; overflow: hidden; }
.zdone.show { opacity: 1; pointer-events: auto; }
.zdone .zin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; transform: translateY(20px) scale(.97); transition: transform .9s var(--spring); }
.zdone.show .zin { transform: none; }
.fan3 { position: relative; width: 300px; height: 190px; margin-bottom: 10px; }
.fan3 i { position: absolute; left: 50%; bottom: 0; width: 116px; height: 174px; margin-left: -58px; border-radius: 12px; background: center/cover #333; box-shadow: 0 24px 40px -14px #000, 0 0 0 1px rgb(255 255 255 / .08); transform-origin: 50% 120%; transition: transform 1s var(--spring) .15s; }
.fan3 i.sq { width: 150px; height: 150px; margin-left: -75px; bottom: 12px; }
.zdone.show .fan3 i:nth-child(1) { transform: rotate(-16deg) translateX(-30px); } .zdone.show .fan3 i:nth-child(3) { transform: rotate(16deg) translateX(30px); } .zdone.show .fan3 i:nth-child(2) { transform: translateY(-14px); z-index: 2; }
.zdone h3 { margin: 0; color: #fff; font-size: 52px; line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -.015em; }
.zdone p { margin: 0; color: var(--t2); font-size: 16px; }
.zdone .acts { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.zdone .zgo { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 24px; border-radius: 999px; background: #fff; color: #14151e; font: 800 16.5px var(--font); text-decoration: none; animation: t27cta 2.4s ease-in-out 1s infinite; }
.zdone .zgo .ar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(241 122 34 / .16); color: #e8590c; transition: background .25s, color .25s, transform .25s; }
.zdone .zgo:hover .ar { background: #e8590c; color: #fff; transform: translateX(3px); }
.zdone .zgo svg, .t27-save .ar svg { width: 18px; height: 18px; }
@keyframes t27cta { 50% { box-shadow: 0 0 40px 4px rgb(241 122 34 / .35); } }
.zdone .zghost { height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .08); color: var(--t1); font-weight: 700; font-size: 15.5px; cursor: pointer; }
.zpop { position: absolute; left: 50%; top: 32%; width: 24px; height: 24px; pointer-events: none; opacity: 0; }
.zdone.show .zpop { animation: t27burst 1.4s var(--ease) var(--dl) forwards; }
.zpop svg { width: 100%; height: 100%; }
@keyframes t27burst { 0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); } }

/* under the stage */
.t27-save { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.t27-save .hb { height: 58px; padding: 0 10px 0 26px; border-radius: 999px; gap: 14px; transition: opacity .4s, transform .4s var(--spring), filter .4s; }
.t27-save .hb .ar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .22); }
.t27-save.idle .hb { opacity: .45; filter: saturate(.3); transform: scale(.97); }
.t27-note { font-size: 14.5px; color: #8a877f; text-align: center; }

/* ---------- phone layout (the app's own phone layout) ---------- */
.tabs, .ringc { display: none; }
.t27.is-phone .t27-win { width: 390px; border-radius: 54px; padding: 12px; background: #0b0c12; box-shadow: 0 0 0 1.5px #2b2e40, inset 0 0 0 2px #000, 0 60px 120px -40px rgb(40 25 5 / .55), 0 30px 60px -30px rgb(0 0 0 / .45); }
.t27.is-phone .t27-app { display: block; height: 760px; border-radius: 42px; }
.t27.is-phone .t27-app::before { content: ""; position: absolute; left: 50%; top: 11px; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #000; z-index: 60; }
.t27.is-phone .sd { display: none; }
.t27.is-phone .mn { position: absolute; inset: 0; }
.t27.is-phone .pg { padding: 58px 16px 110px; }
.t27.is-phone .pg-h h3 { font-size: 36px; }
.t27.is-phone .ringc { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--sel) 70%, transparent); color: var(--t1); font-weight: 800; }
.t27.is-phone .ringc .ring { width: 28px; height: 28px; -webkit-mask: radial-gradient(circle, transparent 9.5px, #000 10px); mask: radial-gradient(circle, transparent 9.5px, #000 10px); }
.t27.is-phone .pg-pill { display: none; }
.t27.is-phone .pg.zadd { padding: 0; background: var(--sheet); }
.t27.is-phone .zsheet { border-radius: 0; padding: 62px 16px 0; box-shadow: none; }
.t27.is-phone .zsheet .x { top: 54px; }
.t27.is-phone .zsheet h3 { font-size: 36px; }
.t27.is-phone .zsheet .sub { font-size: 14px; margin: 8px 0 14px; }
.t27.is-phone .srch { height: 50px; } .t27.is-phone .srch input { font-size: 17px; }
.t27.is-phone .zres { margin: 0 -16px; padding: 0 16px 120px; }
.t27.is-phone .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t27.is-phone .covers .cov:nth-child(n+4) { display: none; }
.t27.is-phone .cov b { font-size: 13.5px; }
.t27.is-phone .wg { width: 100%; aspect-ratio: 16/9; }
.t27.is-phone .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t27.is-phone .zhero { width: 100%; }
.t27.is-phone .sers { grid-template-columns: 1fr; }
.t27.is-phone .tabs { position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 64px; padding: 0 4px 9px; border-radius: 24px;
  background: var(--tabs); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -10px var(--shade); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--t2); font: 700 10.5px var(--font); cursor: pointer; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--t1); }
.tab .bd { position: absolute; top: -6px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e8590c; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--spring); }
.tab .bd.on { transform: scale(1); }
.tab.bump svg { animation: t27tab .6s var(--spring); color: #f59f3a; }
@keyframes t27tab { 35% { transform: translateY(-6px) scale(1.2); } }
.tab.zbig i { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #f17a22; box-shadow: 0 10px 22px -8px rgb(232 89 12 / .8); }
.tab.zbig i svg { width: 24px; height: 24px; }
.t27.is-phone .tst { bottom: 92px; padding: 9px 14px 9px 9px; } .t27.is-phone .tst .zic { width: 36px; height: 36px; } .t27.is-phone .tst .tx b { font-size: 14.5px; } .t27.is-phone .tst .zgo { display: none; }
.t27.is-phone .zdone h3 { font-size: 40px; } .t27.is-phone .fan3 { transform: scale(.8); margin-bottom: -10px; }
.t27.is-phone .dtag { top: auto; bottom: 90px; }
.t27.is-phone .pg-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 18px; padding: 0 16px; }
.t27.is-phone .pg-tabs span { flex: none; }

/* small screens: the page IS on a phone, so no phone frame around the phone */
@media (max-width: 900px) {
  .t27 { padding: 80px 0 80px; }
  .t27 .h-wrap { padding: 0 14px; }
  .t27-head { padding: 0 6px; }
  .t27-head .h-lead { font-size: 16.5px; }
  .t27-bar { margin: 26px auto 16px; min-height: 52px; }
  .t27-slots { gap: 18px; } .t27-slots li { width: 50px; height: 50px; } .t27-slots .zn { font-size: 19px; }
  .t27-mode { display: none; }
  .t27.is-phone .t27-win { width: 100%; max-width: 440px; border-radius: 30px; padding: 0; box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 40px 80px -30px rgb(40 25 5 / .55); }
  .t27.is-phone .t27-app { height: min(700px, calc(100svh - 110px)); min-height: 580px; border-radius: 30px; }
  .t27.is-phone .t27-app::before { display: none; }
  .t27.is-phone .pg { padding-top: 22px; } .t27.is-phone .zsheet { padding-top: 26px; } .t27.is-phone .zsheet .x { top: 18px; }
  .t27-stage::before { display: none; }
  .t27-save { margin-top: 26px; } .t27-save .hb { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .t27 *, .t27 *::before, .t27 *::after { animation: none !important; transition-duration: .01s !important; }
}

/* ---------- the section's ground: light paper, a fine dot grid that fades out, warm light behind the app ---------- */
.t27 { background: radial-gradient(1200px 700px at 50% 62%, rgb(252 201 107 / .28), transparent 70%), radial-gradient(900px 500px at 18% 30%, rgb(241 122 34 / .10), transparent 70%), radial-gradient(900px 500px at 85% 80%, rgb(232 89 12 / .08), transparent 70%), var(--paper); isolation: isolate; }
.t27::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgb(90 70 40 / .16) 1.1px, transparent 1.6px) 0 0 / 24px 24px;
  -webkit-mask: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent 80%); mask: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent 80%); }
.t27-stage::before { background: radial-gradient(closest-side, rgb(241 122 34 / .22), rgb(252 201 107 / .12) 55%, transparent); }
.t27-stage::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: min(1000px, 80%); height: 60px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(60 40 10 / .28), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }

/* ---------- the headline: "three" with a hand-drawn ring, and a handwritten count as you add ---------- */
.t27-three { position: relative; display: inline-block; white-space: nowrap; }
.t27-three b { display: inline-block; min-width: .56em; text-align: center; padding: 0; }
.t27-three b.flip { animation: t27flip .55s var(--spring); }
@keyframes t27flip { 0% { transform: translateY(-.35em) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.t27-three b { font-weight: inherit; background: linear-gradient(90deg, #e8590c, #f17a22, #f59f3a); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em .06em; }
.t27.seen .t27-go { transition: color .6s; }
.t27.full .t27-go { background: linear-gradient(90deg, #e8590c, #f59f3a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- the look switch (left of the slots), mirrors the device switch on the right ---------- */
.t27-theme { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; padding: 4px; border-radius: 999px; background: #e7e1d5; }
.t27-theme button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: 700 14px var(--font); color: #6d6a62; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.t27-theme button svg { width: 16px; height: 16px; }
.t27-theme button[aria-pressed="true"] { background: #fff; color: var(--paper-text); box-shadow: 0 4px 12px -6px rgb(60 40 10 / .4); }
.t27-app, .sd, .zsheet, .pg.zadd, .srch { transition: background-color .4s, color .4s; }

/* ---------- handwritten notes around the computer demo (wide screens only) ---------- */
.t27-notes { display: none; }
@media (min-width: 1280px) {
  .t27:not(.is-phone) .t27-notes { display: block; }
  .t27:not(.is-phone) .t27-win { width: min(1060px, calc(100% - 330px)); }
  .t27:not(.is-phone) .t27-bar { max-width: none; }
}
.t27-hn { position: absolute; z-index: 3; width: 156px; color: #c2560a; font: 700 25px/1.05 var(--hand); text-align: center; pointer-events: none; opacity: 0; transform: translateY(8px) rotate(var(--r, -3deg)); transition: opacity .6s, transform .8s var(--spring); }
.t27.seen .t27-hn { opacity: 1; transform: rotate(var(--r, -3deg)); }
.t27-hn b { font-weight: 700; display: block; }
.t27-hn svg { display: block; width: 92px; height: 62px; margin: 2px auto 0; }
.t27-hn svg path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1s ease .5s; }
.t27.seen .t27-hn svg path { stroke-dashoffset: 0; }
/* positions: the window is centred and ~1060px wide; notes sit in the margins beside it, arrows pointing at what they name */
.t27-hn.n1, .t27-hn.n4 { display: flex; flex-direction: column-reverse; top: -18px; }
.t27-hn.n1 { left: max(0px, calc(50% - 530px - 186px)); --r: -4deg; transition-delay: .2s; }
.t27-hn.n1 svg { margin: 0 0 2px 10px; transform: rotate(-12deg); }
.t27-hn.n4 { right: max(0px, calc(50% - 530px - 186px)); --r: 4deg; transition-delay: .35s; }
.t27-hn.n4 svg { margin: 0 0 2px 60px; transform: scaleX(-1) rotate(-12deg); }
.t27-hn.n3 { left: max(0px, calc(50% - 530px - 196px)); top: 210px; --r: 3deg; transition-delay: .8s; }
.t27-hn.n2 { right: max(0px, calc(50% - 530px - 196px)); top: 120px; --r: -3deg; transition-delay: .5s; }
.t27-hn.n2 svg { transform: scaleX(-1); }
.t27-hn.n5 { right: max(0px, calc(50% - 530px - 196px)); top: 330px; --r: 4deg; transition-delay: .65s; }
.t27.touched .t27-hn.n2, .t27.touched .t27-hn.n5 { opacity: 0; }
@media (max-width: 1439px) { .t27-hn { width: 150px; font-size: 22px; } }
@media (max-width: 900px) { .t27-theme { position: static; transform: none; margin: 0 auto 14px; } .t27-bar { flex-direction: column; } .t27-theme button span { display: none; } .t27-theme button { padding: 8px 12px; } }
