.space-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:0 0 16px;
  padding:0 2px;
}
.space-nav{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid rgba(167,116,62,.22);
  background:rgba(255,253,249,.78);
  color:#5E5953;
  font:600 .74rem "Manrope",sans-serif;
  letter-spacing:.04em;
  cursor:pointer;
}
.space-nav:hover,.space-nav.active{
  border-color:rgba(167,116,62,.48);
  color:#7E542C;
  background:#FFFDF9;
}
.profile-nav img,.profile-nav-initial{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
}
.profile-nav-initial{
  display:inline-grid;
  place-items:center;
  background:#A7743E;
  color:#fff;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1rem;
}
.space-page{
  max-width:980px;
  margin:18px auto 54px;
  padding:clamp(28px,5vw,52px);
  background:rgba(255,253,249,.90);
  border:1px solid rgba(167,116,62,.20);
  box-shadow:0 24px 70px rgba(49,39,30,.07);
}
.space-page-head{
  max-width:760px;
  margin:10px 0 34px;
}
.space-page-head h1{
  margin:0;
  color:#262421;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(3rem,6vw,5rem);
  font-weight:500;
  line-height:.98;
  letter-spacing:-.035em;
}
.space-page-head>p:last-child{
  margin:18px 0 0;
  color:#6D665F;
  line-height:1.7;
}
.mirror-library{
  display:grid;
  gap:12px;
}
.mirror-library-item{
  display:grid;
  grid-template-columns:minmax(120px,.35fr) minmax(0,1.5fr) minmax(130px,.45fr) auto;
  align-items:center;
  gap:18px;
  width:100%;
  padding:22px 24px;
  text-align:left;
  border:1px solid rgba(167,116,62,.20);
  background:#FFFDF9;
  color:#262421;
  cursor:pointer;
}
.mirror-library-item:hover{
  border-color:rgba(167,116,62,.46);
  box-shadow:0 12px 30px rgba(49,39,30,.06);
}
.mirror-library-item strong{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.55rem;
  font-weight:500;
  line-height:1.15;
}
.mirror-library-item span{
  color:#766F68;
  font-size:.82rem;
}
.mirror-library-item em{
  color:#A7743E;
  font-size:.78rem;
  font-style:normal;
  font-weight:700;
  white-space:nowrap;
}
.mirror-library-date{
  color:#9B744C!important;
  font-weight:700;
  letter-spacing:.04em;
}
.empty-space-card{
  padding:40px;
  border:1px solid rgba(167,116,62,.18);
  background:#F8F3EB;
}
.empty-space-card h2{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:2rem;
  font-weight:500;
}
.empty-space-card p{
  max-width:650px;
  margin:12px 0 0;
  color:#6D665F;
  line-height:1.7;
}
.archive-mirror{
  margin-top:18px;
}
.profile-message{
  margin:0 0 24px;
  padding:14px 16px;
  border-left:3px solid #A7743E;
  background:#F8F3EB;
  color:#5E5953;
}
.profile-layout{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:36px;
  align-items:start;
}
.profile-photo-card{
  position:sticky;
  top:20px;
  display:grid;
  justify-items:center;
  gap:14px;
  padding:24px;
  background:#F8F3EB;
  border:1px solid rgba(167,116,62,.18);
  text-align:center;
}
.profile-photo{
  width:160px;
  height:160px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(167,116,62,.28);
  background:#EEE6DB;
}
.profile-photo-placeholder{
  display:grid;
  place-items:center;
  color:#fff;
  background:#A7743E;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:4rem;
}
.profile-upload-button{
  display:inline-block;
  padding:10px 14px;
  border:1px solid #A7743E;
  color:#7E542C;
  background:#FFFDF9;
  font:700 .72rem "Manrope",sans-serif;
  letter-spacing:.06em;
  cursor:pointer;
}
.profile-photo-card p{
  margin:0;
  color:#827A72;
  font-size:.75rem;
  line-height:1.5;
}
.profile-form{
  display:grid;
  gap:24px;
}
.profile-form label{
  display:grid;
  gap:9px;
  color:#49443F;
  font:600 .82rem "Manrope",sans-serif;
}
.profile-form input,.profile-form textarea,.profile-form select{
  width:100%;
  box-sizing:border-box;
}
.profile-form textarea{
  min-height:118px;
  padding:14px 16px;
  color:#262421;
  background:#FFFDF9;
  border:1px solid rgba(90,76,62,.20);
  border-radius:0;
  font:400 .95rem "DM Sans",sans-serif;
  line-height:1.6;
  resize:vertical;
}
.profile-questions{
  display:grid;
  gap:18px;
  margin-top:4px;
}
.profile-questions>div{
  position:relative;
  padding:22px 22px 20px 52px;
  background:#F8F3EB;
  border:1px solid rgba(167,116,62,.16);
}
.profile-question-number{
  position:absolute;
  top:22px;
  left:18px;
  color:#A7743E;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.1rem;
}
.profile-save{
  justify-self:start;
  margin-top:4px;
}
@media(max-width:760px){
  .space-toolbar{
    justify-content:flex-start;
    overflow:auto;
    padding-bottom:4px;
  }
  .space-nav{white-space:nowrap}
  .space-page{padding:26px 20px}
  .profile-layout{grid-template-columns:1fr}
  .profile-photo-card{position:static}
  .mirror-library-item{
    grid-template-columns:1fr;
    gap:7px;
  }
  .mirror-library-item em{margin-top:5px}
}

