/* The Alignment Hub as an app (Jamie's developer handoff, 2026-11-27).
   Her visual spec: true black with a faint starfield and rose glows, tiles in
   each section's color, Cormorant Garamond headings, DM Sans everywhere else,
   a fixed tab bar, 44px touch targets. The app's own pages carry
   body.app-page (dark); the Hub's other pages keep their paper look and get
   the same tabs. */

:root {
  --ap-rose: #FF1D58;
  --ap-rose-200: #FFB3C9;
  --ap-rose-100: #FFDCE6;
  --ap-chev: #FF4574;
  --ap-ink: #F2F2F0;
  --ap-mid: #C4C4C2;
  --ap-line: rgba(255, 255, 255, 0.1);
  --ap-bar-h: 64px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── The tabs ─────────────────────────────────────────────────────────────── */
.app-tabs { display: flex; }
.app-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-mid); text-decoration: none; white-space: nowrap; }
.app-tab svg { width: 20px; height: 20px; flex: 0 0 auto; }
.app-tab:hover { color: var(--forest); }
.app-tab.on { background: var(--ap-rose); color: #fff; }
.app-tab:focus-visible { outline: 2px solid var(--ap-rose); outline-offset: 2px; }
.app-top-right { display: flex; align-items: center; gap: 14px; }
.app-tabs-top { gap: 4px; }
.app-login { font-size: 14px; white-space: nowrap; }

/* The bottom bar: a phone's main navigation, pinned with safe-area room. */
.app-tabbar { display: none; }
@media (max-width: 899px) {
  .app-tabs-top { display: none; }
  .app-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(14, 14, 16, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 29, 88, 0.5);
  }
  .app-tabbar .app-tab { flex-direction: column; gap: 2px; padding: 4px 2px; min-height: 52px; font-size: 11px; color: var(--ap-mid); }
  .app-tabbar .app-tab svg { width: 22px; height: 22px; }
  .app-tabbar .app-tab.on { background: var(--ap-rose); color: #fff; }
  /* Room under the footer for the bar. On the footer, not the body: the site's
     body is height:100%, so a body's padding does not lengthen the page
     (round 1 review: the bar covered the footer's last line). */
  body.has-appbar .footer { padding-bottom: calc(var(--ap-bar-h) + 28px + env(safe-area-inset-bottom)); }
  .app-top .nav-inner { height: 56px; }
}

/* ── The app's own pages: the cosmic dark surface ───────────────────────── */
body.app-page { background: #000; color: var(--ap-ink); }
body.app-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 38% at 50% -6%, rgba(255, 29, 88, 0.30), transparent 70%),
    radial-gradient(ellipse 80% 34% at 50% 106%, rgba(176, 0, 49, 0.28), transparent 70%);
}
body.app-page::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 117px 13px, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 181px 152px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 61px 199px, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 219px 87px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 143px 231px, rgba(255, 255, 255, 0.35), transparent 60%);
  background-size: 240px 240px;
}
body.app-page .nav { background: rgba(0, 0, 0, 0.6); border-bottom-color: rgba(255, 29, 88, 0.22); }
body.app-page .brand-word { color: var(--ap-ink); }
body.app-page .app-tab { color: var(--ap-mid); }
body.app-page .app-tab:hover { color: #fff; }
body.app-page .app-tab.on { color: #fff; }
body.app-page .nav-menu-btn { color: var(--ap-rose-200); }
body.app-page .app-login { color: var(--ap-rose-200); }
body.app-page .main { max-width: none; padding: 0; }
body.app-page .footer { background: transparent; color: #8A8A8E; border-top-color: var(--ap-line); }
body.app-page .footer a { color: var(--ap-rose-200); }
body.app-page .flash { max-width: 1060px; margin: 16px auto 0; }
body.app-page a { color: var(--ap-rose-200); }

/* The Tools tab and Favorites, on the site's own paper (Jamie, 2026-11-30: "We need
   contrast with the icons. make a different background"). Folders open on white, too.
   Home stays dark, as her homepage picture shows it. Her near-black tiles measured 1.09 to 1 against
   black, and 18 to 1 here. The top and bottom bars stay dark, as on every tab. */
body.app-paper { background: #FAFAF9; color: #0B0B0B; }
body.app-paper::before { background: radial-gradient(ellipse 70% 34% at 70% -6%, rgba(255, 29, 88, 0.14), transparent 70%); }
body.app-paper::after { content: none; }
body.app-paper .nav { background: #0B0B0B; }
body.app-paper .footer { color: #4A4A47; border-top-color: rgba(11, 11, 11, 0.14); }
body.app-paper .footer a { color: #B00031; }

.app { max-width: 1060px; margin: 0 auto; padding: 26px 20px 40px; }
.app-narrow { max-width: 640px; }
.app-head { margin-bottom: 22px; }
.app-h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--ap-ink); }
.app-sub { color: var(--ap-mid); font-size: 15px; margin-top: 6px; max-width: 62ch; }
.app-back { margin-bottom: 10px; font-size: 14px; }
.app-back a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-right: 8px; }
.app-section { margin-top: 28px; }
.app-label-h { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ap-rose-200); margin-bottom: 14px; }
.app-section > .app-sub { margin: -8px 0 14px; }
.app-more { margin-top: 14px; font-size: 14px; }
.app-more a { display: inline-flex; align-items: center; min-height: 44px; }
.app-error { background: rgba(255, 29, 88, 0.14); border: 1px solid rgba(255, 29, 88, 0.6); color: var(--ap-rose-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }

/* One primary button per screen. */
.app-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0; background: var(--ap-rose); color: #fff !important; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.app-btn:hover { background: #E2003F; }
.app-btn:focus-visible, .app-link:focus-visible, .app-link-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.app-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.app-link-btn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 15px; color: var(--ap-rose-200); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.se-actions, .pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }

/* ── Tiles ────────────────────────────────────────────────────────────────── */
/* Cells at least 72px (four across a 360px phone), the label using the whole
   cell so a two-word name is not cut on its first line. */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 20px 8px; }
@media (min-width: 900px) { .app-grid { justify-content: start; gap: 24px 22px; } }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 88px; justify-self: center; text-decoration: none; color: var(--ap-ink) !important; -webkit-tap-highlight-color: transparent; }
.app-tile:focus-visible { outline: none; }
.app-tile:focus-visible .app-icon-tile, .app-tile:focus-visible .app-folder-tile { outline: 2px solid #fff; outline-offset: 3px; }
.app-tile:active .app-icon-tile, .app-tile:active .app-folder-tile { transform: scale(0.95); }
.app-icon-tile { position: relative; display: block; width: 62px; height: 62px; transition: transform .12s; }
/* Her finished tiles, frame and all, so no background or border is drawn here. */
.app-icon-tile .app-ico { display: block; width: 100%; height: 100%; }
.app-icon-sm { width: 44px; height: 44px; flex: 0 0 auto; }
.app-label { width: 72px; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; line-height: 1.3; text-align: center; color: #F2F2F0; overflow-wrap: break-word; }
.app-price { display: block; margin-top: 2px; font-weight: 600; color: var(--ap-rose-200); }
.app-lock { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0E0E10; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--ap-ink); }
.app-lock svg { width: 11px; height: 11px; }
.app-tile.locked .app-icon-tile { opacity: 0.72; }
body.app-paper .app-h1 { color: #0B0B0B; }
body.app-paper .app-sub { color: #4A4A47; }
body.app-paper .app-sub a, body.app-paper .app-label-h, body.app-paper .app-price { color: #B00031; }
body.app-paper .app-label { color: #1A1A19; font-weight: 500; }
body.app-paper .app-tile.locked .app-icon-tile { opacity: 1; }
body.app-paper .app-tile:focus-visible .app-icon-tile { outline-color: #0B0B0B; }
.app-tile-empty { cursor: default; }

/* Folders: a rose glass tile holding four mini icons. */
.app-folder-tile { display: grid; grid-template-columns: repeat(2, 20px); grid-auto-rows: 20px; gap: 6px; align-content: center; justify-content: center; width: 62px; height: 62px; border-radius: 16px; background: rgba(255, 29, 88, 0.22); border: 1px solid rgba(255, 123, 159, 0.6); transition: transform .12s; }
.app-folder-tile .mini { display: block; width: 20px; height: 20px; }
.app-folder-tile .mini-ico { display: block; width: 100%; height: 100%; }

/* The folder overlay: a blurred background, the name, a three-column grid. */
dialog.app-folder { padding: 0; margin: auto; border: 0; background: transparent; color: var(--ap-ink); color-scheme: dark; max-width: calc(100vw - 32px); width: 340px; overflow: visible; }
/* Light, so her near-black tiles stand out (1.09 to 1 before, 19.28 to 1 now). */
dialog.app-folder { color-scheme: light; }
dialog.app-folder .af-panel { background: #FFFFFF; border-color: #FFB3C9; }
dialog.app-folder .af-h { color: #0B0B0B; }
dialog.app-folder .af-sub { color: #4A4A47; }
dialog.app-folder .app-label { color: #1A1A19; font-weight: 500; }
dialog.app-folder .app-price, dialog.app-folder .af-all a { color: #B00031; }
dialog.app-folder .app-tile.locked .app-icon-tile { opacity: 1; }
dialog.app-folder .af-close { border-color: rgba(11, 11, 11, 0.4); color: #0B0B0B; }
dialog.app-folder .af-close:hover { border-color: #B00031; }
dialog.app-folder .af-close:focus-visible, dialog.app-folder .app-tile:focus-visible .app-icon-tile, dialog.app-folder .af-all a:focus-visible { outline-color: #0B0B0B; }
dialog.app-folder::backdrop { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
/* The name stays at the top and Close at the bottom; a long folder scrolls between them. */
.af-panel { display: flex; flex-direction: column; background: rgba(22, 22, 24, 0.82); border: 1px solid rgba(255, 123, 159, 0.35); border-radius: 28px; padding: 22px 14px 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; }
.af-h { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; color: var(--ap-ink); text-align: center; margin-bottom: 4px; }
.af-sub { text-align: center; color: var(--ap-mid); font-size: 13px; margin-bottom: 6px; }
.af-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 6px; margin-top: 16px; padding: 4px 2px 8px; overflow-y: auto; flex: 1 1 auto; min-height: 0; scrollbar-width: thin; }
.af-close { flex: 0 0 auto; display: block; margin: 12px auto 0; min-height: 44px; min-width: 120px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--ap-ink); font: 500 15px 'DM Sans', sans-serif; cursor: pointer; }
.af-close:hover { border-color: var(--ap-rose-200); }
.af-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Home's cards ─────────────────────────────────────────────────────────── */
.practice-card { display: block; background: #4D0719; border: 1px solid #FF1D58; border-radius: 22px; padding: 18px 20px; margin-bottom: 6px; text-decoration: none; color: var(--ap-rose-100) !important; max-width: 640px; }
a.practice-card:hover { background: #5A0A1F; }
a.practice-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pc-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ap-rose-200); }
.pc-theme { display: block; margin-top: 8px; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; line-height: 1.15; color: #fff; }
.pc-line { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ap-rose-100); }

/* Rows are .ar-row, not .app-row: the AI apps page already styles .app-row (a column on
   phones), which turned these rows into stacks on the first release (found 2026-11-27). */
/* ── Rows (Courses, Me) ───────────────────────────────────────────────────── */
.app-rows { list-style: none; border-top: 1px solid var(--ap-line); max-width: 720px; }
.app-rows li { border-bottom: 1px solid var(--ap-line); }
.ar-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 4px; text-decoration: none; color: var(--ap-ink) !important; }
.ar-row:hover .ar-title { color: #fff; }
.ar-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 8px; }
.ar-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ar-title { font-size: 16px; font-weight: 500; color: var(--ap-ink); }
.ar-sub { font-size: 13px; color: var(--ap-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-chev { font-size: 26px; line-height: 1; color: var(--ap-chev); }
.me-plan { color: var(--ap-rose-200); margin-top: 6px; font-size: 15px; }
.me-out { margin-top: 18px; }

/* ── Journal: One Sentence Sky's card ────────────────────────────────────── */
.sky-entry { background: rgba(255, 29, 88, 0.1); border: 1px solid rgba(255, 29, 88, 0.45); border-radius: 22px; padding: 18px 20px; max-width: 720px; }
.se-starter { display: block; margin-top: 10px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 25px; font-weight: 500; line-height: 1.25; color: #fff; }
.se-note { color: var(--ap-rose-100); font-size: 15px; margin-top: 6px; }
.se-form textarea { display: block; width: 100%; margin-top: 12px; min-height: 96px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.45); color: var(--ap-ink); font: 400 16px/1.5 'DM Sans', sans-serif; resize: vertical; }
.se-form textarea:focus { outline: 2px solid var(--ap-rose); outline-offset: 1px; border-color: transparent; }
.se-past-h { margin-top: 22px; }
.se-past { list-style: none; }
.se-past li { border-top: 1px solid var(--ap-line); }
.se-past a { display: flex; gap: 14px; padding: 10px 2px; min-height: 44px; text-decoration: none; color: var(--ap-ink) !important; }
.se-date { flex: 0 0 92px; font-size: 13px; color: var(--ap-rose-200); padding-top: 2px; }
.se-body { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ap-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Forms (My chart details) ─────────────────────────────────────────────── */
.app-form { display: grid; gap: 18px; }
.af-field label { display: block; font-size: 14px; font-weight: 500; color: var(--ap-ink); margin-bottom: 6px; }
.af-field input[type="date"], .af-field input[type="time"], .af-field input[type="text"] {
  width: 100%; max-width: 420px; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45); color: var(--ap-ink); font: 400 16px 'DM Sans', sans-serif; color-scheme: dark;
}
.af-field input:focus { outline: 2px solid var(--ap-rose); outline-offset: 1px; border-color: transparent; }
.af-field input:disabled { opacity: 0.45; }
.af-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-weight: 400 !important; cursor: pointer; }
.af-check input { width: 20px; height: 20px; accent-color: var(--ap-rose); }
.af-hint { color: var(--ap-mid); font-size: 13px; margin-top: 6px; }
.af-place { position: relative; }
.place-list { list-style: none; position: absolute; z-index: 20; left: 0; right: 0; max-width: 420px; margin-top: 4px; background: #161618; border: 1px solid rgba(255, 123, 159, 0.45); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.place-list li { padding: 12px 14px; min-height: 44px; cursor: pointer; color: var(--ap-ink); font-size: 15px; border-top: 1px solid var(--ap-line); }
.place-list li:first-child { border-top: 0; }
.place-list li[aria-selected="true"], .place-list li:hover { background: rgba(255, 29, 88, 0.2); }
.af-remove { margin-top: 26px; }

/* ── Today's Transits and Today's Bodygraph ───────────────────────────────── */
.day-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dn-step { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 123, 159, 0.5); color: var(--ap-ink) !important; text-decoration: none; font-size: 18px; }
.dn-step:hover { background: rgba(255, 29, 88, 0.2); }
.dn-step:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dn-off { opacity: 0.3; }
.dn-label { font-size: 15px; font-weight: 500; color: var(--ap-ink); }
.dn-today { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #D6003F; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; vertical-align: 2px; }
.dn-back { font-size: 14px; margin-top: 4px; }
.dn-back a { display: inline-flex; align-items: center; min-height: 44px; }
.transit-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .transit-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.wheel-wrap, .graph-wrap { margin: 0; }
.wheel-wrap svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.graph-wrap svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.wheel-wrap figcaption { text-align: center; }
.key-rose { color: #FF7B9F; }
.gl { font-family: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', sans-serif; color: #FF7B9F; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tl-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ap-mid); padding: 0 8px 8px 0; }
.tl-table td { padding: 10px 8px 10px 0; border-top: 1px solid var(--ap-line); color: var(--ap-ink); vertical-align: top; }
.tl-table tr.is-exact td { background: rgba(255, 29, 88, 0.12); }
.exact { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #D6003F; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 599px) {
  .tl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tl-table, .tl-table tbody, .tl-table tr, .tl-table td { display: block; }
  .tl-table tr { border-top: 1px solid var(--ap-line); padding: 8px 0; }
  .tl-table td { border: 0; padding: 2px 0; display: flex; gap: 10px; }
  .tl-table td::before { content: attr(data-k); flex: 0 0 92px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ap-mid); padding-top: 2px; }
}
.transit-list .app-label-h { margin-top: 24px; }
.transit-list .app-label-h:first-child { margin-top: 0; }
.sky-list, .bg-list { list-style: none; }
.sky-list li, .bg-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--ap-line); font-size: 14px; color: var(--ap-ink); }
.sl-name { min-width: 92px; }
.sl-pos { color: var(--ap-mid); }
.bg-list li { display: block; }
.bg-completes { color: var(--ap-rose-100) !important; }
.bg-key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--ap-mid); }
.bg-key li { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.k-pers { background: #F2F2F0; }
.k-des { background: #FF1D58; }
.k-tr { border: 2px solid #FF1D58; height: 10px; }
.k-done { background: rgba(255, 29, 88, 0.45); box-shadow: 0 0 8px rgba(255, 29, 88, 0.9); }

/* ── Today's practice page ────────────────────────────────────────────────── */
.practice-day { background: #4D0719; border: 1px solid #FF1D58; border-radius: 22px; padding: 18px 20px; color: var(--ap-rose-100); line-height: 1.6; }
.practice-day p + p { margin-top: 10px; }
.pd-label { font-weight: 600; color: #fff; }
.pd-h { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: #fff; }
.pd-tag { font-style: italic; margin: 4px 0 8px; }
.pd-gate + .pd-gate { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 179, 201, 0.25); }

/* ── Favorites ────────────────────────────────────────────────────────────── */
.fav-list { list-style: none; border-top: 1px solid var(--ap-line); margin-bottom: 18px; }
.fav-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ap-line); }
.fav-name { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ap-ink); }
.fav-acts { display: flex; gap: 6px; }
.fav-btn { min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--ap-ink); font: 500 14px 'DM Sans', sans-serif; cursor: pointer; }
.fav-btn:hover:not(:disabled) { border-color: var(--ap-rose-200); }
.fav-btn:disabled { opacity: 0.3; cursor: default; }
.fav-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fav-reset { margin-bottom: 20px; }
body.app-paper .app-back a, body.app-paper .app-link-btn { color: #B00031; }
body.app-paper .fav-list, body.app-paper .fav-row { border-color: rgba(11, 11, 11, 0.14); }
body.app-paper .fav-name { color: #0B0B0B; }
body.app-paper .fav-btn { border-color: rgba(11, 11, 11, 0.4); color: #0B0B0B; }
body.app-paper .fav-btn:hover:not(:disabled) { border-color: #B00031; }
body.app-paper .fav-btn:disabled { opacity: 0.45; }
body.app-paper .fav-btn:focus-visible, body.app-paper .app-link-btn:focus-visible { outline-color: #0B0B0B; }

/* The Hub's paper pages under the same tabs: the bar's paper look. */
body.has-appbar:not(.app-page) .app-tab.on { color: #fff; }
@media (prefers-reduced-motion: reduce) { .app-icon-tile, .app-folder-tile { transition: none; } }

/* Small fits found in the first look (2026-11-27). */
.app-form .app-btn { justify-self: start; }
.sky-entry, .app-section { scroll-margin-top: 80px; }
body.app-page .flash { background: rgba(255, 29, 88, 0.14); border: 1px solid rgba(255, 29, 88, 0.55); color: var(--ap-rose-100); }
body.app-page .flash-error { background: rgba(255, 29, 88, 0.22); }
body.app-paper .flash { background: #FFF1F5; border-color: #B00031; color: #0B0B0B; }
body.app-paper .flash-error { background: #FFE4EC; color: #8A0026; }
@media (min-width: 900px) { .wheel-wrap, .graph-wrap { position: sticky; top: 88px; } }

/* Wide screens: the same grid, larger, so the rows fill the 1060px column
   (the handoff's 62px tile is the phone size). */
@media (min-width: 900px) {
  .app-grid { grid-template-columns: repeat(auto-fill, 100px); gap: 28px 24px; }
  .app-tile { width: 100px; max-width: none; gap: 9px; }
  .app-icon-tile, .app-folder-tile { width: 80px; height: 80px; }
  .app-folder-tile { border-radius: 21px; }
  .app-folder-tile { grid-template-columns: repeat(2, 26px); grid-auto-rows: 26px; gap: 8px; }
  .app-folder-tile .mini { width: 26px; height: 26px; }
  .app-label { width: 100px; font-size: 13px; }
  .af-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  dialog.app-folder { width: 420px; }
  .practice-card, .sky-entry { max-width: none; }
  .app-icon-tile.app-icon-sm { width: 44px; height: 44px; }
}

/* Links to the pillar pages (round 1 review: posts and pillar pages had no way in). */
.app-group-link { margin: -8px 0 14px; font-size: 14px; }
.app-group-link a { display: inline-flex; align-items: center; min-height: 44px; }
.af-all { text-align: center; margin-top: 10px; font-size: 14px; }
.af-all a { display: inline-flex; align-items: center; min-height: 44px; }
.ar-row-form .ar-row { width: 100%; }
