#stageRhythmMount,
#stageMineMount {
    display: block;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
    margin: 14px 0 18px;
    text-align: left;
}

.f365-stage-card,
.f365-stage-card * {
    box-sizing: border-box;
}

.f365-stage-card {
    width: 100%;
    min-width: 0;
    padding: 17px;
    border: 1px solid #dce3d8;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfaf5 20%, #f0f4ec 100%);
    color: #334b42;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.f365-stage-card h2,
.f365-stage-card p {
    margin: 0;
}

.f365-stage-heading {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.f365-stage-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 50%;
    color: #3f7564;
    background: #e7eee4;
    text-decoration: none;
    font: 30px "Songti SC", "Noto Serif CJK SC", serif;
}

.f365-stage-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f365-stage-heading-copy {
    min-width: 0;
}

.f365-stage-card .f365-stage-kicker {
    margin-bottom: 3px;
    color: #6a7668;
    font-size: 10px;
    letter-spacing: .08em;
}

.f365-stage-card h2 {
    color: #315f50;
    font: 500 19px/1.4 "Songti SC", "Noto Serif CJK SC", serif;
    letter-spacing: .01em;
}

.f365-stage-card .f365-stage-sound {
    margin-top: 5px;
    color: #56675c;
    font-size: 12px;
}

.f365-stage-card .f365-stage-action {
    margin: 14px 0 13px;
    padding: 11px 12px;
    border-left: 2px solid #a3b5a0;
    border-radius: 0 7px 7px 0;
    background: rgba(255, 255, 255, .6);
    color: #3f5348;
    font-size: 12px;
    line-height: 1.8;
}

.f365-stage-action span {
    display: block;
    margin-bottom: 3px;
    color: #77816e;
    font-size: 10px;
    letter-spacing: .06em;
}

.f365-stage-audio-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.f365-stage-audio-actions .f365-stage-apply {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 5px 10px;
    border-color: transparent;
    background: transparent;
    color: #6a7668;
}

.f365-stage-card button,
.f365-stage-primary {
    appearance: none;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

.f365-stage-card .f365-stage-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #3f6958;
    background: #3f6958;
    color: #fffdf5;
    text-decoration: none;
}

.f365-stage-card .f365-stage-secondary {
    border-color: #c6d3c3;
    background: #fcfcf7;
    color: #3b6454;
}

.f365-stage-card button:disabled {
    cursor: wait;
    opacity: .58;
}

.f365-stage-card button:focus-visible,
.f365-stage-card a:focus-visible,
.f365-stage-card summary:focus-visible,
.f365-stage-card textarea:focus-visible {
    outline: 2px solid #8eaa91;
    outline-offset: 3px;
}

.f365-stage-card .f365-stage-play-note {
    margin-top: 8px;
    color: #677563;
    font-size: 10px;
    line-height: 1.7;
}

.f365-stage-review {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #dfe5d9;
}

.f365-stage-review summary {
    min-height: 34px;
    color: #486453;
    font-size: 12px;
    cursor: pointer;
}

.f365-stage-feelings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.f365-stage-feelings button {
    padding: 8px 5px;
    border-color: #d5ddce;
    background: #fffdf7;
    color: #566650;
    font-size: 11px;
}

.f365-stage-feelings button[aria-pressed="true"] {
    border-color: #789a78;
    background: #e4ecdd;
    color: #365f45;
}

.f365-stage-note-label {
    display: block;
    margin-bottom: 5px;
    color: #6c7866;
    font-size: 10px;
}

.f365-stage-note {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    padding: 9px 10px;
    border: 1px solid #d0dac9;
    border-radius: 8px;
    background: #fffdf8;
    color: #3f5348;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.7;
    resize: vertical;
}

.f365-stage-note::placeholder {
    color: #7b8474;
}

.f365-stage-card .f365-stage-save {
    width: 100%;
    margin-top: 8px;
    border-color: #cfdbc7;
    background: #edf2e8;
    color: #45623f;
}

.f365-stage-card .f365-stage-status {
    min-height: 0;
    margin: 0;
    color: #496a50;
    font-size: 11px;
}

.f365-stage-status:not(:empty) {
    padding: 9px 0 0;
}

.f365-stage-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 14px;
    margin-top: 8px;
}

.f365-stage-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #4c705d;
    font-size: 11px;
    text-underline-offset: 3px;
}