.journey-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  margin:0 0 20px;
  padding:26px 28px;
  background:#F8F3EB;
  border:1px solid rgba(167,116,62,.18);
}
.journey-overview h2{
  margin:0;
  color:#262421;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2rem,4vw,3rem);
  font-weight:500;
  line-height:1.05;
}
.journey-overview p:last-child{
  margin:12px 0 0;
  color:#6D665F;
  line-height:1.6;
}
.journey-progress-ring{
  display:grid;
  place-items:center;
  align-content:center;
  width:94px;
  height:94px;
  border:1px solid rgba(167,116,62,.42);
  border-radius:50%;
  background:#FFFDF9;
}
.journey-progress-ring strong{
  color:#7E542C;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.85rem;
  font-weight:500;
  line-height:1;
}
.journey-progress-ring span{
  margin-top:4px;
  color:#7C746C;
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.journey-before-card,.journey-mirror-card{
  display:grid;
  gap:8px;
  width:100%;
  margin:0 0 14px;
  padding:24px 26px;
  text-align:left;
  border:1px solid rgba(167,116,62,.22);
  background:#FFFDF9;
  color:#262421;
  cursor:pointer;
}
.journey-before-card:hover,.journey-mirror-card:hover:not(:disabled){
  border-color:rgba(167,116,62,.48);
  box-shadow:0 12px 30px rgba(49,39,30,.05);
}
.journey-before-card strong,.journey-mirror-card strong{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.75rem;
  font-weight:500;
}
.journey-before-card>span:not(.journey-step),.journey-mirror-card>span:not(.journey-step){
  color:#706961;
  line-height:1.55;
}
.journey-before-card em,.journey-mirror-card em{
  margin-top:4px;
  color:#A7743E;
  font-size:.76rem;
  font-style:normal;
  font-weight:700;
  letter-spacing:.04em;
}
.journey-step{
  color:#9B744C;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.16em;
}
.journey-days{
  display:grid;
  gap:12px;
  margin:14px 0;
}
.journey-day-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  width:100%;
  padding:24px;
  text-align:left;
  border:1px solid rgba(167,116,62,.20);
  background:#FFFDF9;
  color:#262421;
  cursor:pointer;
}
.journey-day-card:hover:not(:disabled){
  border-color:rgba(167,116,62,.46);
  box-shadow:0 12px 30px rgba(49,39,30,.05);
}
.journey-day-card.locked,.journey-mirror-card.locked{
  opacity:.56;
  cursor:default;
  background:#EEE8DF;
}
.journey-day-number{
  color:#A7743E;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:2rem;
}
.journey-day-copy{
  display:grid;
  gap:6px;
}
.journey-day-copy small{
  color:#9B744C;
  font-size:.64rem;
  font-weight:700;
  letter-spacing:.13em;
}
.journey-day-copy strong{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.55rem;
  font-weight:500;
  line-height:1.1;
}
.journey-day-copy em{
  color:#777069;
  font-size:.84rem;
  font-style:normal;
}
.journey-day-arrow{
  color:#A7743E;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
}
.journey-continue{
  margin-top:18px;
}
.space-course-back{
  margin-bottom:18px;
}
@media(max-width:640px){
  .journey-overview{
    grid-template-columns:1fr;
  }
  .journey-progress-ring{
    width:78px;
    height:78px;
  }
  .journey-day-card{
    grid-template-columns:44px 1fr;
  }
  .journey-day-arrow{
    grid-column:2;
  }
}

