/* The Home page (ROADMAP F114, from the mockup of 2026-10-06; the dashboard of F42 before it): the whole-market bar,
   cards with a 7-day line, the Fear & Greed gauge, the Markets table with tabs, the live feed, a heat map of the 20
   biggest coins, what is coming up, Tools. Colours from app.css tokens, so both themes work; up / down also carry an
   arrow (home.js). Numbers in the page font with digits of one width (tabular-nums), as the big sites do.
   Motion: cards fade in one after another (--enter), lines draw in, tab line slides, rows / feed items slide in,
   the gauge needle swings - all switched off when the system asks for less motion (end of this file). */

.home-page { --home-ease: cubic-bezier(.2, .7, .2, 1); }
.home-updated { color: var(--ink-faint); font-size: var(--fs-meta); margin-inline-start: 4px; }
.home-num, .home-time, .home-card-value, .home-bar b, .home-mood-value b { font-variant-numeric: tabular-nums; }

/* ---------------- the whole-market bar ------------------------ */

/* one line on every screen (owner, 2026-10-24), like the stats strip of the big market sites: the numbers share the
   width, a thin line between them; a narrow screen slides the strip sideways, its far edge fading out */
.home-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius, 10px);
    background-color: var(--panel);
    color: var(--ink-faint);
    font-size: var(--fs-meta);
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.home-bar::-webkit-scrollbar { display: none; }
.home-bar.is-wider { mask-image: linear-gradient(to right, #000 88%, transparent); }
[dir="rtl"] .home-bar.is-wider { mask-image: linear-gradient(to left, #000 88%, transparent); }
.home-bar-item {
    position: relative;
    flex: 1 0 auto;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 10px 11px;
    white-space: nowrap;
}
.home-bar-pair { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink-dim); }
.home-bar-pair + .home-bar-pair { margin-inline-start: 4px; }
.home-bar-item + .home-bar-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 28%;
    bottom: 28%;
    border-inline-start: 1px solid var(--border-soft);
}
.home-bar-label { color: var(--ink-faint); }
.home-bar-item b { color: var(--ink); font-weight: 600; }
.home-bar-item [data-field="change"]:not(:empty) {
    padding: 1px 5px;
    border-radius: var(--radius-pill);
    font-size: .88em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background-color: var(--panel-2);
    color: var(--ink-dim);
}
.home-bar-item .positive:not(:empty) { color: var(--up-ink); background-color: color-mix(in srgb, var(--up-ink) 13%, transparent); }
.home-bar-item .negative:not(:empty) { color: var(--down-ink); background-color: color-mix(in srgb, var(--down-ink) 13%, transparent); }
.fg-extreme-fear { color: var(--down-ink); }
.fg-fear { color: var(--chart-compare); }
.fg-neutral { color: var(--ink-dim); }
.fg-greed, .fg-extreme-greed { color: var(--up-ink); }

/* ---------------- head: Start here, the setup chip (My dashboard's head since F123) ------------ */

.home-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
a.home-setup, a.home-start-link { white-space: nowrap; }
.home-start-link { display: inline-flex; align-items: center; gap: 8px; }
.home-start-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.home-setup {
    display: inline-flex; align-items: center; gap: 8px;
    padding-block: 4px; padding-inline: 5px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background-color: var(--panel); color: var(--ink); font-size: var(--fs-meta); text-decoration: none;
}
a.home-setup:hover { border-color: var(--accent); text-decoration: none; }
.home-setup-ring {
    --done: 0;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--accent) calc(var(--done) * 1turn), var(--panel-3) 0);
}
.home-setup-1 { --done: .3334; }
.home-setup-2 { --done: .6667; }
.home-setup-ring > span {
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background-color: var(--panel); color: var(--ink-dim); font-size: calc(12px * var(--text-scale, 1));
}

/* ---------------- cards ---------------------------------------- */

.home-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

a.home-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 128px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.home-card[hidden] { display: none; }
a.home-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }

.home-card-label {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ink-dim);
    position: relative;
}

.home-card-value {
    position: relative;
    align-self: flex-start;
    font-size: calc(30px * var(--text-scale, 1));
    font-weight: 700;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    border-radius: 6px;
}

