/* Learn the Harmony demo app: shell styles and shared app components (SHELL agent).
 * The app itself is always light mode (James 2026-12-02); the page bar around it follows the site tokens.
 *
 * Shared tokens (on .lth-app): --lth-accent --lth-accent-fill --lth-accent-soft --lth-ink --lth-label --lth-secondary
 * --lth-tertiary --lth-hairline --lth-separator --lth-bg --lth-grouped --lth-fill --lth-paper --lth-paper-ink
 * --lth-muted --lth-lyric --lth-soprano --lth-alto --lth-tenor --lth-bass --lth-instrument --lth-font --lth-serif
 * Shared components: .lth-header (page header: icon tile, serif title, subtitle), .lth-section-title, .lth-btn,
 * .lth-btn-primary, .lth-btn-plain, .lth-iconbtn, .lth-seg (segmented control), .lth-row (song row), .lth-card,
 * .lth-badge, .lth-chip, .lth-empty, .lth-vh (visually hidden), .lth-menu, .lth-popover, .lth-toast.
 */

/* ================================================================ page around the app */

.demo-app-page main { padding-bottom: 8px; }
.demo-app { max-width: 1960px; margin: 0 auto; padding: 10px 16px 0; }
.lth-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 1440px; margin: 0 auto; }
.demo-bar-start, .demo-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-sunken, #eeeeea); border: 1px solid var(--line, #ddd); }
.demo-toggle-btn { font: inherit; font-size: .95rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft, #555); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.demo-toggle-btn[aria-pressed="true"] { background: var(--bg-raised, #fff); color: var(--ink, #111); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.demo-toggle-btn:disabled { opacity: .45; cursor: not-allowed; }
.demo-badge { font-size: .85rem; font-weight: 600; color: #1f5244; background: #dcebe5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.demo-bar-btn { font: inherit; font-size: .92rem; font-weight: 600; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line, #ccc); background: var(--bg-raised, #fff); color: var(--ink, #111); cursor: pointer; }
.demo-bar-btn:hover { border-color: var(--ink-faint, #999); }
.demo-bar-primary { background: var(--accent, #2d6e5c); border-color: var(--accent, #2d6e5c); color: var(--accent-ink-on, #fff); }
.demo-bar-primary:hover { filter: brightness(1.06); border-color: var(--accent, #2d6e5c); }
.demo-toggle-btn:focus-visible, .demo-bar-btn:focus-visible { outline: 3px solid var(--accent, #2d6e5c); outline-offset: 2px; }
.demo-mac-note { max-width: 1440px; margin: 8px auto 0; font-size: .9rem; color: var(--ink-soft, #555); }
.demo-hint { max-width: 1440px; margin: 8px auto 10px; font-size: .95rem; color: var(--ink-soft, #555); }
.demo-stage { display: flex; justify-content: center; align-items: flex-start; min-height: 300px; }
.demo-nojs { max-width: 40rem; padding: 24px; text-align: center; color: var(--ink-soft, #555); }
@media (max-width: 520px) {
  .demo-app { padding: 8px 16px 0; }
  .demo-bar-btn { padding: 6px 10px; font-size: .88rem; }
  .demo-toggle-btn { padding: 5px 10px; font-size: .9rem; }
  .demo-hint { margin: 6px auto 8px; font-size: .9rem; }
}

.lth-fit { position: relative; flex: none; }
.lth-device { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ================================================================ app tokens (light only) */

.lth-app {
  --lth-accent: #2d6e5c;
  --lth-accent-fill: #2d6e5c;
  --lth-accent-soft: rgba(45, 110, 92, .12);
  --lth-accent-hover: rgba(45, 110, 92, .08);
  --lth-ink: #1a1a1a;
  --lth-label: rgba(0, 0, 0, .86);
  --lth-secondary: rgba(60, 60, 67, .62);
  --lth-tertiary: rgba(60, 60, 67, .32);
  --lth-hairline: rgba(0, 0, 0, .08);
  --lth-separator: rgba(60, 60, 67, .22);
  --lth-bg: #ffffff;
  --lth-grouped: #f2f2f7;
  --lth-fill: rgba(0, 0, 0, .035);
  --lth-paper: #fffefa;
  --lth-paper-ink: #1a1a1a;
  --lth-muted: #5a5a5a;
  --lth-lyric: #153cbd;
  --lth-soprano: #164dff; --lth-alto: #009c45; --lth-tenor: #e57200; --lth-bass: #ed174c;
  --lth-instrument: #826c9e;
  --lth-orange: #e8780c;
  --lth-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lth-serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-family: var(--lth-font);
  font-size: 13px;
  line-height: 1.3;
  color: var(--lth-label);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  letter-spacing: 0;
}
.lth-app *, .lth-app *::before, .lth-app *::after { box-sizing: border-box; }
.lth-app :where(button) { font: inherit; color: inherit; }
.lth-app :where(h1, h2, h3, h4, p) { margin: 0; }
.lth-app :focus-visible { outline: 3px solid rgba(45, 110, 92, .55); outline-offset: 1px; border-radius: 6px; }
.lth-icon { display: block; flex: none; }

/* ================================================================ Mac window */

.lth-mac { width: 1440px; height: 900px; }
.mac-window { position: relative; width: 100%; height: 100%; display: flex; background: var(--lth-bg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 22px 60px rgba(0,0,0,.22), 0 4px 14px rgba(0,0,0,.10); }
.mac-sidebar { flex: none; width: 252px; margin: 8px 0 8px 8px; border-radius: 12px; background: #eeeef0;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; }
.mac-window.is-sidebar-hidden .mac-sidebar { display: none; }
.mac-sidebar-top { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 10px 0 14px; flex: none; }
.mac-traffic { display: inline-flex; gap: 8px; }
.mac-traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.mac-traffic .r { background: #ff5f57; } .mac-traffic .y { background: #febc2e; } .mac-traffic .g { background: #28c840; }
.mac-traffic-alt, .mac-show-sidebar, .mac-back { display: none !important; }
.mac-window.is-sidebar-hidden .mac-traffic-alt { display: inline-flex !important; margin-right: 10px; }
.mac-window.is-sidebar-hidden .mac-show-sidebar { display: inline-flex !important; }
.mac-window.has-back .mac-back { display: inline-flex !important; }
.mac-iconbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px;
  background: transparent; color: rgba(0,0,0,.62); cursor: pointer; }
.mac-iconbtn:hover { background: rgba(0,0,0,.06); }
.mac-iconbtn[aria-pressed="true"] { background: rgba(0,0,0,.09); color: rgba(0,0,0,.85); }
.mac-sidebar-list { flex: 1; overflow-y: auto; padding: 2px 10px 14px; }
.mac-side-section { padding-bottom: 8px; }
.mac-side-head { margin: 8px 0 2px; }
.mac-side-head button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 8px; font-size: 11px; font-weight: 600;
  color: rgba(0,0,0,.45); cursor: pointer; border-radius: 5px; }
.mac-side-chev { display: inline-flex; transition: transform .15s; }
.mac-side-chev.is-closed { transform: rotate(-90deg); }
.mac-side-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 8px; background: none;
  text-align: left; cursor: pointer; font-size: 13px; color: rgba(0,0,0,.86); }
.mac-side-row:hover { background: rgba(0,0,0,.045); }
.mac-side-row.is-on { background: rgba(0,0,0,.085); }
.mac-side-ic { width: 20px; display: inline-flex; justify-content: center; color: var(--lth-accent); }
.mac-side-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lth-badge { flex: none; font-size: 10.5px; font-weight: 700; line-height: 1; color: #fff; background: var(--lth-accent-fill); border-radius: 999px; padding: 3px 7px; }

.mac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.mac-toolbar { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid rgba(0,0,0,.07); background: #fff; }
.mac-window.is-sidebar-hidden .mac-toolbar { padding-left: 16px; }
.mac-title { min-width: 0; margin-right: auto; padding-left: 2px; }
.mac-title-main { font-size: 15px; font-weight: 700; color: rgba(0,0,0,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.mac-title-sub { font-size: 11px; color: rgba(0,0,0,.5); white-space: nowrap; line-height: 1.2; }
.mac-tools { display: flex; align-items: center; gap: 6px; }
.mac-tools:empty { display: none; }
.mac-search { display: flex; align-items: center; gap: 6px; width: 330px; height: 30px; padding: 0 10px; border-radius: 15px; background: rgba(0,0,0,.055);
  color: rgba(0,0,0,.45); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); }
.mac-search:focus-within { box-shadow: 0 0 0 3px rgba(45,110,92,.35); background: #fff; }
.mac-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: rgba(0,0,0,.86); outline: none; }
.mac-search input::placeholder { color: rgba(0,0,0,.42); }
.mac-search input::-webkit-search-cancel-button { cursor: pointer; }
.lth-content { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.lth-screen { position: absolute; inset: 0; overflow: auto; }

/* Mac toolbar controls screens may use */
.lth-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: rgba(0,0,0,.06); gap: 2px; }
.lth-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 32px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px;
  background: transparent; color: rgba(0,0,0,.65); cursor: pointer; font-size: 12.5px; }
.lth-seg button[aria-pressed="true"] { background: #fff; color: rgba(0,0,0,.9); box-shadow: 0 1px 2px rgba(0,0,0,.16), 0 0 0 .5px rgba(0,0,0,.06); }
.lth-tool { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent;
  color: rgba(0,0,0,.7); cursor: pointer; font-size: 12.5px; }
.lth-tool:hover { background: rgba(0,0,0,.06); }
.lth-tool:disabled { opacity: .4; cursor: default; }

/* ================================================================ iPhone */

.lth-iphone { width: 419px; height: 878px; }
.ios-frame { width: 100%; height: 100%; padding: 13px; border-radius: 68px; background: #1d1d1f;
  box-shadow: 0 0 0 2px #3a3a3c, 0 24px 60px rgba(0,0,0,.25); }
.ios-screen { position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
  font-size: 17px; color: #000; }
.ios-status { flex: none; height: 54px; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; color: #000; }
.ios-time { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.ios-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ios-status-icons { display: inline-flex; align-items: center; gap: 6px; }
.ios-status-icons svg { fill: currentColor; }
.ios-status-icons svg path[d^="M8 11.5"] { fill: currentColor; }
.ios-nav { flex: none; height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; background: #fff; }
.ios-screen.no-nav .ios-nav { display: none; }
.ios-nav-lead { justify-self: start; display: flex; }
.ios-nav-trail { justify-self: end; display: flex; gap: 8px; align-items: center; }
.ios-nav-title { text-align: center; min-width: 0; max-width: 220px; }
.ios-nav-title h2 { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-nav-title p { font-size: 12px; color: var(--lth-secondary); white-space: nowrap; }
.ios-glass { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 0;
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.10); color: #000; cursor: pointer; font-size: 15px; }
.ios-back { display: none; padding: 0; width: 44px; }
.ios-screen.has-back .ios-back { display: inline-flex; }
.ios-content { background: #fff; }
.ios-tabbar { flex: none; display: flex; align-items: stretch; gap: 2px; padding: 4px 6px 0 12px; height: 56px; background: rgba(249,249,249,.94);
  border-top: .5px solid rgba(0,0,0,.18); }
.ios-screen.no-tab .ios-tabbar, .ios-screen.no-tab .ios-home-pad { display: none; }
.ios-tab-side { flex: none; width: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: rgba(60,60,67,.6); cursor: pointer; }
.ios-tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; cursor: pointer;
  color: rgba(60,60,67,.6); padding: 0; }
.ios-tab span { font-size: 10px; font-weight: 500; white-space: nowrap; }
.ios-tab.is-on { color: var(--lth-accent); }
.ios-home { flex: none; height: 30px; background: rgba(249,249,249,.94); position: relative; }
.ios-screen.no-tab .ios-home { background: transparent; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.ios-home::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #000; }
.ios-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; z-index: 30; }
.ios-scrim.is-open { background: rgba(0,0,0,.32); }
.ios-sidebar { position: absolute; left: 0; top: 0; bottom: 0; width: 330px; background: var(--lth-grouped); z-index: 31; overflow-y: auto; padding: 60px 0 40px;
  transform: translateX(-100%); transition: transform .25s ease; border-right: .5px solid rgba(0,0,0,.15); }
.ios-sidebar.is-open { transform: translateX(0); }
.ios-side-title { font-size: 20px; font-weight: 700; padding: 6px 20px 8px 36px; color: #000; }
.ios-side-head { margin: 18px 0 6px; }
.ios-side-head button { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; padding: 0 36px; font-size: 13px;
  font-weight: 400; color: rgba(60,60,67,.6); text-transform: uppercase; letter-spacing: 0; cursor: pointer; }
.ios-side-chev { display: inline-flex; transition: transform .15s; }
.ios-side-chev.is-closed { transform: rotate(-90deg); }
.ios-group { margin: 0 16px; border-radius: 26px; background: #fff; overflow: hidden; }
.ios-side-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 8px 20px; border: 0; background: #fff; text-align: left;
  cursor: pointer; font-size: 17px; color: #000; }
.ios-side-row + .ios-side-row::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: .5px solid rgba(60,60,67,.22); }
.ios-side-row.is-on { background: rgba(45,110,92,.16); }
.ios-side-ic { width: 24px; display: inline-flex; justify-content: center; color: var(--lth-accent); }
.ios-side-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-side-count { color: rgba(60,60,67,.6); font-variant-numeric: tabular-nums; }
.ios-disclosure { color: rgba(60,60,67,.3); display: inline-flex; }
.ios-grouped { min-height: 100%; background: var(--lth-grouped); padding: 8px 0 24px; }
.ios-grouped-head { margin: 16px 36px 7px; font-size: 13px; font-weight: 400; text-transform: uppercase; color: rgba(60,60,67,.6); }
.ios-grouped-foot { margin: 7px 36px 0; font-size: 13px; color: rgba(60,60,67,.6); }
.ios-link .lth-badge { margin-right: 2px; }

/* ================================================================ shared app components */

.lth-header { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.lth-header-ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(45,110,92,.1); color: var(--lth-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lth-header-title { font-family: var(--lth-serif); font-size: 26px; font-weight: 600; color: rgba(0,0,0,.88); line-height: 1.15; }
.lth-header-sub { font-size: 14px; color: rgba(0,0,0,.5); margin-top: 3px; }
.lth-divider { height: 1px; background: rgba(0,0,0,.1); border: 0; margin: 0; }
.lth-section-title { font-size: 13px; font-weight: 700; color: rgba(0,0,0,.5); padding: 14px 16px 0; }
.lth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 26px; padding: 3px 12px; border-radius: 7px; border: 0;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.1); color: rgba(0,0,0,.86); font-size: 13px; cursor: pointer; }
.lth-btn:hover { background: #f7f7f7; }
.lth-btn:disabled { opacity: .45; cursor: default; }
.lth-btn-primary { background: var(--lth-accent-fill); color: #fff; box-shadow: 0 1px 1.5px rgba(0,0,0,.15); }
.lth-btn-primary:hover { background: #276150; }
.lth-btn-plain { border: 0; background: none; color: var(--lth-accent); cursor: pointer; padding: 2px 4px; font-size: inherit; }
.lth-iconbtn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; padding: 2px; border-radius: 6px; cursor: pointer; color: rgba(0,0,0,.5); }
.lth-iconbtn:hover { color: rgba(0,0,0,.8); }
.lth-iconbtn.is-accent { color: var(--lth-accent); }
.lth-card { background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); }
.lth-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(0,0,0,.07); color: #000; font-size: 15px; font-weight: 500; cursor: pointer; }
.lth-chip[aria-pressed="true"] { background: rgba(45,110,92,.16); color: var(--lth-accent); }
.lth-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 48px 24px; text-align: center; color: rgba(0,0,0,.5); }
.lth-empty-title { font-size: 17px; font-weight: 700; color: rgba(0,0,0,.85); }
.lth-iphone .lth-empty-title { font-size: 20px; }

/* Song rows (Mac list view) */
.lth-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px 4px 14px; border-radius: 7px; background: rgba(0,0,0,.035); cursor: pointer; }
.lth-row:hover { background: rgba(45,110,92,.08); }

/* Menus, popovers, toast (positioned inside the scaled device) */
.lth-menu, .lth-popover { position: absolute; z-index: 50; background: rgba(250,250,250,.98); border-radius: 10px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 10px 32px rgba(0,0,0,.18); }
.lth-menu { min-width: 190px; padding: 5px; }
.lth-menu-item { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 24px; padding: 3px 10px 3px 4px; border: 0; border-radius: 5px; background: none; text-align: left;
  font-size: 13px; color: rgba(0,0,0,.86); cursor: pointer; }
.lth-menu-item:hover, .lth-menu-item:focus-visible { background: var(--lth-accent-fill); color: #fff; outline: none; }
.lth-menu-item:disabled { opacity: .4; cursor: default; background: none; color: rgba(0,0,0,.86); }
.lth-menu-check { width: 16px; display: inline-flex; justify-content: center; }
.lth-menu-ic { display: inline-flex; }
.lth-menu-item:hover .lth-menu-ic, .lth-menu-item:focus-visible .lth-menu-ic { color: #fff !important; }
.lth-menu-sep { height: 1px; margin: 5px 8px; background: rgba(0,0,0,.1); }
.lth-menu-head { padding: 4px 10px 2px 24px; font-size: 11px; font-weight: 600; color: rgba(0,0,0,.45); }
.lth-iphone .lth-menu { min-width: 240px; border-radius: 18px; padding: 6px; }
.lth-iphone .lth-menu-item { font-size: 17px; min-height: 44px; padding: 8px 12px 8px 6px; border-radius: 12px; }
.lth-iphone .lth-menu-item:hover, .lth-iphone .lth-menu-item:focus-visible { background: rgba(0,0,0,.07); color: #000; }
.lth-iphone .lth-menu-item:hover .lth-menu-ic, .lth-iphone .lth-menu-item:focus-visible .lth-menu-ic { color: var(--lth-accent) !important; }
.lth-iphone .lth-menu-head { font-size: 13px; padding: 6px 12px 4px; }
.lth-popover { width: 340px; padding: 16px; outline: none; }
.lth-popover h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.lth-popover dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; }
.lth-popover dt { font-weight: 600; color: rgba(0,0,0,.6); }
.lth-popover dd { margin: 0; color: rgba(0,0,0,.8); }
.lth-toast { position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 90%;
  padding: 10px 12px 10px 16px; border-radius: 14px; background: rgba(30,30,30,.92); color: #fff; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; }
.lth-iphone .lth-toast { bottom: 110px; font-size: 15px; }
.lth-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lth-toast-btn { border: 0; border-radius: 8px; padding: 5px 10px; background: #fff; color: #000; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .ios-sidebar, .ios-scrim, .lth-toast, .mac-side-chev, .ios-side-chev { transition: none; }
}
.mac-search input:focus-visible, .lib-search input:focus-visible { outline: none; }

/* iPhone in landscape (ctx.setOrientation): the screen is 852×393, the Dynamic Island sits on the left, the status
   bar is hidden as in landscape apps, and the home indicator runs along the bottom long edge over the content. */
.lth-iphone.is-landscape { width: 878px; height: 419px; }
.lth-iphone.is-landscape .ios-screen { width: 852px; height: 393px; }
.lth-iphone.is-landscape .ios-status { position: absolute; inset: 0; height: auto; padding: 0; pointer-events: none; z-index: 40; background: none; }
.lth-iphone.is-landscape .ios-time, .lth-iphone.is-landscape .ios-status-icons { display: none; }
.lth-iphone.is-landscape .ios-island { left: 11px; top: 50%; width: 36px; height: 124px; margin: -62px 0 0; }
.lth-iphone.is-landscape .ios-home { position: absolute; left: 0; right: 0; bottom: 0; height: 21px; background: transparent; pointer-events: none; z-index: 40; }
.lth-iphone.is-landscape .ios-home::after { bottom: 7px; width: 200px; margin-left: -100px; }
.lth-iphone.is-landscape .ios-sidebar { padding-top: 16px; }