.mirror-allowance-card,
.pattern-pace-message{
  margin:0 0 18px;
  padding:22px 24px;
  border:1px solid rgba(167,116,62,.24);
  background:#F8F3EB;
}
.mirror-allowance-card h3,
.pattern-pace-message h3{
  margin:4px 0 8px;
  color:#332E29;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.55rem;
  font-weight:500;
}
.mirror-allowance-card p:last-child,
.pattern-pace-message p:last-child{
  margin:0;
  color:#6D665F;
  line-height:1.6;
}


/* Integration Space sanctuary navigation */
.space-toolbar{
  gap:8px;
  margin-bottom:14px;
}
.space-nav{
  border-color:rgba(103,30,42,.14);
  background:rgba(255,252,247,.72);
  color:#625A54;
}
.space-nav:hover,.space-nav.active{
  border-color:rgba(103,30,42,.34);
  color:#671E2A;
  background:#FFFCF7;
}

.space-toolbar.space-toolbar-header{
  margin:0;
  padding:0;
}
@media(max-width:900px){
  .space-toolbar.space-toolbar-header{justify-content:flex-start}
}

/* Comfortable reading for new and archived Pattern Mirrors. */
.pattern-mirror-page,.space-page:has(.archive-mirror){max-width:920px;margin-inline:auto}
.pattern-mirror-page .mirror,.archive-mirror{display:block!important;width:100%!important;max-width:72ch!important;margin-inline:auto}
.pattern-mirror-page .mirror-section,.archive-mirror .mirror-section{
 display:block!important;background:#fffaf3!important;border:1px solid #decdbb!important;
 border-radius:12px!important;padding:24px 26px!important;margin:18px 0!important;box-shadow:none!important;
}
.pattern-mirror-page .mirror-section h3,.archive-mirror .mirror-section h3{
 color:#64412d!important;font:600 1.1rem/1.4 "Manrope",Arial,sans-serif!important;
 letter-spacing:0!important;text-transform:none!important;margin:0 0 14px!important;
}
.pattern-mirror-page .mirror-section p,.archive-mirror .mirror-section p,
.pattern-mirror-page .lead{color:#392e27!important;font:400 1.04rem/1.85 "Manrope",Arial,sans-serif!important;letter-spacing:0!important}
.pattern-mirror-page .thread-card,.space-page:has(.archive-mirror) .thread-card{
 max-width:72ch!important;margin:26px auto!important;padding:24px 26px!important;
 background:#f6ead8!important;color:#392e27!important;border:1px solid #d8b991!important;
}
.pattern-mirror-page .thread-card>p:not(.eyebrow),.space-page:has(.archive-mirror) .thread-card>p:not(.eyebrow){color:#392e27!important;font:400 1.15rem/1.65 "Manrope",Arial,sans-serif!important}
.mirror-access-notice{max-width:760px;padding:25px;background:#fff7ed;border:1px solid #d8bd9e;border-radius:14px}
.mirror-access-notice h2{font-size:1.7rem!important}
.mirror-offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.mirror-offer{padding:28px;background:#fff8ee;border:1px solid #d8bd9e;border-radius:14px}
.mirror-offer h2{font:400 2rem "Cormorant Garamond",Georgia,serif;color:#64412d}
.mirror-offer p,.mirror-offer-note{color:#544235;line-height:1.7}
.mirror-offer a{text-decoration:none;display:inline-block;margin-top:16px}
.navigation-back{margin-bottom:20px}
@media(max-width:640px){
 .pattern-mirror-page .mirror-section,.archive-mirror .mirror-section{padding:20px 18px!important}
 .pattern-mirror-page .mirror-section p,.archive-mirror .mirror-section p{font-size:1rem!important;line-height:1.8!important}
 .mirror-offer-grid{grid-template-columns:1fr}
 .mirror-offer{padding:23px}
}

/* Compact reading view for both newly created and saved Mirrors. */
.pattern-mirror-page,.space-page:has(.compact-pattern-mirror){max-width:760px!important;margin-inline:auto}
.compact-pattern-mirror{max-width:60ch;margin:24px auto}
.mirror-reading h2{font-size:1.12rem!important;line-height:1.4!important;margin:22px 0 10px!important}
.mirror-reading h2 span{color:#956b46;margin-right:8px}
.mirror-reading p,.compact-pattern-mirror .thread-card>p:not(.eyebrow),.mirror-depth p{font:400 1rem/1.65 "Manrope",Arial,sans-serif!important;color:#392e27!important}
.compact-pattern-mirror .thread-card{padding:18px 20px!important;margin:22px 0!important}
.mirror-depth{border-top:1px solid #d8c8b8;border-bottom:1px solid #d8c8b8;margin-top:20px}
.mirror-depth summary{padding:16px 0;cursor:pointer;font:600 .95rem/1.5 "Manrope",Arial,sans-serif;color:#604634}
.mirror-depth .mirror-section{background:transparent!important;box-shadow:none!important;border:0!important;padding:8px 0 16px!important;margin:0!important}
.mirror-depth h3{font-size:1rem!important;margin:6px 0!important}
.pattern-mirror-page>h1,.space-page:has(.compact-pattern-mirror) h1{font-size:clamp(1.8rem,4vw,2.5rem)!important;line-height:1.2!important}
.pattern-mirror-page>.lead{font-size:1rem!important;line-height:1.65!important}
.pattern-mirror-page .completion{padding:18px!important}
@media(max-width:640px){.compact-pattern-mirror{margin:18px auto}.pattern-mirror-page,.space-page:has(.compact-pattern-mirror){padding:22px 18px!important}}

/* Keep the personal thread readable on its burgundy card in every Mirror view. */
.compact-pattern-mirror .thread-card{background:var(--burgundy)!important;border-color:var(--burgundy)!important;color:#fff6e9!important}
.compact-pattern-mirror .thread-card>p:not(.eyebrow){color:#fff6e9!important}
.compact-pattern-mirror .thread-card .eyebrow{color:#f3dcc4!important}

.mirror-version-history{margin-top:24px;padding-top:18px;border-top:1px solid #d8c8b8}.mirror-version-history h3{font-size:1.05rem}.mirror-version-history p{font-size:.95rem;line-height:1.6}.mirror-version-history .mirror-depth section{margin:18px 0}

.membership-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.membership-plan{padding:26px;border:1px solid #d8c8b8;border-radius:16px;background:#fff8ef}
.membership-plan h2{font-size:2rem}.membership-plan p,.membership-plan li{font-size:1rem;line-height:1.65}
.membership-plan .dashboard-primary{display:block;margin-top:12px;text-align:center;text-decoration:none}
.integration-plan{border-top:4px solid #9c724d}.membership-price{font-size:1.25rem!important;color:#6a4531}.membership-price span{display:block;font-size:.95rem}
.journal-coming,#integrationGift,.mirror-revisit-invitation{margin:28px 0;padding:22px 0;border-top:1px solid #d8c8b8}
.mirror-revisit-form label{display:block;margin:20px 0 8px;font-weight:600}.mirror-revisit-form textarea{width:100%;min-height:110px}
.daily-whisper-reading{max-width:65ch;margin:20px auto;padding:20px;background:#fff8ef;border-radius:12px}.daily-whisper-reading p{font:400 1rem/1.75 "Manrope",Arial,sans-serif}
#billingOwnerSetup input{display:block;width:100%;padding:14px;margin:12px 0;box-sizing:border-box}
@media(max-width:700px){.membership-plan-grid{grid-template-columns:1fr}.membership-plan{padding:22px}}

.whisper-collection{max-width:680px;margin:0 auto}.whisper-collection select{width:100%;padding:12px;border:1px solid #d9cbbc;border-radius:8px;background:#fffaf4;color:#49352d;font:inherit;margin:8px 0 24px}.whisper-collection article h3{font-size:clamp(24px,4vw,32px);line-height:1.2}.whisper-collection article h4{font-size:19px;margin:0 0 10px}.whisper-collection article section{margin:24px 0;padding:18px 0;border-bottom:1px solid #e6d8c8}.whisper-collection article p{line-height:1.75;font-size:17px}.whisper-collection .whisper-reminder,.whisper-collection .whisper-prompt{background:#f4ece1;padding:22px;border-radius:12px;border:0}.whisper-pagination{display:flex;gap:12px;justify-content:space-between;margin-top:24px}.whisper-pagination button:disabled{opacity:.45}

.profile-circumstances{min-width:0;border:1px solid #dfd0c5;border-radius:12px;padding:20px;display:grid;gap:16px}.profile-circumstances legend{padding:0 8px;color:#762b40;font-weight:600}.profile-circumstances .helper{margin:0}.profile-circumstances select{width:100%;min-height:46px;color:#45372e;background:#fffdf9;font:inherit}