.home-card-sub {
    position: relative;
    font-size: var(--fs-meta);
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

/* the 7-day line behind a coin card's numbers (the text stays on top) */
a.home-card > :not(.home-card-spark) { position: relative; z-index: 1; }
.home-card-spark { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; width: 100%; height: 56%; pointer-events: none; }
.home-spark-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.home-spark-area { stroke: none; }
.is-up .home-spark-line { stroke: var(--up-ink); }
.is-down .home-spark-line { stroke: var(--down-ink); }
.is-up .home-spark-area { fill: color-mix(in srgb, var(--up-ink) 12%, transparent); }
.is-down .home-spark-area { fill: color-mix(in srgb, var(--down-ink) 12%, transparent); }

/* Fear & Greed gauge (bands as Market Overview's) */
.home-mood { align-items: center; text-align: center; }
.home-mood .home-card-label { align-self: flex-start; }
.home-gauge { width: 132px; height: 74px; margin-top: 2px; }
.home-gauge-band { fill: none; stroke-width: 9; }
.home-gauge-needle { transform-origin: 50px 50px; transform: rotate(var(--angle, -90deg)); transition: transform .8s var(--home-ease); }
.home-gauge-needle line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.home-gauge-hub { fill: var(--ink); }
.home-mood-value { font-size: var(--fs-data); }
.home-mood-value b { font-size: calc(24px * var(--text-scale, 1)); margin-inline-end: 4px; }
.home-mood-value span { font-weight: 600; }

/* ---------------- rows of panels -------------------------------- */

.home-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.home-row-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.home-row-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-row-three:has(> [data-hide-empty][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* the empty feed hidden */

.home-panel { min-width: 0; }
.home-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.home-panel h2 { font-size: calc(18px * var(--text-scale, 1)); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.home-panel h3 { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; color: var(--ink-dim);
                 letter-spacing: .03em; margin: 0 0 6px; }
.home-panel-head a { font-size: var(--fs-meta); }
.home-count { color: var(--ink-faint); font-weight: 400; font-size: var(--fs-meta); }

/* ---------------- Markets table with tabs ------------------------ */

.home-tabs { position: relative; display: flex; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; overflow-x: auto; }
.home-tab {
    min-height: 40px;
    padding: 8px 14px 10px;
    border: 0;
    background: none;
    color: var(--ink-faint);
    font-weight: 600;
    font-size: var(--fs-data);
    white-space: nowrap;
}
.home-tab:hover { color: var(--ink); background: none; }
.home-tab.is-active { color: var(--ink); }
.home-tab-line {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
    border-radius: 2px; background-color: var(--brand);
    transition: transform .3s var(--home-ease), width .3s var(--home-ease);
}

.home-market-head, .home-market-link {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .9fr) 120px;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}
.home-market-head { min-height: 30px; color: var(--ink-faint); font-size: var(--fs-label); font-weight: 600;
                    text-transform: uppercase; letter-spacing: .04em; }
.home-market-head > span:not(:first-child) { text-align: end; }
.home-market-rows { list-style: none; margin: 0; padding: 0; }
.home-market-link {
    min-height: 46px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: var(--fs-data);
}
.home-market-link:hover { background-color: var(--row-hover); color: var(--ink); text-decoration: none; }
.home-market-link .coin-name { font-weight: 600; min-width: 0; }
.home-price { justify-self: end; padding: 2px 6px; border-radius: 6px; }
.home-pct { justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px; }
.home-pct.positive { background-color: color-mix(in srgb, var(--up-ink) 12%, transparent); }
.home-pct.negative { background-color: color-mix(in srgb, var(--down-ink) 12%, transparent); }
.home-row-spark { width: 120px; height: 32px; justify-self: end; }

/* ---------------- live feed -------------------------------------- */

.home-live-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--up-ink); flex: 0 0 auto; }
.home-live-dot.is-paused { background-color: var(--ink-faint); }
.home-feed-pause { font-size: var(--fs-meta); min-height: 0; padding: 2px 8px; }
.home-feed-note { color: var(--ink-faint); font-size: var(--fs-meta); margin: -4px 0 10px; }
.home-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.home-feed-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background-color: var(--panel-2);
    color: var(--ink);
    text-decoration: none;
}
.home-feed-item:hover { border-color: var(--border); color: var(--ink); text-decoration: none; }
.home-feed-tag {
    width: 38px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    font-size: calc(13px * var(--text-scale, 1)); font-weight: 700; letter-spacing: .03em;
    background-color: var(--panel-3); color: var(--ink-dim);
}
.home-feed-tag.is-signal { background-color: var(--accent-soft); color: var(--link); }
.home-feed-tag.is-alert { background-color: var(--gold-soft); color: var(--gold); }
.home-feed-tag.is-liquidation, .home-feed-tag.is-delisting { background-color: var(--danger-soft); color: var(--down-ink); }
.home-feed-tag.is-big { background-color: color-mix(in srgb, var(--up-ink) 15%, transparent); color: var(--up-ink); }
.home-feed-tag.is-listing { background-color: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.home-feed-body { display: flex; flex-direction: column; min-width: 0; }
.home-feed-title { font-size: var(--fs-data); font-weight: 600; }
.home-feed-text { color: var(--ink-dim); font-size: var(--fs-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-feed-time { color: var(--ink-faint); font-size: var(--fs-meta); white-space: nowrap; }

/* ---------------- heat map of the 20 biggest coins ---------------- */

.home-heat { position: relative; height: 260px; border-radius: 8px; overflow: hidden; }
.home-heat-tile {
    --heat: 0;
    position: absolute;
    box-sizing: border-box;
    border: 2px solid var(--panel);
    border-radius: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--ink); text-decoration: none; line-height: 1.15; overflow: hidden;
    background-color: var(--panel-3);
    transition: filter .15s ease;
}
.home-heat-tile:hover { filter: brightness(1.18); color: var(--ink); text-decoration: none; z-index: 1; }
.home-heat-tile.is-up { background-color: color-mix(in srgb, var(--up-ink) calc(14% + var(--heat) * 50%), var(--panel)); }
.home-heat-tile.is-down { background-color: color-mix(in srgb, var(--down-ink) calc(14% + var(--heat) * 50%), var(--panel)); }
.home-heat-tile b { font-weight: 700; }
.home-heat-tile small { font-size: .7em; font-variant-numeric: tabular-nums; opacity: .9; }

a.home-breadth-line { display: block; margin-top: 10px; color: inherit; text-decoration: none; }
a.home-breadth-line:hover .home-card-sub { color: var(--ink); }
.home-breadth {
    display: block;
    height: 6px;
    margin: 0 0 6px;
    border-radius: var(--radius-pill);
    background-color: var(--panel-3);           /* grey until the numbers arrive (F47) */
    overflow: hidden;
}
.home-breadth.is-ready { background-color: var(--down-ink); }
.home-breadth-up { display: block; height: 100%; width: 0; background-color: var(--up-ink); transition: width .8s var(--home-ease); }

/* ---------------- coming up and news ------------------------------ */

.home-news { list-style: none; margin: 0; padding: 0; }
.home-news + .home-news { margin-top: 4px; border-top: 1px solid var(--border-soft); }
.home-news-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.home-news-row:last-child { border-bottom: 0; }
.home-news-when { flex: 0 0 56px; color: var(--ink-faint); font-size: var(--fs-meta); padding-top: 1px; }
.home-news-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-news-body > .home-badge { align-self: flex-start; }
a.home-news-title { color: var(--ink); font-size: var(--fs-data); font-weight: 500; text-decoration: none; }
a.home-news-title:hover { color: var(--link); }
.home-news-meta { color: var(--ink-faint); font-size: var(--fs-meta); }
.home-badge { font-size: calc(13px * var(--text-scale, 1)); font-weight: 600; border-radius: 6px; padding: 1px 7px; background-color: var(--panel-3); color: var(--ink-dim); }
.home-badge.is-economic { background-color: var(--gold-soft); color: var(--gold); }
.home-badge.is-unlock { background-color: var(--accent-soft); color: var(--link); }
.home-badge.is-delisting { background-color: var(--danger-soft); color: var(--down-ink); }
.home-more { display: inline-block; margin-top: 8px; font-size: var(--fs-meta); }

/* ---------------- since your last visit (F103) -------------------- */

.home-list { list-style: none; margin: 0; padding: 0; }
.home-list > li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: var(--fs-data);
}
.home-list > li:last-child { border-bottom: 0; }
.home-time { color: var(--ink-faint); }
.home-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-mover .coin-name { flex: 1; min-width: 0; }
.home-mover .home-num { color: var(--ink-dim); }
.home-mover > span:last-child { min-width: 72px; text-align: end; }

.home-empty, .home-note { color: var(--ink-faint); font-size: var(--fs-meta); margin: 4px 0 0; }
.home-note { margin: 0 0 10px; }
.home-note[hidden], .home-empty[hidden] { display: none; }

.home-section-title { font-size: calc(18px * var(--text-scale, 1)); font-weight: 600; margin: 26px 0 6px; }

/* Tools: the menu's groups, each with a small heading (owner, 2026-10-03); compact under the dashboard (F114) */
.tool-groups { display: flex; flex-direction: column; gap: 16px; }
.tool-group-title {
    margin: 0 0 8px;
    color: var(--ink-dim);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tool-groups .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tool-groups a.tool-card { min-height: 0; padding: 10px 14px; }
/* one short line each (site_menu.HINT_MAX); never a second line */
.tool-groups a.tool-card .tool-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(15px * var(--text-scale, 1)); }

/* Favourites (ROADMAP F94): the pinned Tools buttons in a row at the top, in the user's order (static/js/favourites.js).
   A star in the corner of each Tools button pins it; on a pinned card two arrows move it and the filled star takes it
   out. The buttons sit beside the link (not inside it), so a click on them never opens the page. */
.home-favourites { margin-bottom: 18px; }
.home-favourites[hidden] { display: none; }
.home-favourites .home-section-title { margin: 0 0 10px; }
.fav-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.fav-grid:empty { display: none; }
.fav-item, .tool-item { position: relative; }
.fav-item a.tool-card { min-height: 0; height: 100%; padding-block: 12px; padding-inline: 16px 86px; }
.fav-item a.tool-card .tool-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(15.5px * var(--text-scale, 1)); }
.tool-item a.tool-card { padding-inline-end: 40px; }

