/* A single quiet entry point, with the original account actions inside. */
.site-menu-ready #navLinks,#bottomTabbar{display:none!important}
@media screen {
  body.site-menu-ready.has-service-tabs:not(.consultation-open,.admin-exclusive-mode) {
    --tabs-height: calc(61px + env(safe-area-inset-bottom,0px));
    padding-bottom: var(--tabs-height) !important;
  }
  body.has-service-tabs:not(.consultation-open,.admin-exclusive-mode) #bottomTabbar {
    display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed; inset:auto 0 0; margin-inline:auto; width:min(100%,480px);
    z-index:65; height:var(--tabs-height); padding:3px 4px calc(3px + env(safe-area-inset-bottom,0px));
    background:#221f21; border:0; border-top:1px solid #554b46;
    transition:transform .18s ease-out; touch-action:manipulation;
  }
  #bottomTabbar .bt-item {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    min-width:0; min-height:44px; padding:0; border:0; border-radius:4px;
    color:#c3b9b4; background:transparent; text-decoration:none;
    font:500 12px/1.35 var(--sans);
  }
  #bottomTabbar .bt-item svg {width:21px;height:21px;stroke-linecap:round;stroke-linejoin:round}
  #bottomTabbar .bt-item[aria-current] {color:#f1d297;font-weight:700}
  #bottomTabbar .bt-item:focus-visible {outline:2px solid #e5c491;outline-offset:-3px}
  #bottomTabbar[data-scrolling]:not(:has(:focus-visible)) {transform:translateY(105%);pointer-events:none}
  body.has-service-tabs:not(.consultation-open) #tmTop {width:44px;height:44px;bottom:calc(var(--tabs-height) + 12px)}
  body.has-service-tabs:has(dialog[open],#authOverlay[style*="flex"],#sajuInsightModal.show,#fortuneModal.show,#aiShareModal.show,#startupRecovery:not([hidden]),input:not([type=button],[type=checkbox],[type=radio]):focus,textarea:focus,select:focus) #bottomTabbar {display:none!important}
}
@media (prefers-reduced-motion:reduce) {body.has-service-tabs #bottomTabbar {transition:none!important}}
body.site-menu-ready{padding-bottom:0!important}
html.site-menu-open{overflow:hidden!important;scrollbar-gutter:stable}
.site-menu-trigger,.site-menu-close{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:10px;background:transparent;border:0;border-radius:6px;color:#e6dfd2;cursor:pointer;box-shadow:none}
.site-menu-trigger svg,.site-menu-close svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.site-menu-trigger:hover,.site-menu-close:hover{background:#c6aa760c;color:#c6aa76}
.topbar .brand{color:inherit;text-decoration:none}
.site-menu{
  --menu-line:#f0ebe11c;
  box-sizing:border-box;position:fixed;inset:0 0 0 auto;
  width:min(416px,100%);height:100dvh;max-height:100dvh;max-width:100%;margin:0;
  padding:0 30px max(22px,env(safe-area-inset-bottom));border:0;border-left:1px solid #c6aa7630;
  background:#211f21;color:#f0ebe1;overflow:auto;overscroll-behavior:contain;
  font-family:var(--sans);text-align:left;box-shadow:none;
}
.site-menu::backdrop{background:#131115b8;backdrop-filter:blur(4px)}
.site-menu-heading{
  position:sticky;top:0;z-index:2;
  display:flex;align-items:center;justify-content:space-between;
  padding:max(12px,env(safe-area-inset-top)) 0 10px;margin:0 0 4px;
  background:#211f21;border-bottom:1px solid var(--menu-line);
}
.site-menu-heading h2{font:600 27px/1.4 var(--serif);letter-spacing:-.045em;margin:0}
.site-menu-brand{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
.site-menu-brand:hover{color:#dfc69c}
.site-menu-brand:focus-visible{outline:2px solid #dfc69c;outline-offset:4px}
.site-menu-account{
  width:100%;
  box-sizing:border-box;
  text-align:left;
  font:inherit;
  cursor:pointer;
  color:inherit;
  position:relative;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:10px; min-height:52px; padding:6px 0;
  border:0; background:transparent;
}
.site-menu-account:hover #siteMenuAccountNote{text-decoration:underline;text-underline-offset:4px}
.site-menu-account-mark{width:32px;height:32px;object-fit:contain}
.site-menu-account #siteMenuAccountNote{display:block;color:#f0ebe1;font:500 16px/1.5 var(--sans)}
.site-menu [data-menu-account][hidden]{display:none!important}
.site-menu-navigation{display:grid;gap:16px;margin-top:6px}
.site-menu-group{border-top:1px solid var(--menu-line);padding-top:13px}
.site-menu-group h3{margin:0 0 5px;color:#d5c8b3;font:600 15px/1.5 var(--serif);letter-spacing:-.02em}
.site-menu-group :is(button,a){
  display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:44px;padding:8px 9px;text-align:left;text-decoration:none;border:0;border-radius:5px;
  background:none;color:#ebe8de;font:400 16px/1.45 var(--sans);cursor:pointer;box-shadow:none;
}
.site-menu-group [aria-current=page]:not([data-menu-route="newyear"]){
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em;
}
@media (hover:hover) and (pointer:fine){
  .site-menu-group :is(button,a):hover{text-decoration:underline;text-underline-offset:.3em}
}
.site-menu-dates,.site-menu-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}
.site-menu-links :is(button,a){font-size:14px}
.site-menu-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.site-menu-section-head h3{margin:0}
.site-menu-group .site-menu-section-head :is(a,button){width:auto;min-height:44px;padding:6px 2px;color:#d4bd98;font-size:13px}
.site-menu-group :is(.site-menu-links,.site-menu-dates) :is(a,button){min-height:44px;padding-inline:0;word-break:keep-all}
.site-menu-group > [data-menu-route="history"]{padding-inline:0}
.site-menu-secondary{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;
}
.site-menu-secondary h3{grid-column:1/-1}
.site-menu-secondary button{color:#c1c8bd;font-size:14px;padding-inline:4px}
:is(.site-menu,.topbar) :is(button,a):focus-visible{outline:2px solid #c6aa76;outline-offset:4px}
@media screen, (max-width: 480px) {
  .site-menu{width:min(390px,calc(100% - 18px));padding-inline:20px}
  .site-menu-heading h2{font-size:25px}
  .site-menu-navigation{gap:16px}
}

/* Profile shares the menu's warm metal accents and dark green surfaces. */
#view-profile .pf-shell{--profile-gap:16px;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--profile-gap);width:min(880px,calc(100% - 48px));margin-inline:auto;padding:clamp(34px,6vw,72px) 0 60px}
#view-profile .pf-heading{margin:0}
#view-profile .pf-heading h1{margin:0;font:600 clamp(32px,5vw,47px)/1.4 var(--serif)}
#view-profile .pf-heading h1:focus{outline:none}
#view-profile .pf-card{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:24px;
  margin:0;
  padding:clamp(22px,4vw,36px);
  border:1px solid #6b6049;
  border-radius:12px;
  background:linear-gradient(115deg,#3b2c34,#292629 72%);
  text-align:left;
}
#view-profile .pf-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:12px 20px 12px auto;
  width:min(150px,32%);
  background:url('/assets/brand-emblem-transparent.png?v=20261111-1') center/contain no-repeat;
  opacity:.13;
  pointer-events:none;
}
#view-profile .pf-avatar{width:66px;height:66px;border:1px solid #786749;background:#403237;color:#e2c591;font-size:26px}
#view-profile .pf-name{font-size:clamp(24px,4vw,33px);line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#view-profile .pf-meta{margin-top:4px;font-size:14px;color:#c2cbc1}
#view-profile .pf-meta{overflow-wrap:anywhere}
#view-profile .pf-uid-disclosure{margin-top:10px;color:#c9beb9;font-size:13px}
#view-profile .pf-uid-disclosure:has(#profileUidRow[style*="none"]){display:none}
#view-profile .pf-uid-disclosure > summary{display:list-item;width:fit-content;padding:5px 0;cursor:pointer}
#view-profile .pf-uid-disclosure > summary:focus-visible{outline:2px solid #dfc69c;outline-offset:3px}
#view-profile .pf-badge-row{justify-content:flex-start;margin-top:12px}
#view-profile .pf-badge{padding:4px 11px;border-radius:5px;background:#443a42;color:#e3e8df;font-size:13px;font-weight:600;letter-spacing:0}
#view-profile .pf-badge.gold{background:#c6aa7624;color:#edcf9b}
#view-profile .pf-uid{align-items:center;flex-wrap:wrap;gap:2px 8px;margin-top:6px;color:#b6bfb5;font-size:12px}
#view-profile .pf-uid code{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b6bfb5;font-size:12px}
#view-profile .pf-uid button{min-height:36px;padding:0 7px;background:none;border:0;color:#e3c58e;font:inherit;cursor:pointer}
#view-profile .pf-panels{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--profile-gap);align-items:start}
#view-profile .pf-panel{min-width:0;padding:22px;border:1px solid #514b48;border-radius:10px;background:#292528}
#view-profile .reading-library{margin:0;background:#292528}
#view-profile :is(.pf-panel,.pf-account-actions) h2{margin:0 0 12px;font:600 22px/1.5 var(--serif)}
#view-profile #profilePremiumPriceNote{margin:0 0 18px;font-size:14px!important;overflow-wrap:anywhere}
#view-profile .pf-upgrade{margin:0;padding:12px 16px;min-height:50px;border:1px solid #c6aa76;border-radius:7px;font-size:15px;font-weight:650;word-break:keep-all}
#view-profile .pf-upgrade::before{display:none}
#view-profile .pf-upgrade:hover:not(:disabled){background:#dfc28a}
#view-profile:has(.pf-badge.gold) .pf-upgrade{background:#382e29;border-color:#8b7853;color:#e9cfa0}
#view-profile:has(.pf-badge.gold) .pf-upgrade:hover:not(:disabled){background:#453831}
#view-profile .profile-plan-guide{display:block;width:auto;min-height:44px;margin:4px auto 0;padding:0 12px;border:0;background:none;color:#e0c38f;font:500 14px/1.5 var(--sans);cursor:pointer}
#view-profile .profile-plan-guide:hover{text-decoration:underline;text-underline-offset:4px}
#view-profile .pf-menu{margin:0;overflow:visible}
#view-profile .pf-menu-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:49px;
  padding:11px 10px;
  border:0;
  border-top:1px solid #514746;
  background:none;
  color:#f0ebe1;
  font:500 15px/1.65 var(--sans);
  text-align:left;
  word-break:keep-all;
}
#view-profile .pf-menu-item::after{content:"";width:7px;height:7px;flex:none;border:solid #c6aa76;border-width:1px 1px 0 0;transform:rotate(45deg);margin-right:3px}
#view-profile .pf-menu-item:hover{background:#382e35;color:#f4dbaa}
#view-profile .pf-account-actions{margin:0;padding:20px 0 0;border-top:1px solid #514b48}
#view-profile .pf-account-actions h2{font-size:18px}
#view-profile .pf-danger-note{margin:0;padding:0;border:0;background:none;font-size:13px;line-height:1.75;color:#aeb8ad;word-break:keep-all}
#view-profile .pf-danger-row{justify-content:flex-start;gap:12px;margin:7px 0 0;padding:0;border:0}
#view-profile .pf-danger-row button{min-height:44px;padding:0 10px;border:0;background:none;font:500 14px/1.5 var(--sans);color:#d4ddd0}
#view-profile .pf-danger-row .pf-delete{color:#e1a491}
#view-profile #profilePrivacySettings .pf-danger-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,max(8.5rem,calc((100% - 8px)/2))),1fr));
  gap:8px;
  margin-top:14px;
}
#view-profile #profilePrivacySettings .text-action {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:0;
  padding:7px 8px;
  border:1px solid #514746;
  border-radius:6px;
  background:transparent;
  color:#e8ded4;
  font:500 .9375rem/1.45 var(--sans);
  white-space:nowrap;
}
#view-profile #profilePrivacySettings .text-action[hidden] {display:none}
#view-profile #profilePrivacySettings .text-action:is(:hover,:focus-visible) {border-color:#a68f72}
#view-profile .pf-account-actions .pf-danger-row {flex-wrap:wrap}
#view-profile .pf-account-actions .text-action {white-space:nowrap}
#view-profile button:focus-visible{outline:2px solid #c6aa76;outline-offset:3px}
@media screen, (max-width: 680px) {
  #view-profile .pf-shell{width:calc(100% - 36px)}
  #view-profile .pf-panels{grid-template-columns:1fr}
  #view-profile .pf-card{gap:16px}
  #view-profile .pf-avatar{width:52px;height:52px;font-size:21px}
  #view-profile .pf-panel{padding:19px}
}
@media(max-width:380px){
  #view-profile .pf-card{padding:17px;align-items:flex-start}
}