.f365-stage-card .f365-stage-footnote {
    margin-top: 3px;
    color: #72806a;
    font-size: 9px;
    line-height: 1.7;
}

.f365-stage-card .f365-stage-copy {
    margin: 10px 0 14px;
    color: #5d6f5d;
    font-size: 12px;
}

.f365-stage-empty .f365-stage-primary {
    width: 100%;
    margin-bottom: 9px;
}

@media (max-width: 360px) {
    .f365-stage-card { padding: 14px; }
    .f365-stage-heading { grid-template-columns: 64px minmax(0, 1fr); gap: 11px; }
    .f365-stage-avatar { width: 64px; height: 64px; }
    .f365-stage-card h2 { font-size: 18px; }
}

#pageHome > main:has(#stageRhythmMount:not(:empty)) { justify-content: flex-start; padding-top: 12px; }

.stage-hero-caption {
    margin: 0 0 12px;
    color: #6b7969;
    font-size: 12px;
    letter-spacing: .12em;
}

#pageHome.has-stage-companion .home-hero {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 48px;
    flex-shrink: 0;
}

#pageHome.has-stage-companion main .home-breath {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    animation: none;
}

#pageHome.has-stage-companion #discContainer {
    width: min(55vw, 190px);
    height: auto;
    aspect-ratio: 1;
    flex: 0 0 auto;
    background: transparent;
    box-shadow: none;
}

#discContainer.has-stage-badge::before,
#discContainer.has-stage-badge::after { opacity: 0; }

#stageHeroBadge {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: 50%;
    overflow: hidden;
}

#stageHeroBadge img { display: block; width: 100%; height: 100%; }

#discContainer.has-stage-badge #sutraLineWrap {
    inset: auto -35px;
    top: calc(100% + 12px);
    min-height: 38px;
}

#pageHome #discContainer.has-stage-badge #sutraLine {
    max-width: 100%;
    min-height: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: .08em;
}

#pageHome.is-stage-bgm #sutraLineWrap { visibility: hidden; }

#pageHome.has-stage-companion .home-listen { margin-top: 0; }

#pageHome.has-stage-companion #heroPlayKey {
    width: 48px;
    height: 48px;
    margin-top: 10px;
}

#pageHome.has-stage-companion .hl-misc { margin-top: 6px; }

.stage-hero-mode {
    margin: 0 0 8px;
    color: #75806f;
    font-size: 11px;
    text-align: center;
    letter-spacing: .03em;
}

#pageHome.has-stage-companion #stageRhythmMount { margin: 10px 0 12px; }

#pageHome.has-stage-companion #stageRhythmMount .f365-stage-card {
    padding: 0 4px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#pageHome.has-stage-companion #stageRhythmMount .f365-stage-heading { display: none; }

#pageHome.has-stage-companion #stageRhythmMount .f365-stage-action {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 12px;
}

@media (min-width: 768px) {
    #pageHome.has-stage-companion #discContainer { width: 236px; }
}

@media (max-height: 740px) {
    #pageHome.has-stage-companion #discContainer { width: min(49vw, 154px); }
    #pageHome.has-stage-companion .home-hero { padding-bottom: 42px; }
}