.tool-pin, .fav-tools button {
    min-height: 0;
    padding: 2px 5px;
    color: var(--ink-faint);
    background: transparent;
    border: 1px solid transparent;
    font-size: calc(17px * var(--text-scale, 1));
    line-height: 1;
}
.tool-pin:hover, .fav-tools button:hover:not(:disabled) { color: var(--ink); background-color: var(--panel-2); border-color: var(--border); }
.tool-pin { position: absolute; top: 8px; inset-inline-end: 8px; }
.tool-pin.is-on, .fav-tools .fav-unpin { color: var(--chart-compare); }
.fav-tools { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 2px; }
.fav-tools .fav-move { font-size: calc(13px * var(--text-scale, 1)); padding: 4px 5px; }
.fav-tools button:disabled { opacity: .35; cursor: default; }
/* fingers: bigger buttons (phones, tablets) */
@media (pointer: coarse) {
    .tool-pin, .fav-tools button { min-width: 36px; min-height: 36px; }
    .tool-pin, .fav-tools { top: 4px; inset-inline-end: 4px; }
    .fav-item a.tool-card { padding-inline-end: 124px; }
    .tool-item a.tool-card { padding-inline-end: 48px; }
}

/* ---------------- narrower screens -------------------------------- */

@media (max-width: 1199.98px) {
    .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .home-row, .home-row-main, .home-row-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .home-bar-item { padding: 9px 12px; }
    .home-cards { gap: 10px; }
    a.home-card { min-height: 112px; padding: 12px; }
    .home-card-value { font-size: calc(22px * var(--text-scale, 1)); }
    .home-gauge { width: 104px; height: 58px; }
    .home-market-head, .home-market-link { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1fr); }
    .home-spark-col, .home-row-spark { display: none; }
    .home-heat { height: 220px; }
    .home-movers { grid-template-columns: 1fr; gap: 10px; }
    .tool-groups .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tool-groups a.tool-card .tool-hint { display: none; }
}

