/* Hub-owned, synthetic module previews. All static styles show the final scene. */
.hub-demo {
    --demo-duration: 8s;
    --hd-ink: #232723;
    --hd-muted: #838982;
    --hd-border: #e3e7e0;
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    container-type: inline-size;
    color: var(--hd-ink);
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
    user-select: none;
    isolation: isolate;
}
.hub-demo *, .hub-demo *::before, .hub-demo *::after { box-sizing: border-box; }
.hub-demo p { margin: 0; }
.hub-demo strong, .hub-demo b { font-weight: 650; }
.hd-app { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--hd-border); background: #fff; color: var(--hd-ink); box-shadow: 0 16px 35px rgb(28 35 28 / 9%); padding: 18px 20px; }
.hd-app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; min-height: 24px; }
.hd-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.hd-mark { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; border-radius: 5px; }
.hd-sample { color: var(--hd-muted); font-size: 10px; white-space: nowrap; }
.hd-eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: .06em; line-height: 1.5; color: var(--hd-muted); }
.hd-muted { font-size: 11px; color: var(--hd-muted); }
.hd-timeline { --hd-animation: hdTimeline; position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.hub-demo:is([data-demo-state="playing"], [data-demo-state="paused"], [data-demo-state="complete"]) .hd-motion {
    animation: var(--hd-animation) var(--demo-duration, 8s) linear 1 both;
}
.hub-demo[data-demo-state="paused"] .hd-motion { animation-play-state: paused; }
.hd-reveal-early { --hd-animation: hdRevealEarly; }
.hd-reveal-mid { --hd-animation: hdRevealMid; }
.hd-reveal-late { --hd-animation: hdRevealLate; }
.hd-tap { position: absolute; border: 2px solid currentColor; width: 26px; height: 26px; border-radius: 50%; opacity: 0; }

/* Moa Ledger: local queue storage, recorded ledger, then calendar analysis. */
.hd-notion_automate { --demo-duration: 12s; }
.hd-moa-app {
    --hd-ink: #3d321e; --hd-muted: #8b7e65; --hd-border: #e8dfca;
    --moa-bg: #faf7ee; --moa-surface: #fffdf7; --moa-soft: #f4eedc;
    --moa-accent: #d8b745; --moa-selected: #f7eac0; --moa-deep: #5b461b;
    --moa-income: #4d957a; --moa-expense: #c77c59;
    display: flex; flex-direction: column; background: var(--moa-bg); padding: 14px;
}
.hd-moa-app .hd-app-bar { flex: 0 0 24px; margin-bottom: 8px; }
.hd-moa-nav { display: flex; flex: 0 0 22px; gap: 4px; margin-bottom: 8px; font-size: 10px; }
.hd-moa-nav > span { padding: 3px 12px; border-radius: 5px; color: var(--hd-muted); }
.hd-moa-input-tab { --hd-animation: hdMoaInputTab; }
.hd-moa-nav > .hd-moa-analysis-tab { --hd-animation: hdMoaAnalysisTab; background: var(--moa-selected); color: var(--moa-deep); font-weight: 650; }
.hd-moa-scenes { position: relative; flex: 1; min-height: 0; }
.hd-moa-input-scene, .hd-moa-analysis-scene { position: absolute; inset: 0; display: flex; flex-direction: column; }
.hd-moa-input-scene { --hd-animation: hdMoaInputScene; opacity: 0; visibility: hidden; }
.hd-moa-analysis-scene { --hd-animation: hdMoaAnalysisScene; }
.hd-moa-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; margin-bottom: 6px; }
.hd-moa-heading > strong { font-size: 14px; letter-spacing: -.04em; }
.hd-moa-heading > span { font-size: 8px; color: var(--hd-muted); white-space: nowrap; }
.hd-moa-quick { display: flex; align-items: center; gap: 7px; background: var(--moa-surface); border: 1px solid var(--moa-accent); border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; font-size: 10px; min-width: 0; }
.hd-moa-quick > span { font-size: 8px; color: var(--hd-muted); flex-shrink: 0; }
.hd-moa-quick > b { min-width: 0; overflow: hidden; white-space: nowrap; }
.hd-moa-quick > span:last-child { margin-left: auto; color: var(--moa-deep); }
.hd-moa-fill { --hd-animation: hdMoaFill; }
.hd-moa-panel { border: 1px solid var(--hd-border); border-radius: 7px; background: var(--moa-surface); min-width: 0; min-height: 0; padding: 8px; }
.hd-moa-input-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.hd-moa-types { display: flex; justify-content: space-around; background: var(--moa-soft); border-radius: 4px; padding: 2px; margin-bottom: 7px; font-size: 8px; color: var(--hd-muted); white-space: nowrap; }
.hd-moa-types > span { padding: 3px 5px; }
.hd-moa-selected { background: var(--moa-selected); color: var(--moa-deep); border-radius: 4px; font-weight: 650; }
.hd-moa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hd-moa-field { min-width: 0; }
.hd-moa-field > span { display: block; color: var(--hd-muted); font-size: 8px; }
.hd-moa-field b { display: block; font-size: 10px; border: 1px solid var(--hd-border); border-radius: 4px; padding: 3px 6px; font-weight: 500; white-space: nowrap; }
.hd-moa-save { position: relative; background: var(--moa-accent); color: #34280c; border-radius: 4px; padding: 4px; margin-top: 8px; text-align: center; font-size: 10px; font-weight: 650; }
.hd-moa-save-tap { --hd-animation: hdMoaSaveTap; right: 16%; top: -3px; }
.hd-moa-pending { --hd-animation: hdMoaPending; margin-top: 6px; font-size: 9px; color: var(--moa-deep); text-align: center; }
.hd-moa-note { text-align: center; color: var(--hd-muted); font-size: 8px; margin-top: 2px !important; }
.hd-moa-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; margin-bottom: 5px; white-space: nowrap; }
.hd-moa-panel-title > span { color: var(--hd-muted); font-size: 8px; }
.hd-moa-ledger-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) 60px; gap: 5px; border-bottom: 1px solid var(--hd-border); padding: 7px 2px; font-size: 9px; }
.hd-moa-ledger-row > :last-child { text-align: right; white-space: nowrap; }
.hd-moa-table-head { color: var(--hd-muted); background: var(--moa-soft); padding-top: 4px; padding-bottom: 4px; }
.hd-moa-ledger-note { display: block; font-size: 8px; color: var(--hd-muted); margin-top: 6px; }
.hd-moa-analysis-filter { display: flex; gap: 5px; font-size: 8px; margin-bottom: 7px; }
.hd-moa-analysis-filter > span { border: 1px solid var(--hd-border); border-radius: 4px; padding: 3px 7px; background: var(--moa-surface); white-space: nowrap; }
.hd-moa-analysis-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: minmax(0, 1fr) 52px; gap: 7px; }
.hd-moa-chart-panel, .hd-moa-calendar-panel { display: flex; flex-direction: column; }
.hd-moa-units, .hd-moa-metrics { display: flex; gap: 3px; font-size: 8px; margin-bottom: 4px; color: var(--hd-muted); }
.hd-moa-units > span, .hd-moa-metrics > span { padding: 1px 6px; border-radius: 3px; }
.hd-moa-legend { display: flex; gap: 8px; font-size: 7px; color: var(--hd-muted); }
.hd-moa-legend > span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 1px; background: var(--moa-income); }
.hd-moa-legend > span:nth-child(2)::before { background: var(--moa-expense); }
.hd-moa-legend > span:last-child::before { background: var(--moa-accent); }
.hd-moa-chart { display: block; width: 100%; flex: 1; min-height: 0; margin-top: 3px; }
.hd-moa-grid { fill: none; stroke: var(--hd-border); stroke-dasharray: 2 3; }
.hd-moa-bars { --hd-animation: hdMoaBars; transform-origin: 0 87px; }
.hd-moa-income { fill: var(--moa-income); }
.hd-moa-expense { fill: var(--moa-expense); }
.hd-moa-net { --hd-animation: hdMoaNet; fill: none; stroke: var(--moa-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hd-moa-chart text { fill: var(--hd-muted); font-size: 7px; font-family: inherit; }
.hd-moa-chart-note, .hd-moa-calendar-note { display: block; color: var(--hd-muted); font-size: 7px; margin-top: 2px; }
.hd-moa-calendar { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: 8px; text-align: center; }
.hd-moa-weekday { color: var(--hd-muted); font-size: 7px; }
.hd-moa-day { position: relative; display: grid; place-items: center; border-radius: 3px; background: var(--moa-soft); }
.hd-moa-day-spent { background: var(--moa-selected); }
.hd-moa-day-selected { --hd-animation: hdMoaDay; background: var(--moa-accent); color: #34280c; font-weight: 700; }
.hd-moa-calendar-tap { --hd-animation: hdMoaCalendarTap; width: 19px; height: 19px; left: calc(50% - 9px); top: calc(50% - 9px); color: var(--moa-deep); }
.hd-moa-detail { --hd-animation: hdMoaDetail; padding: 6px 8px; }
.hd-moa-detail .hd-moa-panel-title { font-size: 9px; margin-bottom: 2px; }
.hd-moa-detail .hd-moa-panel-title > span { color: var(--moa-deep); font-weight: 650; }
.hd-moa-detail > div:not(.hd-moa-panel-title) { display: flex; justify-content: space-between; gap: 5px; font-size: 8px; color: var(--hd-muted); }
.hd-moa-detail b { color: var(--hd-ink); white-space: nowrap; }
.hd-moa-category { padding: 6px 8px; }
.hd-moa-category > strong { font-size: 9px; display: block; margin-bottom: 3px; }
.hd-moa-category > div { display: flex; align-items: center; gap: 5px; font-size: 8px; color: var(--hd-muted); }
.hd-moa-category i { height: 4px; width: 42%; background: var(--moa-accent); border-radius: 3px; }
.hd-moa-category > div:last-child i { width: 28%; background: var(--moa-income); }
.hd-moa-category b { margin-left: auto; font-weight: 500; }
html[data-hub-theme="dark"] .hd-moa-app {
    --hd-ink: #f1e9d6; --hd-muted: #b3a58a; --hd-border: #4c402a;
    --moa-bg: #231f16; --moa-surface: #2d281d; --moa-soft: #39301f;
    --moa-selected: #53431e; --moa-deep: #eed180;
}

/* ENGLearn uses the current transcript/card and mobile chip/bottom-sheet patterns. */
.hd-eng-app { --hd-ink: #27384e; --hd-muted: #8b97aa; --hd-border: #e0e7f1; background: #f9fbfe; }
.hd-eng-player { padding: 9px 13px; border: 1px solid #e1e7f2; background: #fff; border-radius: 7px; margin-bottom: 12px; }
.hd-eng-program { color: #7d8aa0; font-size: 10px; }
.hd-eng-audio { display: flex; align-items: center; gap: 11px; margin-top: 7px; color: #7087b7; font-size: 10px; }
.hd-eng-audio > span:first-child { color: #3e72e8; font-size: 14px; font-weight: 700; }
.hd-eng-audio > div { height: 4px; flex: 1; background: #e6edf9; border-radius: 9px; overflow: hidden; }
.hd-eng-playhead { --hd-animation: hdEngPlayhead; display: block; width: 42%; height: 100%; background: #4c7ef1; border-radius: 9px; transform-origin: left; }
.hd-eng-columns { display: grid; grid-template-columns: 3fr 2fr; gap: 15px; }
.hd-eng-transcript { min-width: 0; padding: 9px 0; }
.hd-eng-transcript > p { padding: 10px 8px; color: #9aa5b6; font-size: 11px; }
.hd-eng-transcript > .hd-eng-sentence, .hd-eng-phone-transcript > .hd-eng-sentence { --hd-animation: hdEngSentence; border-radius: 5px; color: #3261c5; background: #eaf0ff; border-left: 3px solid #4c7ef1; font-weight: 600; }
.hd-eng-expression { background: #fff; padding: 13px; border: 1px solid #dce5f8; border-radius: 9px; margin-top: 7px; }
.hd-eng-tag { display: inline-block; color: #5274c0; background: #edf2ff; padding: 2px 6px; font-size: 9px; border-radius: 4px; margin-bottom: 8px; }
.hd-eng-expression > strong, .hd-eng-sheet > strong { display: block; color: #263a5b; font-size: 18px; letter-spacing: -.035em; line-height: 1.3; }
.hd-eng-expression > p, .hd-eng-sheet > p { color: #71809a; font-size: 11px; margin-top: 4px; }
.hd-eng-actions { display: flex; gap: 6px; margin-top: 15px; font-size: 10px; }
.hd-eng-actions > span { border: 1px solid #e5eaf2; border-radius: 18px; padding: 4px 9px; color: #8996aa; white-space: nowrap; }
.hd-eng-actions > .hd-eng-replay { color: #4874d9; background: #f0f5ff; border-color: #d9e5ff; }
.hd-eng-prev-next { display: flex; justify-content: space-between; font-size: 9px; color: #9aa7bc; padding-top: 13px; }
.hd-eng-time { color: #6482b9; font-size: 9px; padding-left: 8px; }
.hd-eng-phone { display: none; position: relative; margin: -2px auto 0; width: 210px; max-width: 100%; height: calc(100% - 34px); max-height: 282px; overflow: hidden; border: 4px solid #344457; border-radius: 23px; background: #fff; box-shadow: 0 9px 17px #304e7820; }
.hd-eng-phone-bar { width: 57px; height: 4px; background: #354559; border-radius: 5px; margin: 7px auto 12px; }
.hd-eng-phone-header { display: flex; justify-content: space-between; align-items: center; padding: 0 11px; font-size: 9px; }
.hd-eng-phone-header > span { color: #8c9bb1; font-size: 8px; }
.hd-eng-phone-transcript { padding: 14px 10px; }
.hd-eng-phone-transcript > p { padding: 8px 6px; color: #9ba8bb; font-size: 10px; }
.hd-eng-chip { --hd-animation: hdEngChip; position: absolute; bottom: 28px; left: 6px; right: 6px; display: flex; align-items: center; justify-content: space-between; gap: 3px; min-height: 35px; padding: 6px; background: #fff; color: #4c75c7; border: 1.5px solid #779def; border-radius: 999px; box-shadow: 0 3px 8px #416cce20; font-size: 9px; opacity: 0; }
.hd-eng-chip-icon { flex: 0 0 auto; font-size: 11px; }
.hd-eng-chip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.hd-eng-chip-text > strong { color: #3c6dcf; font-size: 9.5px; font-weight: 750; }
.hd-eng-chip-text > span { color: #7b8daa; font-size: 9px; }
.hd-eng-chip-action { flex: 0 0 auto; font-size: 9px; font-weight: 650; padding: 2px 4px; border-radius: 999px; background: #eef3ff; }
.hd-eng-tap { --hd-animation: hdEngTap; right: 2px; top: 3px; }
.hd-eng-sheet { --hd-animation: hdEngSheet; position: absolute; inset: auto 0 0; height: 175px; background: #fff; border-top: 1px solid #e4eaf5; border-radius: 17px 17px 0 0; box-shadow: 0 -7px 18px #31529110; padding: 7px 12px 11px; }
.hd-eng-handle { margin: 0 auto 10px; border-radius: 5px; width: 29px; height: 3px; background: #dae1ec; }
.hd-eng-sheet-header { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.hd-eng-sheet-header > span { color: #8fa0ba; font-size: 8px; white-space: nowrap; }
.hd-eng-sheet-header > span:last-child { margin-left: auto; }
.hd-eng-sheet .hd-eng-tag { margin-bottom: 4px; font-size: 8px; }
.hd-eng-sheet > strong { font-size: 16px; }
.hd-eng-sheet > p { font-size: 10px; }
.hd-eng-sheet .hd-eng-actions { margin-top: 10px; gap: 3px; flex-wrap: nowrap; align-items: center; font-size: 9.5px; }
.hd-eng-sheet .hd-eng-actions > span { padding: 4px 5px; }
.hd-eng-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 3px; margin-left: auto; }
.hd-eng-nav > span { display: inline-grid; place-items: center; width: 20px; height: 24px; border: 1px solid #e5eaf2; border-radius: 18px; color: #8c9bb1; font-size: 9px; }

/* AI Usage: hover summary, then daily usage. Values are intentionally synthetic. */
.hd-usage-app { --hd-ink: #25344d; --hd-muted: #92a0b6; --hd-border: #e1e7f2; background: #fafbff; }
.hd-usage-app .hd-app-bar { margin-bottom: 13px; }
.hd-usage-heading { display: flex; justify-content: space-between; align-items: center; }
.hd-usage-heading > div > strong { display: block; font-size: 16px; letter-spacing: -.035em; margin-top: 2px; }
.hd-usage-periods { display: flex; background: #f1f0f8; border-radius: 6px; gap: 3px; padding: 3px; font-size: 10px; }
.hd-usage-periods > span { padding: 3px 9px; color: #9b92b6; }
.hd-usage-periods > .hd-usage-selected { background: #fff; border-radius: 4px; color: #7663ca; box-shadow: 0 1px 3px #51478315; }
.hd-usage-chart-wrap { position: relative; margin-top: 14px; padding: 10px 12px 0; border: 1px solid #e4e7f1; border-radius: 8px; background: #fff; }
.hd-usage-chart-label { display: flex; justify-content: space-between; color: #9cabc2; font-size: 9px; margin-bottom: 2px; }
.hd-usage-chart { width: 100%; height: 100px; display: block; overflow: visible; }
.hd-usage-grid { stroke: #e7eaf4; stroke-dasharray: 3 4; fill: none; }
.hd-usage-area { fill: #eeebfd; }
.hd-usage-line { fill: none; stroke: #806ae0; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hd-usage-chart text { fill: #9aa9bf; font-size: 9px; font-family: inherit; }
.hd-usage-point { --hd-animation: hdUsagePoint; fill: #fff; stroke: #806ae0; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hd-usage-tooltip { position: absolute; top: 22px; right: 15px; width: 160px; background: #fff; border: 1px solid #d9d3f1; border-radius: 7px; box-shadow: 0 6px 14px #30245b15; padding: 9px 10px; font-size: 9px; opacity: 0; }
.hd-usage-tooltip-motion { --hd-animation: hdUsageTooltip; }
.hd-usage-tooltip > div { display: flex; justify-content: space-between; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid #f0edf7; color: #6e608f; font-size: 8px; }
.hd-usage-tooltip > span { display: flex; align-items: center; gap: 5px; padding-top: 6px; }
.hd-usage-tooltip > span > b { margin-left: auto; }
.hd-usage-tooltip i { width: 5px; height: 5px; border-radius: 50%; background: #806ae0; }
.hd-usage-tooltip > span:last-child > i { background: #52aa9f; }
.hd-usage-detail { margin-top: 10px; }
.hd-usage-detail-heading { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 5px; }
.hd-usage-detail-heading > span { font-size: 9px; color: #a0abc1; }
.hd-usage-provider { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 2px 0; }
.hd-usage-provider > strong { flex: 0 0 68px; font-weight: 500; }
.hd-usage-provider > span:last-child { flex: 0 0 42px; text-align: right; color: #7e8aa1; font-variant-numeric: tabular-nums; }
.hd-usage-provider-icon { display: inline-grid; place-items: center; height: 17px; width: 17px; border-radius: 5px; background: #eae6fa; color: #8a71cd; font-size: 10px; }
.hd-usage-claude { color: #379383; background: #e4f2ee; }
.hd-usage-meter { flex: 1; height: 4px; background: #efedf7; border-radius: 10px; }
.hd-usage-meter > i { display: block; height: 100%; width: 62.5%; background: #8c78e5; border-radius: 10px; }
.hd-usage-provider:last-child .hd-usage-meter > i { width: 37.5%; background: #64b6aa; }

/* NEAR OUTPOST: public website identity, address copy and community entrances. */
.hd-near-app { --hd-ink: #f3efef; --hd-muted: #9c9299; --hd-border: #36232c; background: #0b080d; display: flex; flex-direction: column; padding: 13px 16px; }
.hd-near-app .hd-app-bar { margin-bottom: 8px; }
.hd-near-app .hd-brand { font-family: Orbitron, sans-serif; font-size: 10px; letter-spacing: .01em; }
.hd-near-app .hd-sample { font-size: 9px; }
.hd-near-nav { display: flex; gap: 16px; justify-content: center; padding-bottom: 8px; border-bottom: 1px solid #ffffff12; font-size: 7px; font-weight: 650; letter-spacing: .08em; color: #99929c; }
.hd-near-hero { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; background: radial-gradient(ellipse at 50% 55%, #9f3c221f, transparent 65%); }
.hd-near-domain { position: relative; color: #8e7c86; font-size: 7px; letter-spacing: .05em; }
.hd-near-title { --hd-animation: hdNearTitle; position: relative; font-family: Orbitron, sans-serif; font-size: clamp(27px, 7.8cqi, 48px); font-weight: 900; line-height: .94; letter-spacing: -.055em; }
.hub-demo .hd-near-title > strong { display: block; font-weight: 900; background: linear-gradient(#fafafa, #7c7b87); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hd-near-title > strong:last-child { background-image: linear-gradient(105deg, #ff7800 12%, #fb413e 50%, #ae50ed 95%); margin-top: 4px; }
.hd-near-hero > p { position: relative; color: #beb2bc; font-size: 9px; line-height: 1.5; }
.hd-near-actions { position: relative; display: flex; gap: 8px; width: min(88%, 328px); font-size: 9px; }
.hd-near-copy { position: relative; flex: 1.65; min-width: 0; display: grid; padding: 8px 6px; background: #f5f2f2; color: #1d151a; border-radius: 2px; font-weight: 650; }
.hd-near-copy > .hd-near-ip, .hd-near-copy > .hd-near-copied { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-near-ip { --hd-animation: hdNearIp; }
.hd-near-copied { --hd-animation: hdNearCopied; opacity: 0; color: #357848; }
.hd-near-discord { flex: 1; border: 1px solid #ffffff30; border-radius: 2px; padding: 8px 4px; font-family: Orbitron, sans-serif; font-size: 8px; }
.hd-near-tap { --hd-animation: hdNearTap; right: 12%; top: 3px; color: #ff843d; }
.hd-near-guide { position: relative; font-size: 7px; letter-spacing: .12em; color: #a69ca4; }
.hd-near-guide > span { padding-left: 6px; color: #ef9869; }
.hd-near-scene { position: absolute; inset: 0; overflow: hidden; opacity: .16; mask-image: linear-gradient(transparent 10%, #000 65%, transparent); }
.hd-near-scene > i { position: absolute; bottom: 15%; width: 16%; height: 56%; background: repeating-linear-gradient(0deg, transparent 0 11px, #ba673239 11px 12px), repeating-linear-gradient(90deg, #342129 0 11px, #ba673239 11px 12px); border-top: 6px solid #724132; }
.hd-near-scene > i:nth-child(1) { left: 0; height: 37%; }
.hd-near-scene > i:nth-child(2) { left: 15%; height: 61%; width: 9%; }
.hd-near-scene > i:nth-child(3) { left: 42%; height: 34%; width: 19%; }
.hd-near-scene > i:nth-child(4) { right: 16%; width: 10%; height: 66%; }
.hd-near-scene > i:nth-child(5) { right: 0; height: 44%; }
.hd-near-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 5px; }
.hd-near-features > div { padding: 7px 9px; border: 1px solid #ffffff20; background: #ffffff03; border-radius: 3px; }
.hd-near-features > div > span { display: flex; justify-content: space-between; font-size: 7px; color: #847983; }
.hd-near-features strong { display: block; margin: 3px 0; font-size: 8px; letter-spacing: .02em; line-height: 1.4; }
.hd-near-features small { display: block; font-size: 8px; color: #9d939d; }
.hd-near-records { --hd-animation: hdNearRecords; --hd-near-accent: #67cbe4; }
.hd-near-economy { --hd-animation: hdNearEconomy; --hd-near-accent: #73d5ac; }
.hd-near-wrapped { --hd-animation: hdNearWrapped; --hd-near-accent: #c780ed; }
.hd-near-features strong { color: var(--hd-near-accent); }

.hd-default-app { background: #f7f8f2; }
.hd-default-content { display: grid; align-content: center; height: calc(100% - 45px); gap: 10px; max-width: 85%; }
.hd-default-icon { font-size: 54px; line-height: 1; color: #919e7c; }
.hd-default-content > strong { font-size: 26px; letter-spacing: -.045em; }
.hd-default-content > p { color: #7a8672; font-size: 12px; }

@keyframes hdNearTitle { 0%, 4% { opacity: 0; transform: translateY(5px); } 14%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdNearIp { 0%, 29% { opacity: 1; } 33%, 52% { opacity: 0; } 57%, 100% { opacity: 1; } }
@keyframes hdNearCopied { 0%, 29% { opacity: 0; } 33%, 52% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes hdNearTap { 0%, 23% { opacity: 0; transform: scale(.5); } 27% { opacity: .8; transform: scale(.8); } 32%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes hdNearRecords { 0%, 44%, 64%, 100% { border-color: #ffffff20; background: #ffffff03; } 49%, 59% { border-color: #67cbe480; background: #67cbe411; } }
@keyframes hdNearEconomy { 0%, 63%, 82%, 100% { border-color: #ffffff20; background: #ffffff03; } 68%, 77% { border-color: #73d5ac80; background: #73d5ac11; } }
@keyframes hdNearWrapped { 0%, 81%, 100% { border-color: #ffffff20; background: #ffffff03; } 86%, 96% { border-color: #c780ed80; background: #c780ed11; } }
@keyframes hdTimeline { from { transform: translateX(0); } to { transform: translateX(1px); } }
@keyframes hdRevealEarly { 0%, 12% { opacity: 0; transform: translateY(6px); } 24%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdRevealMid { 0%, 36% { opacity: 0; transform: translateY(7px); } 49%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdRevealLate { 0%, 64% { opacity: 0; transform: translateY(8px); } 77%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdMoaInputScene { 0%, 42% { opacity: 1; visibility: visible; transform: translateY(0); } 45%, 100% { opacity: 0; visibility: hidden; transform: translateY(-5px); } }
@keyframes hdMoaAnalysisScene { 0%, 43% { opacity: 0; visibility: hidden; transform: translateY(6px); } 47%, 100% { opacity: 1; visibility: visible; transform: translateY(0); } }
@keyframes hdMoaInputTab { 0%, 43% { background: var(--moa-selected); color: var(--moa-deep); } 47%, 100% { background: transparent; color: var(--hd-muted); } }
@keyframes hdMoaAnalysisTab { 0%, 43% { background: transparent; color: var(--hd-muted); } 47%, 100% { background: var(--moa-selected); color: var(--moa-deep); } }
@keyframes hdMoaFill { 0%, 6% { opacity: 0; transform: translateY(3px); } 14%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdMoaSaveTap { 0%, 21% { opacity: 0; transform: scale(.5); } 25% { opacity: .65; transform: scale(.8); } 31%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes hdMoaPending { 0%, 27% { opacity: 0; transform: translateY(4px); } 32%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdMoaBars { 0%, 47% { transform: scaleY(.1); } 63%, 100% { transform: scaleY(1); } }
@keyframes hdMoaNet { 0%, 49% { stroke-dashoffset: 1; } 66%, 100% { stroke-dashoffset: 0; } }
@keyframes hdMoaDay { 0%, 67% { background: var(--moa-soft); color: var(--hd-ink); } 72%, 100% { background: var(--moa-accent); color: #34280c; } }
@keyframes hdMoaCalendarTap { 0%, 65% { opacity: 0; transform: scale(.5); } 69% { opacity: .7; transform: scale(.8); } 75%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes hdMoaDetail { 0%, 70% { opacity: 0; transform: translateY(5px); } 79%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hdEngSentence { 0%, 13% { opacity: .35; } 25%, 67% { opacity: 1; } 71% { opacity: .65; } 78%, 100% { opacity: 1; } }
@keyframes hdEngPlayhead { 0% { transform: scaleX(.7); } 64% { transform: scaleX(1.25); } 65% { transform: scaleX(.7); } 100% { transform: scaleX(1); } }
@keyframes hdEngChip { 0%, 16% { opacity: 0; transform: translateY(16px); } 27%, 43% { opacity: 1; transform: translateY(0); } 49%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes hdEngTap { 0%, 35% { opacity: 0; transform: scale(.45); } 39% { opacity: .6; transform: scale(.7); } 45%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes hdEngSheet { 0%, 43% { transform: translateY(105%); } 55%, 100% { transform: translateY(0); } }
@keyframes hdUsagePoint { 0%, 21% { opacity: 0; transform: scale(.6); } 30%, 61% { opacity: 1; transform: scale(1); } 69%, 100% { opacity: 0; transform: scale(1); } }
@keyframes hdUsageTooltip { 0%, 25% { opacity: 0; transform: translateY(5px); } 34%, 60% { opacity: 1; transform: translateY(0); } 68%, 100% { opacity: 0; transform: translateY(0); } }

@container (max-width: 420px) {
    .hd-app { padding: 15px 14px; }
    .hd-app-bar { margin-bottom: 12px; }
    .hd-brand { font-size: 11px; gap: 7px; }
    .hd-sample { font-size: 9px; }
    .hd-map-app .hd-brand { font-size: 9px; }
    .hd-moa-app { padding: 10px; }
    .hd-moa-heading > strong { font-size: 12px; }
    .hd-moa-heading > span { font-size: 7px; }
    .hd-moa-quick { gap: 4px; font-size: 8px; padding: 5px; margin-bottom: 6px; }
    .hd-moa-quick > span { font-size: 7px; }
    .hd-moa-input-grid { gap: 5px; grid-template-columns: 1fr 1.05fr; }
    .hd-moa-panel { padding: 6px; }
    .hd-moa-panel-title { font-size: 9px; gap: 3px; }
    .hd-moa-panel-title > span { font-size: 7px; }
    .hd-moa-types > span { padding: 2px; }
    .hd-moa-field b { font-size: 8px; padding: 2px 3px; }
    .hd-moa-ledger-row { grid-template-columns: 28px minmax(0, 1fr) 46px; font-size: 8px; gap: 3px; padding: 4px 0; }
    .hd-moa-pending { font-size: 8px; margin-top: 4px; }
    .hd-moa-note, .hd-moa-ledger-note { font-size: 7px; }
    .hd-moa-analysis-grid { gap: 5px; grid-template-columns: 1.05fr 1fr; grid-template-rows: minmax(0, 1fr) 49px; }
    .hd-moa-analysis-filter { gap: 3px; font-size: 7px; margin-bottom: 5px; }
    .hd-moa-analysis-filter > span { padding: 3px 4px; }
    .hd-moa-units > span, .hd-moa-metrics > span { padding: 1px 4px; font-size: 7px; }
    .hd-moa-calendar { font-size: 7px; gap: 1px; }
    .hd-moa-detail > div:not(.hd-moa-panel-title) { font-size: 7px; }
    .hd-eng-app { padding-bottom: 0; }
    .hd-eng-app .hd-app-bar { margin-bottom: 9px; }
    .hd-eng-desktop { display: none; }
    .hd-eng-phone { display: block; }
    .hd-usage-chart { height: 64px; }
    .hd-usage-heading > div > strong { font-size: 14px; }
    .hd-usage-chart-wrap { margin-top: 10px; }
    .hd-usage-tooltip { right: 10px; width: 145px; }
    .hd-usage-detail { margin-top: 6px; }
    .hd-usage-provider > strong { flex-basis: 61px; }
    .hd-near-app .hd-brand { font-size: 8px; gap: 6px; }
    .hd-near-app .hd-sample { font-size: 8px; }
    .hd-near-nav { gap: 9px; font-size: 6px; }
    .hd-near-hero { gap: 4px; }
    .hd-near-hero > p { font-size: 8px; line-height: 1.5; }
    .hd-near-actions { width: 100%; gap: 5px; font-size: 8px; }
    .hd-near-copy { padding: 7px 5px; }
    .hd-near-discord { font-size: 7px; padding: 7px 3px; }
    .hd-near-features { gap: 5px; }
    .hd-near-features > div { padding: 5px; }
    .hd-near-features strong { font-size: 7px; overflow-wrap: anywhere; }
    .hd-near-features small { font-size: 7px; line-height: 1.5; }
}

@container (max-width: 260px) {
    .hd-moa-ledger-row { grid-template-columns: 22px minmax(0, 1fr) 39px; gap: 3px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-demo:is([data-demo-state="playing"], [data-demo-state="paused"], [data-demo-state="complete"]) .hd-motion { animation: none !important; }
}