/* 今日首页：本命为底，流日为光。 */
#pageHome.has-daily-badge .f365-title { letter-spacing: .2em; text-indent: .2em; font-size: 16px; }
#pageHome.has-daily-badge .home-hero { padding-bottom: 40px; }
#pageHome.has-daily-badge #discContainer { width: min(52vw, 166px); }
#pageHome.has-daily-badge .stage-hero-caption { margin-bottom: 8px; font-size: 11px; }
#pageHome.has-daily-badge #sutraLine { font-size: 16px; }
.daily-badge-brief { width: 100%; flex-shrink: 0; margin: 2px 0 12px; }
.daily-badge-card { padding: 13px 14px; border: 1px solid #dfdccd; border-radius: 14px; background: rgba(255,253,246,.68); color: #3d5146; }
.daily-badge-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.daily-kicker { color: #956b46; font-size: 10px; letter-spacing: .1em; }
.daily-source { color: #7b8274; font-size: 9px; }
.daily-badge-card h2 { margin: 7px 0 4px; font: 500 17px/1.5 "Songti SC",serif; letter-spacing: .03em; }
.daily-badge-card p { margin: 0; font-size: 11px; line-height: 1.75; }
.daily-evidence > summary { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-top: 7px; color: #7b806e; font-size: 10px; cursor: pointer; list-style: none; }
.daily-evidence > summary::-webkit-details-marker { display: none; }
.daily-evidence[open] > summary span { transform: rotate(45deg); }
.daily-guardian-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 8px 0 12px; }
.daily-guardian { display: flex; flex-direction: column; gap: 5px; padding: 9px; border-radius: 8px; background: #edf0e5; min-width: 0; }
.daily-guardian > span { color: #66735e; font-size: 10px; }
.daily-guardian strong { font-size: 12px; font-weight: 500; }
.daily-guardian strong[data-state="hurt"] { color: #986243; }
.daily-guardian strong[data-state="empowered"] { color: #39735a; }
.daily-guardian select { width: 100%; min-height: 34px; padding: 3px; border: 1px solid #d1d9c9; border-radius: 5px; background: #fcfcf6; color: #56684f; font-family: inherit; font-size: 10px; line-height: 1.5; }
.daily-relations { padding: 3px 0 10px; }
.daily-relations p { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e2e5d8; }
.daily-relations p span { color: #76806c; font-size: 10px; }
.daily-relations p strong { white-space: nowrap; font-size: 10px; font-weight: 500; }
.daily-badge-card .daily-boundary { margin-top: 8px; color: #828775; font-size: 9px; }
.daily-retry, .daily-claim { display: inline-flex; align-items: center; min-height: 36px; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: #60755b; font-size: 10px; cursor: pointer; }
.daily-retry:disabled { opacity: .5; cursor: wait; }
.daily-save-status { display: block; color: #986243; font-size: 10px; }
.stage-listen-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 4px; border-radius: 11px; background: #e9ece1; }
.stage-listen-choice button { min-height: 36px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #7a8371; font-family: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; }
.stage-listen-choice button[aria-pressed="true"] { border-color: #c4cdb6; background: #fffdf5; color: #395e4d; box-shadow: 0 2px 5px #6f826014; }
.stage-listen-choice button:focus-visible, .daily-evidence summary:focus-visible, .daily-guardian select:focus-visible { outline: 2px solid #829975; outline-offset: 3px; }
.stage-play-hint { font-size: 9px; color: #858775; text-align: center; }

/* 2026-11-06 首页聆听取向（器乐 / 诵经）：与阶段卡的 stage-listen-choice 视觉一致，但更轻。
 * 无 home-v2 布局时的回退位置：阶段开关 row 1、首页开关 row 2、标题/播放 row 3。 */
#pageHome.has-daily-badge .home-listen { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) 62px; gap: 5px 8px; align-items: center; }
.home-listen-choice { display: inline-flex; gap: 2px; justify-self: start; padding: 2px; border-radius: 6px; background: #edf1e6; }
.home-listen-choice button { min-height: 25px; padding: 3px 11px; border: 0; border-radius: 5px; background: none; color: #8a947e; font-family: inherit; font-size: 10px; line-height: 1.5; cursor: pointer; }
.home-listen-choice button[aria-pressed="true"] { background: #fffef8; color: #3d634c; box-shadow: 0 1px 4px #3c65351a; }
.home-listen-choice button:focus-visible { outline: 2px solid #9db58d; outline-offset: 3px; }
#pageHome.has-daily-badge .home-listen-choice { grid-column: 1 / -1; grid-row: 2; }
#pageHome.has-daily-badge .stage-hero-mode { grid-column: 1 / -1; grid-row: 4; margin: 3px 0 0; font-size: 9px; }
#pageHome.has-daily-badge .hl-title { grid-column: 1; grid-row: 3; padding: 5px 0; justify-content: flex-start; font-size: 14px; text-align: left; line-height: 1.6; }
#pageHome.has-daily-badge #heroPlayKey { grid-column: 2; grid-row: 3; margin: 0 auto; width: 44px; height: 44px; }
#pageHome.has-daily-badge .hl-misc { grid-column: 1; grid-row: 5; margin: 0; padding: 4px 0; font-size: 10px; text-align: left; letter-spacing: .02em; }
#pageHome.has-daily-badge .stage-play-hint { grid-column: 2; grid-row: 5; }
#pageHome.has-daily-badge #stageRhythmMount { margin-top: 18px; }
#pageHome.has-daily-badge #stageRhythmMount .f365-stage-audio-actions [data-stage-action="chant"],
#pageHome.has-daily-badge #stageRhythmMount .f365-stage-audio-actions [data-stage-action="play"] { display: none; }.f365-draft-help { color: #7d826f; font-size: 9px !important; margin-top: 7px !important; }

/* 手机纵向节奏：收紧徽章与提醒之间的空隙，让「今天的一小步」进入首屏。 */
@media (max-width: 899px) {
    #pageHome.has-daily-badge > main { padding-top: 0; }
    #pageHome.has-daily-badge .home-hero { padding-bottom: 26px; }
    #pageHome.has-daily-badge .daily-badge-brief { margin: 0 0 10px; }
    #pageHome.has-daily-badge #stageRhythmMount { margin-top: 12px; }
}
.f365-past-drafts { margin-top: 10px; padding-top: 9px; border-top: 1px solid #dfe5d9; }
.f365-past-drafts summary { min-height: 34px; color: #61735c; font-size: 11px; cursor: pointer; }
.f365-past-drafts > p { color: #8a8b7b; font-size: 9px; }
.f365-past-drafts article { margin-top: 10px; padding: 8px; background: #f9faf2; border-radius: 7px; }
.f365-past-drafts small { color: #85907b; font-size: 9px; }
.f365-past-drafts blockquote { margin: 5px 0; color: #596d51; font-size: 11px; white-space: pre-wrap; }
@media (min-width: 768px) {
    #pageHome.has-daily-badge #discContainer { width: 210px; }
    #pageHome.has-daily-badge .daily-badge-card { padding: 15px 17px; }
}
@media (max-height: 740px) {
    #pageHome.has-daily-badge #discContainer { width: min(46vw, 140px); }
    #pageHome.has-daily-badge .daily-badge-card { padding: 9px 12px; }
    #pageHome.has-daily-badge .daily-badge-card h2 { font-size: 15px; }
}

#pageHome .daily-badge-card > header { padding: 0; }
#pageHome.has-daily-badge .daily-badge-card { padding-top: 10px; padding-bottom: 10px; }
#pageHome.has-daily-badge .daily-badge-card h2 { margin-top: 5px; margin-bottom: 2px; }
#pageHome.has-daily-badge .daily-evidence > summary { margin-top: 3px; }
.daily-badge-identity { position: absolute; top: calc(100% + 14px); left: -42px; right: -42px; margin: 0; color: #7a856e; font-size: 10px; line-height: 1.8; text-align: center; letter-spacing: .06em; pointer-events: none; }
#pageHome.has-daily-badge:not(.is-stage-chant-active) #sutraLineWrap { visibility: hidden; }
#pageHome.has-daily-badge.is-stage-chant-active .daily-badge-identity { visibility: hidden; }

/* 桌面双栏由 fate365-home.css 统一负责（≥1000px 网格：hero/brief/listen/stage/rhythm/ask）。
 * 此处只补 900–999px 的中间宽度：避免窄桌面退回单栏，也避免与主网格争夺 grid-area。 */
@media (min-width: 900px) and (max-width: 999px) {
    #pageHome.has-daily-badge > main {
        display: grid;
        grid-template-columns: minmax(240px, 300px) minmax(320px, 420px);
        grid-template-areas:
            "hero brief"
            "hero listen"
            "hero stage"
            "rhythm ask";
        align-content: start;
        justify-content: center;
        column-gap: 24px;
        row-gap: 14px;
    }
    #pageHome.has-daily-badge > main > .home-hero { grid-area: hero; align-self: start; }
    #pageHome.has-daily-badge > main > #dailyBadgeBrief { grid-area: brief; }
    #pageHome.has-daily-badge > main > .home-listen { grid-area: listen; }
    #pageHome.has-daily-badge > main > #stageRhythmMount { grid-area: stage; }
    #pageHome.has-daily-badge > main > .home-rhythm-line { grid-area: rhythm; }
    #pageHome.has-daily-badge > main > .home-ask-link { grid-area: ask; align-self: center; }
}

/* 手机纵向节奏：收紧徽章与提醒之间的空隙，让「今天的一小步」进入首屏。 */
@media (max-width: 899px) {
    #pageHome.has-daily-badge > main { padding-top: 0; }
    #pageHome.has-daily-badge .home-hero { padding-bottom: 18px; }
    #pageHome.has-daily-badge .daily-badge-brief { margin: 0 0 8px; }
    #pageHome.has-daily-badge .home-listen { row-gap: 3px; }
    #pageHome.has-daily-badge #stageRhythmMount { margin-top: 10px; }
}