/* ---------------- motion (only when the system allows it) --------- */

@media (prefers-reduced-motion: no-preference) {
    .home-enter { animation: home-enter .5s var(--home-ease) backwards; animation-delay: calc(var(--enter, 0) * 70ms); }
    /* the visitor's headline is the page's largest text: it rises in but never starts see-through, or Google counts
       the page as shown only when the fade ends (largest paint, ROADMAP S7a) */
    .home-hero.home-enter { animation-name: home-rise; }
    .home-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: home-draw 1.2s ease-out .15s forwards; }
    .is-static .home-spark-line { animation: none; stroke-dashoffset: 0; }
    .home-spark-area { opacity: 0; animation: home-fade .8s ease .7s forwards; }
    .home-market-row.is-entering { animation: home-row-in .35s var(--home-ease) backwards; animation-delay: calc(var(--enter, 0) * 35ms); }
    .home-feed-row.is-new { animation: home-feed-in .55s var(--home-ease); }
    .home-feed-row.is-new .home-feed-item { animation: home-feed-glow 1.6s ease-out; }
    .home-heat-tile { animation: home-tile-in .45s var(--home-ease) backwards; animation-delay: calc(200ms + var(--enter, 0) * 25ms); }
    .home-gauge-needle { animation: home-needle 1.4s cubic-bezier(.3, 1.4, .5, 1) .25s backwards; }
    .home-live-dot:not(.is-paused) { animation: home-pulse 2s infinite; }
}
@keyframes home-enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes home-rise { from { transform: translateY(10px); } }
@keyframes home-draw { to { stroke-dashoffset: 0; } }
@keyframes home-fade { to { opacity: 1; } }
@keyframes home-row-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes home-feed-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes home-feed-glow { from { background-color: var(--accent-soft); border-color: var(--accent); } }
@keyframes home-tile-in { from { opacity: 0; transform: scale(.94); } }
@keyframes home-needle { from { transform: rotate(-90deg); } }
@keyframes home-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up-ink) 55%, transparent); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------- a visitor's Home (ROADMAP F120) ---------------------- */

