/* The primary workspaces share one quiet visual and navigation rhythm. */
.huhu-signal-actions { position: relative; }
.huhu-account-menu[hidden], .cosmo-person-editor[hidden] { display: none !important; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-editor[hidden] { display: none !important; }
.huhu-account-menu {
  position: absolute; right: 64px; top: calc(100% + 15px); z-index: 210;
  width: 190px; padding: 7px; border: 1px solid var(--signal-line);
  border-radius: 15px; background: #151525; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.huhu-account-menu a, .huhu-account-menu button {
  display: block; width: 100%; padding: 11px 13px; border: 0; border-radius: 9px;
  background: none; color: #ece7f1; font: inherit; font-size: 13px; text-align: left;
  text-decoration: none; cursor: pointer;
}
.huhu-account-menu a:hover, .huhu-account-menu button:hover { background: rgba(202,151,216,.13); }
.huhu-account-menu form { margin: 0; }
.cosmo-feature-header h2[tabindex="-1"]:focus { outline: none !important; }

@media (min-width: 761px) {
  .cosmo-feature-panel { background-position: 112% -200px !important; }
  .cosmo-feature-header { padding: 14px 0 10px !important; }
  .cosmo-feature-header h2 { font-size: 31px !important; }
  .cosmo-feature-view { padding: 23px 0 26px !important; }
  .cosmo-feature-body { overflow-y: auto !important; }
  .cosmo-feature-intro { margin-bottom: 19px !important; }
  .cosmo-feature-intro h3 { font-size: 24px !important; }
  .cosmo-report-overview { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 45px; }
  .cosmo-report-overview-main, .cosmo-report-overview-topics { min-width: 0; }
  .cosmo-report-monthly {
    min-height: 250px; grid-template-columns: 1fr !important; align-content: center;
    gap: 20px !important; margin: 0 0 22px !important; padding: 30px !important;
    border: 1px solid rgba(226,175,212,.25) !important;
    border-radius: 20px !important;
    background: #221a31 url('/web-static/brand/constellation-topic-orbit.png') no-repeat 120% center / 260px auto !important;
  }
  .cosmo-report-monthly a { justify-self: start; }
  .cosmo-report-ready { border-top: 1px solid var(--signal-line); padding-top: 17px; }
  .cosmo-report-ready h3 { margin: 0 0 10px; color: var(--signal-ivory); font: 500 20px Georgia, 'Songti SC', serif; }
  .cosmo-report-overview-topics .cosmo-feature-intro { margin-bottom: 11px !important; }
  .cosmo-report-overview-topics .cosmo-feature-grid,
  [data-feature-list="tests"].cosmo-feature-grid { display: block !important; }
  .cosmo-report-row.cosmo-feature-card {
    display: flex !important; width: 100%; min-height: 75px !important; align-items: center;
    justify-content: space-between; padding: 13px 6px !important; border: 0 !important;
    border-bottom: 1px solid var(--signal-line) !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
  }
  .cosmo-report-row span { display: grid; gap: 4px; }
  .cosmo-report-row strong { color: #f3edf3; font-size: 15px; font-weight: 600; }
  .cosmo-report-row small { color: #aaa0b3; font-size: 11px; letter-spacing: 0; text-transform: none; }
  .cosmo-report-row b { color: #c5a2c5; font-size: 25px; font-weight: 300; }
  .cosmo-report-row:hover { color: white; transform: none !important; }
  .cosmo-tests-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 35px; }
  .cosmo-test-featured { position: relative; width: 100%; min-height: 390px; padding: 0; overflow: hidden; border: 1px solid var(--signal-line); border-radius: 22px; background: #121323; color: white; text-align: left; }
  .cosmo-test-featured > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
  .cosmo-test-featured::after { content: ''; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(6,6,17,.93)); }
  .cosmo-test-featured-copy { position: absolute; z-index: 1; inset: auto 28px 27px; display: grid; gap: 12px; }
  .cosmo-test-featured-copy small { color: #f1cfdd; font-size: 11px; letter-spacing: .1em; }
  .cosmo-test-featured-copy strong { font: 500 30px Georgia, 'Songti SC', serif; }
  .cosmo-test-featured-copy span { color: #e2d9e5; font-size: 13px; line-height: 1.6; }
  .cosmo-test-featured-copy b { color: #f1c9db; font-size: 13px; }
  .cosmo-test-rows { display: grid; align-content: start; }
  .cosmo-test-row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 16px; align-items: center; width: 100%; min-height: 90px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--signal-line); background: transparent; color: white; text-align: left; }
  .cosmo-test-row img { width: 76px; height: 66px; border-radius: 10px; object-fit: cover; }
  .cosmo-test-row span { display: grid; gap: 7px; }
  .cosmo-test-row strong { font-size: 15px; font-weight: 600; }
  .cosmo-test-row small { color: #aaa1b2; font-size: 11px; }
  .cosmo-test-row b { color: #d8b1d4; font-size: 24px; font-weight: 300; }
  .cosmo-feature-view[data-feature-view="sound"] > .cosmo-feature-intro { margin-bottom: 12px !important; }
  .cosmo-feature-view[data-feature-view="sound"] { padding-bottom: 12px !important; }
  .cosmo-feature-panel:has([data-sound-space-view="album"]:not([hidden])) .cosmo-feature-header,
  .cosmo-feature-view[data-feature-view="sound"]:has([data-sound-space-view="album"]:not([hidden])) > .cosmo-feature-intro { display: none !important; }
  .cosmo-sound-tabs { margin-bottom: 15px !important; }
  [data-sound-space-view="profile"] { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 14px; }
  .cosmo-sound-stage { min-height: 395px !important; grid-template-columns: 175px minmax(0,1fr) !important; gap: 24px !important; padding: 20px 25px !important; }
  .cosmo-record { width: 175px !important; height: 175px !important; }
  .cosmo-sound-customizer { display: block !important; min-height: 395px; margin-top: 0 !important; padding: 23px !important; }
  .cosmo-sound-customizer .cosmo-sound-fields { display: grid; gap: 12px; }
  .cosmo-sound-customizer .cosmo-sound-fields section { display: grid; gap: 8px; }
  .cosmo-sound-customizer .cosmo-sound-fields section > div { display: flex; gap: 5px; flex-wrap: wrap; }
  .cosmo-sound-customizer .cosmo-sound-fields button { min-height: 27px; padding: 3px 8px; font-size: 11px; }
  .cosmo-album-page { padding: 18px 27px !important; }
  .cosmo-album-wizard { min-height: 365px; gap: 24px; }
  .cosmo-album-wizard aside { background: #161527 url('/web-static/music-original/life-album-target.png') no-repeat center 70px / 115px auto; }
  .cosmo-album-wizard aside h3 { margin-bottom: 7px; font-size: 20px; }
  .cosmo-album-wizard aside ol { margin-top: 120px; }
  .cosmo-album-wizard aside li { min-height: 34px; padding: 3px 7px; font-size: 11px; }
  .cosmo-album-wizard aside li span { width: 24px; height: 24px; }
  .cosmo-album-wizard aside > small { margin: 8px 0; font-size: 10px; }
  .cosmo-album-aside-actions { display: flex; gap: 7px; }
  .cosmo-album-aside-actions button { width: auto; min-height: 28px; padding: 3px 8px; font-size: 10px; }
  .cosmo-album-wizard main h2 { font-size: 33px; }
  .cosmo-album-wizard main h4 { margin: 12px 0 7px; font-size: 13px; }
  .cosmo-album-wizard main > p { margin-bottom: 7px; font-size: 12px; }
  .cosmo-album-wizard textarea { min-height: 100px; height: 100px; margin-top: 8px; padding: 12px; font-size: 12px; }
  .cosmo-album-choices { gap: 6px; }
  .cosmo-album-choices button { min-height: 31px; padding: 0 11px; font-size: 11px; }
  .cosmo-album-form-actions { padding-top: 12px; }
  .cosmo-album-form-actions button { min-width: 100px; min-height: 34px; }
  .cosmo-album-review { margin: 7px 0 10px; }
  .cosmo-album-review-row { padding: 5px 0; font-size: 11px; }
  .cosmo-album-contact input { min-height: 34px !important; }
  .cosmo-album-consent { margin-top: 7px; }
  .cosmo-feature-detail:has(.cosmo-reader), .cosmo-feature-detail:has(.cosmo-test-question-workspace),
  .cosmo-feature-detail:has(.cosmo-test-result-workspace), .cosmo-feature-detail:has(.cosmo-test-intro-workspace) {
    width: 100%; max-width: none !important; min-height: 440px; padding: 22px 28px !important;
    border-radius: 20px !important; background: rgba(14,14,30,.88) !important;
  }
  .cosmo-reader-back { border: 0; background: transparent; color: #d9b7d6; cursor: pointer; }
  .cosmo-reader header { padding: 14px 0 20px; border-bottom: 1px solid var(--signal-line); }
  .cosmo-reader header p { margin: 0 0 5px; color: #d0af8b; font-size: 10px; letter-spacing: .15em; }
  .cosmo-reader header h3 { margin: 0 0 7px; }
  .cosmo-reader header span { color: #b8afc2; font-size: 13px; }
  .cosmo-reader-body { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 32px; padding-top: 18px; }
  .cosmo-reader-body nav { display: grid; align-content: start; }
  .cosmo-reader-body nav button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--signal-line); background: transparent; color: #a9a0b2; text-align: left; cursor: pointer; }
  .cosmo-reader-body nav button.active { color: #f3d9e6; }
  .cosmo-reader-body nav small { color: #bf9aaf; }
  .cosmo-reader-page { min-height: 300px; }
  .cosmo-reader-page > small, .monthly-reader-page > small { color: #c9a985; letter-spacing: .1em; }
  .cosmo-reader-page h4 { margin: 13px 0 15px; color: var(--signal-ivory); font: 500 28px Georgia, 'Songti SC', serif; }
  .cosmo-reader-page p { max-height: 225px; overflow: auto; color: #d5cad8; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
  .cosmo-reader-page footer, .monthly-reader-page footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--signal-line); color: #958c9d; font-size: 12px; }
  .cosmo-reader-page footer button, .monthly-reader-page footer button { margin-left: 13px; border: 0; background: transparent; color: #e7b3d0; cursor: pointer; }
  .cosmo-question-options { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  .cosmo-test-result-workspace { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
  .cosmo-test-result-card { min-height: 390px; }
  .cosmo-test-result-card:not(:has(> img)) { background: #27203e url('/web-static/brand/constellation-topic-orbit.png') no-repeat 52% 20% / 125% auto; }
  .cosmo-test-result-copy { display: grid; align-content: center; gap: 13px; }
  .cosmo-test-result-copy h3 { margin: 0; color: var(--signal-ivory); font: 500 31px Georgia, 'Songti SC', serif; }
  .cosmo-test-result-copy p { color: #cbbfd0; line-height: 1.7; }
  .cosmo-result-actions { display: flex; gap: 10px; }
  .cosmo-test-intro-content { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
  .cosmo-test-intro-art { display: block; width: 100%; max-height: 330px; object-fit: cover; border-radius: 17px; }
}

.cosmo-me-page[data-account-section="profile"] .cosmo-person-workspace { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; grid-column: 1 / -1; padding: 18px !important; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-workspace[hidden] { display: none !important; }
@media (min-width: 761px) {
  .mobile-content:has(.cosmo-me-page[data-account-section="profile"]) { padding-bottom: 10px !important; }
  .cosmo-me-page[data-account-section="profile"] > .cosmo-page-heading { display: grid; grid-template-columns: minmax(190px,.25fr) minmax(0,1fr) auto; align-items: center; gap: 22px; }
}
.cosmo-profile-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.cosmo-profile-identity > img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.cosmo-profile-identity-copy { display: grid; min-width: 0; gap: 4px; }
.cosmo-profile-identity-copy strong { overflow: hidden; color: var(--signal-ivory); font: 500 20px Georgia, 'Songti SC', serif; text-overflow: ellipsis; white-space: nowrap; }
.cosmo-profile-identity-copy span { overflow: hidden; color: #b6aabd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cosmo-person-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.cosmo-person-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #c79bc07a; border-radius: 999px; background: transparent; color: #f0c7df; font-size: 11px; cursor: pointer; }
.cosmo-person-actions .cosmo-person-add { border-color: rgba(212,173,208,.24); color: #d6bbcc; }
.cosmo-person-actions button:hover:not(:disabled) { background: rgba(225,173,211,.1); }
.cosmo-person-actions button:disabled { opacity: .48; cursor: default; }
.cosmo-profile-switch { display: grid; gap: 5px; min-width: 135px; color: #a9a0b1; font-size: 10px; white-space: nowrap; }
.cosmo-profile-switch select { width: 100%; min-height: 35px; padding: 5px 27px 5px 10px; border: 1px solid rgba(213,198,236,.19); border-radius: 12px; background: #1c1b2b; color: #eee6f0; font-size: 12px; color-scheme: dark; }
.cosmo-person-destination small { color: #c9a17c; font-size: 10px; letter-spacing: .16em; }
.cosmo-person-destination { position: relative; display: flex; min-width: 0; min-height: min(530px,calc(100dvh - 245px)); flex-direction: column; padding: 18px 22px 22px; overflow: hidden; border: 1px solid var(--signal-line); border-radius: 20px; background: #17192a; color: #ece6ef; text-decoration: none; }
.cosmo-person-bazi { background: radial-gradient(circle at 70% 20%,rgba(80,98,168,.17),transparent 45%),#131527; }
.cosmo-person-visual { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.cosmo-person-visual > span { color: #aaa0b2; font-size: 12px; text-align: center; }
.cosmo-person-visual .web-chart-wheel { width: min(100%,340px); flex: 0 0 auto; }
.cosmo-person-visual .web-chart-wheel img { width: 100%; height: 100%; object-fit: contain; }
.cosmo-person-bazi #web-bazi-summary { width: 100%; }
.cosmo-person-bazi .web-bazi-master { padding: 0 0 14px; }
.cosmo-person-bazi .web-bazi-master-stem { font-size: 82px; }
.cosmo-person-bazi .web-bazi-master-element { font-size: 17px; }
.cosmo-person-bazi .web-bazi-pillar { gap: 5px; }
.cosmo-person-bazi .web-bazi-pillar-label { font-size: 13px; }
.cosmo-person-bazi .web-bazi-pillar-stem, .cosmo-person-bazi .web-bazi-pillar-branch { font-size: 35px; }
.cosmo-person-destination-label { display: grid; gap: 5px; padding-top: 8px; }
.cosmo-person-destination-label strong { color: var(--signal-ivory); font: 500 27px Georgia, 'Songti SC', serif; }
.cosmo-person-destination-label span { color: #c4b9ca; font-size: 12px; }
.cosmo-person-destination b { position: absolute; top: 17px; right: 18px; font-size: 20px; font-weight: 300; }
.cosmo-profile-preview-empty { max-width: 240px; line-height: 1.6; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-editor { display: flex !important; flex-direction: column; grid-column: 1 / -1 !important; min-height: min(530px,calc(100dvh - 245px)); max-height: calc(100dvh - 215px); padding: 28px clamp(22px,4vw,48px) !important; overflow: auto; border-radius: 20px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-editor[hidden] { display: none !important; }
.cosmo-person-editor-heading { width: min(720px,100%); margin: 0 auto 24px; }
.cosmo-person-editor-heading small { color: #c9a17c; font-size: 10px; letter-spacing: .16em; }
.cosmo-person-editor-heading h3 { margin: 8px 0 6px; color: var(--signal-ivory); font: 500 clamp(25px,3vw,34px) Georgia, 'Songti SC', serif; }
.cosmo-person-editor-heading p { margin: 0; color: #b6aabd; font-size: 12px; }
.cosmo-person-editor .mobile-me-form { display: flex; width: min(720px,100%); min-height: 0; flex: 1; flex-direction: column; margin: 0 auto; }
.cosmo-person-editor .profile-grid { gap: 17px 20px; }
.cosmo-person-editor .profile-grid.place-grid { gap: 10px; }
.cosmo-person-editor .profile-grid .field { min-width: 0; }
.cosmo-person-editor .profile-grid label { display: block; margin-bottom: 7px; color: #cfbfce; font-size: 12px; }
.cosmo-person-editor input, .cosmo-person-editor select { width: 100%; min-height: 43px; padding: 10px 13px; border: 1px solid rgba(213,198,236,.2); border-radius: 11px; background: #1c1b2b; color: #eee6f0; color-scheme: dark; }
.cosmo-person-editor input:focus, .cosmo-person-editor select:focus { outline: 1px solid rgba(232,177,217,.62); outline-offset: 0; }
.cosmo-person-editor-error { margin: 14px 0 0; color: #f5acba; font-size: 12px; }
.cosmo-person-editor-error[hidden] { display: none; }
.cosmo-person-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 24px; }
.cosmo-person-editor-actions button { min-width: 104px; min-height: 40px; padding: 9px 18px; border: 1px solid rgba(213,198,236,.25); border-radius: 999px; background: transparent; color: #e5dae9; cursor: pointer; }
.cosmo-person-editor-actions button.primary { border-color: transparent; background: linear-gradient(110deg,#f2c5ac,#dca4d5); color: #281d2e; }
.cosmo-person-editor-actions button:disabled { opacity: .55; cursor: wait; }
.cosmo-me-page[data-account-section="settings"] .account-view-settings { grid-column: span 6 !important; margin-bottom: 13px !important; }
.cosmo-me-page[data-account-section="settings"] .account-view-settings.cosmo-display-settings { display: block !important; padding: 20px !important; }
.cosmo-me-page[data-account-section="settings"] .account-view-settings:has(.account-safety-grid),
.cosmo-me-page[data-account-section="settings"] .account-view-settings:has(input[name="form_action"][value="contact"]) { grid-column: span 6 !important; }
.cosmo-me-page[data-account-section="settings"] .account-safety-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cosmo-account-delete-details summary { width: fit-content; padding: 8px 13px; border: 1px solid rgba(239,150,173,.3); border-radius: 999px; color: #efb5c7; font-size: 11px; cursor: pointer; }
.cosmo-account-delete-details[open] form { margin-top: 12px; }

#web-monthly-report { min-height: 0; padding-top: 10px; }
.monthly-reader-back { display: inline-flex; margin: 0 0 12px; color: #dcb5cf; font-size: 12px; text-decoration: none; }
.monthly-reader { padding: 25px 32px; }
.monthly-reader-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--signal-line); }
.monthly-reader-header p { margin: 0 0 6px; color: #ca9f79; font-size: 10px; letter-spacing: .16em; }
.monthly-reader-header h2 { margin: 0; color: var(--signal-ivory); font: 500 31px Georgia, 'Songti SC', serif; }
.monthly-reader-tabs { display: flex; align-items: center; gap: 15px; padding: 16px 0; }
.monthly-reader-pending { color: #928b9c; font-size: 11px; }
.monthly-reader-grid { display: grid; grid-template-columns: 225px minmax(0,1fr); gap: 32px; }
.monthly-reader-grid nav { display: grid; align-content: start; }
.monthly-reader-grid nav button { display: flex; gap: 10px; align-items: center; padding: 13px 9px; border: 0; border-bottom: 1px solid var(--signal-line); background: transparent; color: #a89eaf; text-align: left; cursor: pointer; }
.monthly-reader-grid nav button.active { color: #f2d1e0; }
.monthly-reader-grid nav small { color: #c09e87; }
.monthly-reader-page { min-height: 350px; }
.monthly-reader-page h3 { margin: 12px 0 13px; color: #f3e6da; font: 500 27px Georgia, 'Songti SC', serif; }
.monthly-reader-theme { color: #cbaec2; }
.monthly-reader-page .monthly-v2-copy { max-height: 235px; overflow: auto; color: #d6cbd8; line-height: 1.75; }
.monthly-empty-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 70px; align-items: center; min-height: 500px; padding: 55px 70px; }
.monthly-empty-main { min-width: 0; }
.monthly-empty-main > p { margin: 0 0 10px; color: #d4ad82; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.monthly-empty-main h2 { margin: 0 0 13px; color: var(--signal-ivory); font: 500 64px Georgia, 'Songti SC', serif; }
.monthly-empty-main h3 { margin: 0; color: #efe1d6; font: 500 27px Georgia, 'Songti SC', serif; }
.monthly-empty-main .monthly-v2-state-copy { margin-top: 13px; }
.monthly-empty-timeline { display: grid; gap: 48px; padding: 20px 0 20px 38px; border-left: 1px solid rgba(221,194,217,.25); }
.monthly-empty-timeline > div { position: relative; display: grid; gap: 10px; }
.monthly-empty-timeline small { color: #e7bd95; font-size: 11px; letter-spacing: .14em; }
.monthly-empty-timeline strong { color: var(--signal-ivory); font: 500 23px Georgia, 'Songti SC', serif; }
.monthly-empty-timeline p { margin: 0; color: #bdb2c3; font-size: 13px; line-height: 1.6; }

/* Monthly archive: twelve clear choices beside one reading pane. */
#web-monthly-report { display: flex; width: min(100%, 1220px); height: calc(100dvh - 90px); min-height: 570px; flex-direction: column; gap: 16px; padding: 20px 22px 24px; }
.monthly-workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.monthly-workspace-heading p { margin: 0 0 5px; color: #c4a48c; font-size: 10px; letter-spacing: .18em; }
.monthly-workspace-heading h2 { margin: 0; color: var(--signal-ivory); font: 500 34px Georgia, 'Songti SC', serif; }
.monthly-workspace-heading > span { color: #a99eb2; font-size: 12px; }
.monthly-workspace-split { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); gap: 18px; min-height: 0; flex: 1; }
.monthly-workspace-index, .monthly-workspace-detail { min-width: 0; min-height: 0; border: 1px solid rgba(213,198,236,.14); border-radius: 25px; background: rgba(12,12,28,.9); }
.monthly-workspace-index { display: flex; flex-direction: column; padding: 24px; }
.monthly-index-access { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 86px; padding: 15px 18px; border: 1px solid rgba(226,175,212,.2); border-radius: 18px; background: linear-gradient(110deg, #1c1b36, #291f36); }
.monthly-index-access > div { display: grid; gap: 7px; }
.monthly-index-access small { color: #b7a8ba; font-size: 10px; letter-spacing: .12em; }
.monthly-index-access strong { color: #f1d4af; font: 500 21px Georgia, 'Songti SC', serif; }
.monthly-index-access form { margin: 0; }
.monthly-index-access button { min-height: 41px; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(110deg, #f0d0ab, #d997c4); color: #241725; font-weight: 700; white-space: nowrap; cursor: pointer; }
.monthly-index-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 15px; }
.monthly-index-heading h3 { margin: 0; color: #f0e7ef; font: 500 21px Georgia, 'Songti SC', serif; }
.monthly-year-controls { display: flex; align-items: center; gap: 8px; color: #b9b0c2; font-size: 14px; }
.monthly-year-controls button { width: 26px; height: 26px; border: 1px solid rgba(213,198,236,.16); border-radius: 50%; background: #222039; color: #e8d9ea; cursor: pointer; }
.monthly-year-controls span { min-width: 40px; text-align: center; }
.monthly-month-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.monthly-month-card { display: flex; min-width: 0; min-height: 75px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(213,198,236,.1); border-radius: 15px; background: #24243b; color: #ada7ba; cursor: pointer; }
.monthly-month-card strong { font-size: 16px; font-weight: 600; }
.monthly-month-card small { color: #b4a7bb; font-size: 10px; white-space: nowrap; }
.monthly-month-card.available { color: #f1e2e8; border-color: rgba(225,167,211,.24); background: #30243d; }
.monthly-month-card.available small { color: #e6b9d0; }
.monthly-month-card.active { border-color: transparent; background: linear-gradient(115deg, #cf9bc4, #e3b09e); color: #251625; box-shadow: 0 10px 25px rgba(202,131,183,.16); }
.monthly-month-card.active small { color: #4f334e; }
.monthly-index-hint { margin: auto 0 0; padding-top: 17px; color: #92899e; font-size: 11px; line-height: 1.5; }
.monthly-workspace-detail { overflow: auto; }
.monthly-detail-placeholder { display: flex; height: 100%; min-height: 460px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.monthly-detail-placeholder span { color: #d8a6ca; font: 400 64px Georgia, serif; }
.monthly-detail-placeholder h3 { margin: 12px 0 5px; color: #f2e6ee; font: 500 23px Georgia, 'Songti SC', serif; }
.monthly-detail-placeholder p { margin: 0; color: #a69bae; font-size: 12px; }
.monthly-workspace-detail .monthly-v2-state { min-height: 100%; padding: 38px; border: 0; border-radius: 25px; box-shadow: none; }
.monthly-workspace-detail .monthly-v2-state h2 { font-size: 32px; }
.monthly-workspace-detail .monthly-v2-report { min-height: 100%; border: 0; border-radius: 25px; box-shadow: none; }
.monthly-workspace-detail .monthly-reader { padding: 25px; }
.monthly-workspace-detail .monthly-reader-grid { grid-template-columns: 130px minmax(0,1fr); gap: 16px; }
.monthly-workspace-detail .monthly-reader-grid nav button { padding: 10px 3px; font-size: 11px; }
.monthly-workspace-detail .monthly-reader-page h3 { font-size: 23px; }
.monthly-workspace-detail .monthly-reader-page .monthly-v2-copy { max-height: 215px; }

/* Studies keep their current catalog presentation, with the reader fixed to the right. */
@media (min-width: 761px) {
  .cosmo-special-workspace { display: grid; grid-template-columns: minmax(0,.46fr) minmax(0,.54fr); gap: 20px; min-height: 480px; }
  .cosmo-special-list { min-width: 0; max-height: calc(100dvh - 170px); overflow: auto; padding-right: 7px; }
  .cosmo-special-list [data-feature-list="reports"].cosmo-feature-grid { display: block !important; }
  .cosmo-special-detail { width: 100%; max-width: none; min-height: 480px; margin: 0; padding: 26px; overflow: auto; background: rgba(14,14,30,.88); }
  .cosmo-special-placeholder { display: flex; min-height: 410px; flex-direction: column; align-items: center; justify-content: center; color: #a69bae; text-align: center; }
  .cosmo-special-placeholder span { color: #d7a6cb; font: 400 58px Georgia, serif; }
  .cosmo-special-placeholder p { max-width: 250px; font-size: 13px; }
  .cosmo-special-detail:has(.cosmo-reader) { min-height: 480px; }
  .cosmo-special-detail .cosmo-reader-back { display: none; }
  .cosmo-special-detail .cosmo-reader-body { grid-template-columns: 130px minmax(0,1fr); gap: 15px; }
  .cosmo-special-detail .cosmo-reader-body nav button { gap: 6px; padding: 10px 2px; font-size: 11px; }
  .cosmo-special-detail .cosmo-reader-page h4 { font-size: 23px; }
  .cosmo-report-row.cosmo-feature-card.active { background: rgba(213,155,196,.12) !important; }
  .cosmo-report-ready { border-top: 0; border-bottom: 1px solid var(--signal-line); padding: 0 0 15px; margin-bottom: 15px; }
  .cosmo-tests-workspace { display: grid; grid-template-columns: minmax(0,.46fr) minmax(0,.54fr); gap: 20px; min-height: 480px; }
  .cosmo-tests-list { min-width: 0; max-height: calc(100dvh - 170px); overflow: auto; padding-right: 7px; }
  .cosmo-tests-list .cosmo-feature-intro { margin-bottom: 12px !important; }
  .cosmo-tests-list .cosmo-feature-intro h3 { font-size: 22px !important; }
  .cosmo-tests-list .cosmo-test-access { width: fit-content; margin: 0 0 15px; }
  .cosmo-tests-list .cosmo-test-row { min-height: 80px; }
  .cosmo-tests-list .cosmo-test-row.active { background: rgba(213,155,196,.12); }
  .cosmo-tests-detail { width: 100%; max-width: none; min-height: 480px; margin: 0; padding: 26px; overflow: auto; background: rgba(14,14,30,.88); }
  .cosmo-tests-detail .cosmo-special-placeholder { min-height: 410px; }
  .cosmo-tests-detail .cosmo-test-intro-content { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 22px; }
  .cosmo-tests-detail .cosmo-test-intro-art { width: 100%; max-height: 260px; }
  .cosmo-tests-detail .cosmo-test-result-workspace { grid-template-columns: 1fr; gap: 15px; }
  .cosmo-tests-detail .cosmo-test-result-card { min-height: 245px; }
  .cosmo-tests-detail .cosmo-test-result-copy { gap: 8px; }
  .cosmo-tests-detail .cosmo-test-result-copy h3 { font-size: 23px; }
}

@media (max-width: 760px) {
  .cosmo-profile-identity { flex-wrap: wrap; margin: 14px 0; }
  .cosmo-profile-identity-copy { flex: 1; }
  .cosmo-person-actions { width: 100%; }
  .cosmo-profile-switch { width: 100%; }
  .cosmo-person-destination { min-height: 370px; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-editor { max-height: none; padding: 22px !important; }
  .cosmo-person-editor .profile-grid.place-grid { grid-template-columns: 1fr; }
  #web-monthly-report { height: auto; min-height: 0; padding: 15px; }
  .monthly-workspace-heading { display: block; }
  .monthly-workspace-heading > span { display: block; margin-top: 5px; }
  .monthly-workspace-split, .cosmo-special-workspace, .cosmo-tests-workspace { display: grid; grid-template-columns: 1fr; gap: 13px; }
  .monthly-workspace-index { padding: 18px; }
  .monthly-index-access { flex-wrap: wrap; }
  .monthly-month-grid { gap: 7px; }
  .monthly-month-card { min-height: 65px; }
  .monthly-workspace-detail { min-height: 320px; }
  .monthly-detail-placeholder { min-height: 320px; }
  .monthly-workspace-detail .monthly-reader-grid { grid-template-columns: 1fr; }
  .cosmo-special-detail { width: 100%; max-width: none; min-height: 330px; }
  .cosmo-special-placeholder { display: grid; min-height: 260px; align-content: center; justify-items: center; text-align: center; }
  .cosmo-tests-list .cosmo-test-access { width: fit-content; margin: 8px 0 15px; }
  .cosmo-tests-detail { width: 100%; max-width: none; min-height: 330px; }
  .cosmo-tests-detail .cosmo-test-intro-content, .cosmo-tests-detail .cosmo-test-result-workspace { display: grid; grid-template-columns: 1fr; }
  .huhu-account-menu { right: 0; }
  .cosmo-report-overview { display: grid; gap: 20px; }
  .cosmo-report-monthly { margin-bottom: 0; }
  .cosmo-report-row.cosmo-feature-card { width: 100%; min-height: 75px !important; padding: 12px 14px !important; }
  .cosmo-tests-layout, .cosmo-test-rows { display: grid; gap: 10px; }
  .cosmo-test-featured, .cosmo-test-row { width: 100%; color: white; }
  .cosmo-test-featured { min-height: 270px; overflow: hidden; border: 1px solid var(--signal-line); border-radius: 18px; background: #17162b; }
  .cosmo-test-featured img { width: 100%; max-height: 150px; object-fit: cover; }
  .cosmo-test-featured-copy { display: grid; gap: 7px; padding: 12px; text-align: left; }
  .cosmo-test-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--signal-line); border-radius: 13px; background: #151526; text-align: left; }
  .cosmo-test-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
  .cosmo-test-row span { display: grid; flex: 1; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-workspace { grid-template-columns: 1fr; }
  .cosmo-person-destination { min-height: 370px; }
  .cosmo-me-page[data-account-section="settings"] .account-view-settings { grid-column: 1 / -1 !important; }
  .cosmo-me-page[data-account-section="settings"] .account-safety-grid { grid-template-columns: 1fr; }
  .monthly-reader { padding: 20px; }
  .monthly-reader-header, .monthly-reader-grid { display: grid; grid-template-columns: 1fr; }
  .monthly-empty-workspace { grid-template-columns: 1fr; gap: 25px; min-height: 0; padding: 32px 24px; }
  .monthly-empty-main h2 { font-size: 46px; }
  .monthly-empty-timeline { gap: 20px; }
  .monthly-reader-grid nav { display: flex; gap: 6px; overflow-x: auto; }
  .monthly-reader-grid nav button { min-width: max-content; }
}

/* The legacy birth wheel lives inside the current People editor surface. */
.cosmo-person-editor .cosmo-birth-field { min-width: 0; }
.cosmo-person-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.cosmo-person-editor-heading [data-person-self-toggle] { min-height: 32px; padding: 0 12px; border: 1px solid rgba(213,198,236,.24); border-radius: 999px; background: transparent; color: #cbbccc; font-size: 11px; white-space: nowrap; cursor: pointer; }
.cosmo-person-editor-heading [data-person-self-toggle][aria-pressed="true"] { border-color: rgba(225,188,210,.55); background: rgba(219,164,200,.14); color: #f6e4ed; }
.cosmo-birth-cal-tabs { display: flex; gap: 7px; margin: 0 0 12px; }
.cosmo-person-editor .cosmo-birth-cal-tabs button {
  min-width: 74px; min-height: 32px; padding: 0 14px; border: 1px solid rgba(213,198,236,.2);
  border-radius: 999px; background: transparent; color: #bcb1c4; font-size: 12px; cursor: pointer;
}
.cosmo-person-editor .cosmo-birth-cal-tabs button[aria-selected="true"] { border-color: rgba(225,188,210,.55); background: rgba(219,164,200,.14); color: #f6e4ed; }
.cosmo-birth-wheel { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; min-width: 0; }
.cosmo-birth-wheel-group { min-width: 0; }
.cosmo-birth-wheel-label { display: block; padding: 0 0 7px; color: #a9a0b2; font-size: 11px; text-align: center; }
.cosmo-birth-wheel-col {
  position: relative; height: 152px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory;
  border: 1px solid rgba(213,198,236,.16); border-radius: 13px;
  background: linear-gradient(180deg,#151525,#1e1b30 47%,#151525);
  scrollbar-width: none; cursor: ns-resize;
}
.cosmo-birth-wheel-col::-webkit-scrollbar { display: none; }
.cosmo-birth-wheel-col:focus-visible { outline: 2px solid #e7c39e; outline-offset: 2px; }
.cosmo-birth-wheel-spacer { height: 57px; pointer-events: none; }
.cosmo-birth-wheel-item {
  display: flex; height: 38px; align-items: center; justify-content: center;
  padding: 0 3px; scroll-snap-align: center; color: #8f869a; font-size: 13px;
  text-align: center; user-select: none; cursor: pointer;
}
.cosmo-birth-wheel-item.is-active { color: #f1dbc3; background: rgba(219,164,200,.13); font-weight: 700; }
.cosmo-birth-conversion { min-height: 20px; margin: 10px 0 0 !important; color: #bcafc2 !important; font-size: 11px; }
.cosmo-person-editor .profile-grid.place-grid select { min-width: 0; }
@media (max-width: 760px) {
  .cosmo-birth-wheel { gap: 4px; }
  .cosmo-birth-wheel-item { font-size: 11px; }
  .cosmo-person-editor .profile-grid.place-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cosmo-person-editor .profile-grid.place-grid select { padding: 8px 5px; font-size: 11px; }
}

/* People: a quiet profile heading and two open, parallel readings. */
.cosmo-me-page[data-account-section="profile"] { width: min(1280px, 100%); }
.cosmo-me-page[data-account-section="profile"] > .cosmo-page-heading {
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  margin: 4px 0 28px !important; padding: 0 0 25px !important;
  border-bottom-color: rgba(215, 203, 224, .19) !important;
}
.cosmo-profile-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cosmo-profile-title-row h2 { margin: 0; font-size: clamp(34px, 3.3vw, 48px) !important; line-height: 1.15; }
.cosmo-profile-title-row .cosmo-person-add {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(219, 194, 218, .3); border-radius: 999px;
  background: rgba(224, 187, 218, .07); color: #e8c6da; font-size: 12px; cursor: pointer;
}
.cosmo-profile-title-row .cosmo-person-add:hover { background: rgba(224, 187, 218, .14); }
.cosmo-profile-title-row .cosmo-person-add span { font-size: 20px; line-height: 1; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity { width: 100%; gap: 14px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity > img { width: 54px; height: 54px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity-copy { gap: 2px; flex: 1; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity-copy > span { color: #b9b0be; font-size: 12px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-switch { position: relative; display: inline-flex; width: fit-content; min-width: 0; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-switch select {
  width: auto; max-width: min(45vw, 340px); min-height: 30px; padding: 0 21px 0 0;
  appearance: none; border: 0; border-radius: 0; background: transparent;
  color: var(--signal-ivory); font: 500 24px Georgia, 'Songti SC', serif; cursor: pointer;
}
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-switch img { position: absolute; right: 1px; top: 10px; width: 12px; height: 12px; object-fit: contain; transform: rotate(90deg); pointer-events: none; opacity: .75; }
.cosmo-me-page[data-account-section="profile"] .cosmo-profile-switch select:focus-visible,
.cosmo-me-page[data-account-section="profile"] .cosmo-person-destination:focus-visible { outline: 2px solid #e7c39e; outline-offset: 4px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-actions button { min-height: 34px; padding: 0 14px; color: #dcc3d3; font-size: 12px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-workspace {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: 550px;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
.cosmo-me-page[data-account-section="profile"] .cosmo-person-destination {
  min-height: 550px; padding: 6px 38px 0 0; border: 0; border-radius: 0;
  background: transparent !important; box-shadow: none; overflow: visible;
}
.cosmo-me-page[data-account-section="profile"] .cosmo-person-bazi { padding: 6px 0 0 38px; border-left: 1px solid rgba(215, 203, 224, .19); }
.cosmo-person-destination-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cosmo-person-destination-heading strong { color: var(--signal-ivory); font: 500 28px Georgia, 'Songti SC', serif; }
.cosmo-person-destination-heading span { color: #c8b7c7; font-size: 12px; white-space: nowrap; }
.cosmo-person-destination:hover .cosmo-person-destination-heading span { color: #f2d5af; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-visual { min-height: 480px; }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-visual .web-chart-wheel { width: min(100%, 430px); }
.cosmo-me-page[data-account-section="profile"] .cosmo-person-bazi .web-bazi-master { padding-bottom: 18px; }

@media (max-width: 760px) {
  .cosmo-me-page[data-account-section="profile"] > .cosmo-page-heading { gap: 16px; margin-bottom: 20px !important; padding-bottom: 20px !important; }
  .cosmo-profile-title-row h2 { font-size: 36px !important; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity { flex-wrap: nowrap; margin: 0; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity > img { width: 46px; height: 46px; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-profile-identity-copy > span { font-size: 10px; white-space: normal; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-actions { width: auto; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-actions button { padding: 0 9px; font-size: 11px; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-workspace { grid-template-columns: 1fr; min-height: 0; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-destination { min-height: 360px; padding: 0 0 22px; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-bazi { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(215, 203, 224, .19); }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-visual { min-height: 310px; }
  .cosmo-me-page[data-account-section="profile"] .cosmo-person-visual .web-chart-wheel { width: min(100%, 340px); }
}