.home-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
    padding: 22px 24px; margin-bottom: 14px;
    border: 1px solid var(--border-soft); border-radius: var(--radius, 10px);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%);
}
.home-hero h1 { margin: 0 0 6px; font-size: calc(28px * var(--text-scale, 1)); font-weight: 700; line-height: 1.2; }
.home-hero-kicker { margin: 0 0 6px; color: var(--link); font-size: var(--fs-label); font-weight: 600;
                    letter-spacing: .05em; text-transform: uppercase; }
.home-hero-lead { margin: 0; max-width: 760px; color: var(--ink-dim); font-size: var(--fs-data); }
.home-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero-more { align-self: center; font-size: var(--fs-meta); }
.home-hero-cta { min-height: 44px; padding: 10px 22px; display: inline-flex; align-items: center; font-weight: 600; }

a.home-join { justify-content: space-between; gap: 8px; }
.home-join-text { color: var(--ink-dim); font-size: var(--fs-meta); }
.home-join-cta { align-self: flex-start; padding: 6px 14px; font-size: var(--fs-meta); font-weight: 600; }
/* the card is the link, so its button is a span: styled like a.btn-accent (app.css) */
span.home-join-cta { color: var(--accent-ink); background-color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); }

/* the landing page's "What you get", plans and sign-up under the dashboard */
.home-page .landing-below { max-width: none; padding: 12px 0 0; }

/* trending coins (ROADMAP E21): place, coin, 24h change, hours in the list over 7 days */
.home-trending { list-style: none; margin: 0; padding: 0; }
.home-trending-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.home-trending-row:last-child { border-bottom: 0; }
.home-trending-place { color: var(--ink-faint); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; text-align: end; }
.home-trending-coin { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.home-trending-coin .home-trending-name { color: var(--ink-faint); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-trending-new { font-size: var(--fs-meta); font-weight: 600; padding: 0 6px; border-radius: var(--radius-pill); background: var(--panel-3); color: var(--up-ink); }
.home-trending-hours { color: var(--ink-faint); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; min-width: 44px; text-align: end; }

/* the block of the market space (ROADMAP F7, templates/main/space_home.html, static/js/space_home.js) */
.space-home { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.sh-head h2 { margin: 0; font-size: calc(22px * var(--text-scale, 1)); font-weight: 700; }
.sh-line, .sh-hint { color: var(--ink-dim); font-size: var(--fs-meta); }
.sh-hint { margin: 0 0 6px; }
.sh-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-tick { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 10px; min-height: 36px;
           border: 1px solid var(--border-soft); border-radius: 8px; background: var(--panel);
           color: inherit; text-decoration: none; font-size: var(--fs-meta); }
.sh-tick:hover { border-color: var(--accent); }
.sh-tick-name { font-weight: 600; color: var(--ink-dim); }
.sh-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.sh-panel h3 { margin: 0 0 2px; font-size: var(--fs-data); font-weight: 700; }
.sh-rows { list-style: none; margin: 0; padding: 0; }
.sh-rows li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border-soft);
              font-size: var(--fs-meta); }
.sh-asset { min-width: 0; flex: 1 1 auto; color: inherit; text-decoration: none; font-weight: 600; overflow: hidden; }
.sh-mid { color: var(--ink-dim); white-space: nowrap; }
.sh-right { min-width: 72px; text-align: end; font-weight: 600; white-space: nowrap; }
