@font-face{font-family:Inter;src:url('./assets/inter-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#F7F5F0;--card:#fff;--text:#242424;--muted:#666;--gold:#B69A68;--line:#e9e4da;--gold-dark:#806537;color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--gold-dark);outline-offset:5px}button{color:inherit}svg{width:24px;height:24px;flex-shrink:0}button[hidden]{display:none}.app-shell{max-width:1000px;margin:auto;padding:0 40px 120px}.brand-header{display:flex;align-items:center;justify-content:space-between;padding:30px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:15px;font-size:19px;font-weight:500;letter-spacing:3.3px}.brand small{display:block;font-size:9px;letter-spacing:1.8px;margin-top:7px;color:var(--muted);font-weight:400}.brand-mark{font-size:45px;line-height:1;color:var(--gold);font-weight:300}.round-button{background:transparent;border:1px solid var(--line);border-radius:50%;width:44px;height:44px;display:grid;place-items:center}.round-button svg{width:21px}main{outline:none}.intro{padding:36px 0 27px}.eyebrow{color:var(--gold-dark);font-size:11px;font-weight:500;letter-spacing:2px;line-height:1.8}.intro h1{font-size:32px;font-weight:400;letter-spacing:-1.3px;margin:12px 0}.intro p{color:var(--muted);margin:0;font-size:17px;line-height:1.65}.hero{position:relative;overflow:hidden;border:1px solid #e2d8c6;background:linear-gradient(115deg,#ede6d9,#f5f0e7 60%,#e9e1d3);border-radius:24px;padding:32px;min-height:270px;display:flex;align-items:center}.hero-content{position:relative;z-index:1;width:65%}.hero h2{font-size:32px;letter-spacing:-1px;font-weight:400;margin:13px 0}.hero p{color:#605b51;line-height:1.6;max-width:330px;margin:0 0 24px}.primary-button{display:inline-flex;justify-content:center;align-items:center;padding:15px 24px;background:var(--text);color:white;border:0;border-radius:12px;font-size:15px;min-height:50px;transition:background .2s}.primary-button:hover{background:#4b4336}.rune-art{position:absolute;width:280px;height:280px;right:0;top:50%;transform:translateY(-50%);color:var(--gold)}.rune-art svg{width:100%;height:100%}.hero-note{display:inline-block;font-size:11px;letter-spacing:1px;margin-left:17px;color:#6b6252}.section-title{display:flex;align-items:center;justify-content:space-between;margin:34px 0 18px}.section-title h2{font-size:21px;font-weight:450;letter-spacing:-.6px;margin:0}.section-title span{font-size:12px;color:var(--muted)}.section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.section-card{background:var(--card);border:1px solid #eeeae3;border-radius:20px;padding:24px;position:relative;min-height:176px;transition:transform .2s,border-color .2s}.section-card:hover{transform:translateY(-3px);border-color:#cbbb9e}.section-card .icon-box{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f8f5ef;color:#9c8050;margin-bottom:20px}.section-card h3{font-size:18px;font-weight:450;line-height:1.4;margin:0 0 7px;letter-spacing:-.4px}.section-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}.card-detail{position:absolute;right:23px;top:32px;width:5px;height:5px;background:#d9cbb2;border-radius:50%}.invitation{margin:28px 0 0;text-align:center;padding:24px;border-top:1px solid var(--line)}.invitation span{color:var(--gold);font-size:22px}.invitation p{font-size:15px;color:var(--muted);line-height:1.7;margin:12px 0 0}.quiet-footer{text-align:center;color:#666;font-size:11px;letter-spacing:1.1px;margin-top:20px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:35px;padding:13px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.95);backdrop-filter:blur(20px)}.nav-item{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:68px;color:var(--muted);font-size:10px;position:relative;padding:3px 0}.nav-item svg{width:23px;height:23px}.nav-item[aria-current=page]{color:var(--gold-dark)}.nav-item[aria-current=page]:before{content:'';position:absolute;top:-17px;width:24px;height:2px;background:var(--gold);border-radius:2px}.back-link{display:inline-flex;gap:8px;align-items:center;color:var(--muted);font-size:14px;margin-top:26px;min-height:44px}.back-link svg{width:18px}.section-intro{padding:24px 0}.section-intro h1{font-size:30px;font-weight:400;letter-spacing:-1px;line-height:1.3;margin:12px 0}.section-intro p{color:var(--muted);line-height:1.7;margin:0;max-width:600px}.empty-state{padding:65px 28px;background:#fff;border:1px solid var(--line);border-radius:24px;text-align:center;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-icon{width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:#f8f5ef;color:var(--gold);margin-bottom:18px}.empty-icon svg{width:34px;height:34px}.empty-state h2{font-size:22px;font-weight:400;margin:0 0 12px}.empty-state p{color:var(--muted);line-height:1.7;max-width:360px;margin:0 0 22px;font-size:17px}.text-button{display:inline-block;background:none;border:0;color:var(--gold-dark);font-size:15px;padding:12px}.all-grid{margin-top:8px}dialog{border:1px solid var(--line);border-radius:24px;padding:40px 28px 24px;max-width:460px;width:calc(100% - 32px);background:var(--bg);color:var(--text)}dialog::backdrop{background:#24242466;backdrop-filter:blur(4px)}dialog h2{font-weight:400;font-size:26px;line-height:1.35;letter-spacing:-.6px}dialog p{font-size:17px;line-height:1.7}dialog .muted{font-size:14px;color:var(--muted)}.close-dialog.round-button{position:absolute;right:14px;top:14px;width:32px;height:32px;font-size:22px}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:15px}.skip-link:focus{top:10px}
@media(min-width:760px){.section-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{min-height:300px;padding:38px}.rune-art{right:40px;width:300px;height:300px}.intro h1{font-size:38px}.intro{padding-top:40px}.bottom-nav{gap:65px}.hero-content{width:60%}}
@media(max-width:520px){.app-shell{padding:0 22px 112px}.brand-header{padding:22px 0}.brand{font-size:16px;letter-spacing:2.5px;gap:11px}.brand small{font-size:8px;letter-spacing:1.2px}.brand-mark{font-size:39px}.brand-header .round-button{width:38px;height:38px}.intro{padding:29px 0 23px}.intro h1{font-size:29px}.intro p{font-size:17px;max-width:300px}.hero{min-height:285px;padding:25px 22px;border-radius:21px}.hero-content{width:78%}.hero h2{font-size:29px}.hero p{max-width:210px;font-size:17px}.rune-art{width:210px;height:210px;right:-67px;opacity:.7}.hero-note{margin-left:11px;font-size:10px}.section-card{padding:20px 17px;min-height:190px;border-radius:18px}.section-card h3{font-size:17px}.section-card p{font-size:14px}.section-card .icon-box{margin-bottom:17px}.section-title{margin-top:29px}.section-title h2{font-size:21px}.section-title span{font-size:11px}.card-detail{right:18px;top:28px}.bottom-nav{gap:0;justify-content:space-around;padding-left:9px;padding-right:9px}.nav-item{min-width:55px;font-size:10px}.section-intro h1{font-size:28px}.empty-state{padding:44px 23px}.invitation{padding-left:0;padding-right:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.daily-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.daily-card,
.daily-message {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.daily-list .daily-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.daily-list .daily-image {
  width: clamp(72px, 20vw, 120px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.daily-card h2,
.hero h2 {
  overflow-wrap: anywhere;
}

.daily-card h2 {
  font-weight: 450;
  font-size: clamp(18px, 4vw, 25px);
  margin: 5px 0 0;
}

.daily-date {
  color: var(--gold-dark);
  font-size: .82rem;
  margin: 0;
}

.daily-article {
  overflow: hidden;
}

.daily-article > div,
.daily-message {
  padding: clamp(20px, 5vw, 34px);
}

.daily-article .daily-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f1ede5;
}

.daily-body {
  margin: 18px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.daily-message {
  margin: 0;
  color: var(--muted);
}

.hero p {
  overflow-wrap: anywhere;
}

.ritual-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.ritual-heading .text-button {
  padding-left: 0;
}

.ritual-summary {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ritual-materials {
  margin-top: 26px;
}

.ritual-materials h3 {
  font-size: 18px;
  font-weight: 500;
}

.ritual-materials ul {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ritual-media {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg);
}

.ritual-download {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.news-content {
  display: grid;
  gap: 16px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin-top: 20px;
}

.news-gallery img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg);
}

.news-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.news-buttons a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.meditation-list {
  display: grid;
  gap: 16px;
}

.meditation-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 4vw, 24px);
  padding: clamp(14px, 4vw, 24px);
}

.meditation-cover {
  width: clamp(68px, 22vw, 142px);
  aspect-ratio: 1;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg);
}

.meditation-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold-dark);
}

.meditation-copy {
  min-width: 0;
}

.meditation-copy .primary-button {
  margin-top: 14px;
}

.meditation-player[hidden] {
  display: none;
}

.meditation-player {
  position: fixed;
  z-index: 11;
  bottom: calc(60px + env(safe-area-inset-bottom));
  inset-inline: 0;
  width: min(100%, 780px);
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgb(36 36 36 / 10%);
  padding: 8px 16px 12px;
}

.meditation-player-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.meditation-player-heading > div {
  min-width: 0;
}

.meditation-player-heading strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

#meditation-duration,
#meditation-playback-error {
  font-size: 13px;
  color: var(--muted);
}

#meditation-playback-error {
  margin: 5px 0 0;
}

#meditation-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
}

.meditation-player audio {
  display: block;
  width: 100%;
  height: 54px;
}

.meditation-player-open .app-shell {
  padding-bottom: calc(120px + var(--meditation-player-height, 125px));
}

.chat-history,
.chat-moderation {
  display: grid;
  gap: 12px;
}

.chat-paging,
.chat-message-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
}

.chat-paging button[hidden],
.chat-compose[hidden] {
  display: none;
}

.chat-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow-wrap: anywhere;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold-dark);
  object-fit: cover;
}

.chat-meta {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.chat-message-text {
  margin: 7px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.chat-photo {
  display: block;
  max-width: min(100%, 440px);
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 10px;
}

.chat-compose {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
}

.chat-compose textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
}

.chat-compose input {
  max-width: 100%;
}

.chat-compose button {
  justify-self: start;
}

.chat-compose button:disabled {
  opacity: .6;
}

.chat-history {
  max-height: none;
  height: auto;
  overflow: visible;
  overflow-anchor: none;
  overscroll-behavior: auto;
}

.chat-record-tools[hidden],
.chat-record-tools [hidden] {
  display: none;
}

.chat-record-tools .text-button,
.chat-video-wrap .text-button {
  min-height: 44px;
}

.chat-record-tools .text-button:disabled {
  opacity: .5;
}

.chat-record-panel {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chat-record-panel .chat-meta {
  margin: 0 0 6px;
}

.chat-record-preview video {
  display: block;
  width: min(100%, 280px);
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--text);
}

.chat-voice,
.chat-record-preview audio {
  display: block;
  width: min(100%, 380px);
  margin-top: 8px;
}

.chat-video-wrap {
  margin-top: 10px;
}

.chat-video-circle {
  display: block;
  width: min(100%, 224px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--text);
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-actions [hidden],
.bottom-nav[hidden] {
  display: none;
}

.brand-actions .text-button {
  min-height: 44px;
  padding-inline: 8px;
}

.member-gate {
  margin: clamp(24px, 8vw, 72px) auto 0;
  max-width: 560px;
}

.member-gate h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 400;
  margin: 0;
}

.member-gate .primary-button {
  margin-top: 20px;
}

.login-options {
  display: grid;
  gap: 12px;
}

.login-option {
  padding: 10px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.login-option .text-button {
  padding-inline: 0;
}

.login-option p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-options > .primary-button,
.member-gate .login-options > .primary-button {
  justify-self: start;
  margin-top: 6px;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  color: var(--gold-dark);
  font-size: 26px;
  margin-bottom: 18px;
}

.member-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 16px;
}

.member-facts dt {
  color: var(--muted);
}

.member-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.member-purchase {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.member-purchase p {
  margin: 0 0 10px;
}

.rune-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 760px;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.rune-chat [hidden] { display: none; }

.rune-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rune-toolbar select,
.rune-compose textarea {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  padding: 8px 12px;
}

.rune-toolbar select { max-width: min(100%, 28rem); }
.rune-toolbar button { min-height: 44px; }
.rune-chat button:disabled { opacity: .55; cursor: default; }
.rune-chat textarea:focus-visible,
.rune-chat select:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.rune-transcript {
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 4px;
}

.rune-message {
  width: fit-content;
  max-width: min(100%, 38rem);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.rune-message--question { justify-self: end; background: var(--bg); }
.rune-message h2 { font-size: 13px; color: var(--gold-dark); font-weight: 600; margin: 0 0 6px; }
.rune-message p { white-space: pre-wrap; margin: 0; line-height: 1.55; }
.rune-message img { display: block; max-width: 100%; height: auto; margin-top: 12px; border-radius: 8px; }
.rune-empty { margin: 6px 0 10px; line-height: 1.6; color: var(--muted); }
.rune-compose { display: grid; gap: 8px; }
.rune-compose label { color: var(--muted); font-size: 14px; }
.rune-compose > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.rune-compose textarea { width: 100%; resize: vertical; }
.rune-compose .primary-button { padding-inline: 16px; }
.rune-status { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rune-status:empty { display: none; }

@media (max-width: 520px) {
  .rune-toolbar select { width: 100%; }
  .rune-compose > div { grid-template-columns: minmax(0, 1fr); }
  .rune-compose .primary-button { justify-self: end; }
}

.publication-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 12px; }
.publication-copy { color: var(--ink, #242424); overflow-wrap: anywhere; white-space: pre-wrap; }
.publication-copy p { margin: 0 0 0.8em; }
.publication-copy ul { padding-inline-start: 1.4em; margin-block: 0 0.8em; }
.publication-media { display: grid; gap: 12px; padding: 0; list-style: none; margin-block: 16px; }
.publication-media img, .publication-media video { width: 100%; max-height: 65vh; object-fit: contain; border-radius: 15px; }
.publication-media audio { width: 100%; }
.publication-editor { width: 100%; }
.publication-editor form { display: grid; gap: 15px; }
.publication-editor form > label { display: grid; gap: 6px; }
.publication-editor form > label[hidden], .publication-toolbar[hidden] { display: none; }
.publication-editor input:not([type="checkbox"]), .publication-editor select, .publication-editor textarea {
 width: 100%; min-width: 0; padding: 11px; border: 1px solid #e7dfce; border-radius: 12px;
 background: #fff; color: #242424; font: inherit;
}
.publication-editor .field-note { color: #666; font-size: 0.9rem; margin: 0; }
.publication-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.publication-toolbar button {
 min-height: 44px; padding: 4px 10px; border: 1px solid #e7dfce; border-radius: 10px;
 background: #f7f5f0; color: #242424; font: inherit; cursor: pointer;
}
.publication-editor h1, .publication-editor h2 { margin-block: 0 14px; }
.publication-upcoming { margin-top: 24px; }
.publication-files { padding-left: 18px; }
.publication-files li { overflow-wrap: anywhere; margin-bottom: 8px; }
.publication-files label { display: block; }

.publication-delete { color: #813d3d; }
.news-post[id] { scroll-margin-top: 16px; }

.chat-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-emojis button {
 min-width: 40px; min-height: 40px; padding: 2px 6px; background: #f7f5f0;
 border: 1px solid #e7dfce; border-radius: 10px; font: inherit;
}
.chat-message .chat-delete { min-height: 36px; margin-top: 6px; color: #813d3d; }
.chat-video-circle { cursor: pointer; }

.chat-message-menu { margin-inline-start: auto; text-align: right; }
.chat-message-menu > summary {
 display: grid; place-items: center; min-width: 44px; min-height: 44px;
 border-radius: 10px; color: var(--muted); font-size: 1.45rem; cursor: pointer; list-style: none;
}
.chat-message-menu > summary::-webkit-details-marker { display: none; }
.chat-voice[data-chat-player] {
 display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center;
 gap: 0 10px; width: min(100%, 330px); padding: 6px 10px 6px 6px;
 border-radius: 15px; background: var(--bg);
}
.chat-voice input { min-width: 0; width: 100%; height: 26px; margin: 0; accent-color: var(--gold-dark); }
.chat-voice [data-chat-time] { grid-column: 2; font-variant-numeric: tabular-nums; }
.chat-play-toggle {
 grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
 background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 50%;
 cursor: pointer; font: inherit;
}
.chat-video-wrap { position: relative; width: min(100%, 224px); }
.chat-video-wrap .chat-video-circle { width: 100%; }
.chat-circle-toggle {
 position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
 background: none; border: 0; border-radius: 50%; color: white; cursor: pointer;
}
.chat-circle-toggle span {
 display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
 background: rgb(0 0 0 / 56%); padding-inline-start: 3px;
}
.chat-circle-toggle[aria-pressed="true"] span { visibility: hidden; }

/* Per-device notification preference, with an accessible switch button. */
.push-switch{display:flex;align-items:center;gap:.5rem;width:100%;text-align:left;white-space:normal}
.push-switch-track{display:block;flex:0 0 46px;height:28px;margin-left:auto;padding:3px;border-radius:20px;background:#8b8b83}
.push-switch-track>span{display:block;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.push-switch[aria-checked="true"] .push-switch-track{background:#ae8b42}
.push-switch[aria-checked="true"] .push-switch-track>span{transform:translateX(18px)}
.push-switch:disabled{opacity:.65;cursor:default}
.push-switch:focus-visible{outline:3px solid #ae8b42;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.push-switch-track>span{transition:none}}
.push-switch-caption{flex:1;min-width:0;overflow-wrap:anywhere}

/* One calm, private rune for the Moscow day. Animation uses opacity and a small translation only. */
.rune-day-intro{text-align:center;margin-bottom:0}
.rune-day-panel{max-width:640px;margin:0 auto 32px;text-align:center;padding:0 10px 24px}
.rune-day-stage{position:relative;width:min(72vw,300px);aspect-ratio:1;margin:0 auto;display:grid;place-items:center;isolation:isolate}
.rune-day-halo{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#dec68b55 0%,#e8d6ae20 42%,transparent 70%);opacity:.35;z-index:-1}
.rune-day-seed{font-family:Georgia,serif;font-size:62px;color:#b89a5b;opacity:.65;font-weight:normal}
.rune-day-image{display:block;width:100%;height:auto;max-width:300px}
.rune-day-date{font-size:12px;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}
.rune-day-invitation{font-family:Georgia,serif;font-size:21px;line-height:1.6;color:var(--text);margin:18px 0 26px}
.rune-day-copy{max-width:530px;margin:auto}
.rune-day-copy h2{font-family:Georgia,serif;font-size:40px;font-weight:normal;margin:12px 0 24px;color:#92713d}
.rune-day-message{font-size:16px;line-height:1.85;text-align:left}
.rune-day-message p{margin:0 0 18px}
.rune-day-hint{border-top:1px solid #c7ad7738;border-bottom:1px solid #c7ad7738;padding:22px 12px;margin:26px 0}
.rune-day-hint h3{font-size:11px;letter-spacing:.15em;text-transform:uppercase;font-weight:500;color:#937746;margin:0 0 12px}
.rune-day-hint p{font-size:15px;line-height:1.75;margin:0}
.rune-day-attitude{font-family:Georgia,serif;font-size:22px;line-height:1.5;color:#92713d;font-style:italic;margin:26px 8px}
.rune-day-next{font-size:12px;line-height:1.6;color:var(--muted);margin:24px 0 0}
.rune-day-note{font-size:15px;line-height:1.75;max-width:380px;margin:12px auto 24px}
.is-drawing .rune-day-halo{animation:rune-breath 3.6s ease-in-out infinite}
.rune-day-reveal .rune-day-halo{animation:rune-glow 1.8s ease-out both}
.rune-day-reveal .rune-day-image{animation:rune-emerge 1.3s .15s ease-out both}
.rune-day-reveal .rune-day-copy{animation:rune-emerge .95s 1.1s ease-out both}
@keyframes rune-breath{0%,100%{opacity:.35}50%{opacity:.85}}
@keyframes rune-glow{0%{opacity:.35}45%{opacity:.9}100%{opacity:.5}}
@keyframes rune-emerge{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:380px){.rune-day-invitation{font-size:18px}.rune-day-copy h2{font-size:34px}.rune-day-message{font-size:15px}.rune-day-attitude{font-size:20px}}
@media(prefers-reduced-motion:reduce){.rune-day-panel *{animation:none!important;transition:none!important}}

.push-welcome{max-width:min(440px,calc(100vw - 32px));padding:32px 26px;border:1px solid #d8c79f;border-radius:24px;background:#faf8f3;text-align:center;color:var(--text)}
.push-welcome::backdrop{background:rgb(52 43 26 / 30%)}
.push-welcome-mark{display:block;font-family:Georgia,serif;font-size:46px;color:#b08c46}
.push-welcome h2{font-family:Georgia,serif;font-weight:normal;font-size:28px;line-height:1.3}
.push-welcome p{font-size:15px;line-height:1.7}.push-welcome #push-status{font-size:13px;color:var(--muted)}
.push-welcome button{display:block;margin:14px auto 0;min-height:44px}.push-welcome button[hidden]{display:none}

.rune-day-affirmation h3{font-size:11px;letter-spacing:.15em;text-transform:uppercase;font-weight:500;color:#937746;margin:26px 0 0}
.rune-day-affirmation .rune-day-attitude{margin-top:14px}

.rune-assistant-intro{position:sticky;top:8px;z-index:2;padding:15px 18px;border:1px solid #d9c79f;border-radius:14px;background:#f8f4eb;color:var(--text)}
.rune-assistant-intro p{margin:0;font-size:14px;line-height:1.65}
.rune-guide-button{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;min-height:44px;white-space:normal;text-align:center;text-decoration:none;line-height:1.45}
@media(max-width:380px){.rune-assistant-intro{padding:12px}.rune-assistant-intro p{font-size:13px}}

/* Assistant uses normal page scrolling; messages expand to their full height. */
.rune-chat{display:flex;flex-direction:column;height:auto;min-height:0;position:relative}
.rune-chat>*{flex:0 0 auto}
.rune-assistant-intro{position:static;z-index:auto;padding:12px 15px}
.rune-assistant-intro summary{cursor:pointer;font-size:13px;line-height:1.5;list-style:none}
.rune-assistant-intro summary::-webkit-details-marker{display:none}
.rune-help-toggle{display:block;font-size:12px;color:var(--gold-dark);margin-top:5px;text-decoration:underline;text-underline-offset:3px}
.rune-assistant-intro[open] .rune-help-toggle::after{content:' ↑'}
.rune-assistant-intro:not([open]) .rune-help-toggle::after{content:' ↓'}
.rune-assistant-intro p{margin-top:10px;font-size:13px;line-height:1.55}
.rune-transcript{display:block;flex:none;min-height:0;height:auto;max-height:none;overflow:visible;overflow-anchor:none;touch-action:pan-y}
.rune-transcript[hidden]{display:none}
.rune-message{margin-bottom:14px}
.rune-message--question{margin-left:auto}
.rune-empty{flex:none;min-height:0;overflow:visible}
.rune-latest{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:9;background:var(--card);align-self:center;min-height:40px;padding:6px 12px;border:1px solid var(--line);border-radius:20px}
.rune-toolbar{flex-wrap:nowrap}.rune-toolbar select{flex:1;min-width:0}
.rune-compose>div{grid-template-columns:minmax(0,1fr) auto}
.rune-chat.is-keyboard{gap:8px;padding:10px}
.rune-chat.is-keyboard .rune-assistant-intro summary{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.rune-chat.is-keyboard .rune-assistant-intro{padding:8px 12px}
body.rune-chat-keyboard .bottom-nav{visibility:hidden;pointer-events:none}
@media(max-width:600px){.rune-compose textarea{resize:none;max-height:96px;font-size:16px}.rune-chat{gap:10px}.rune-compose .primary-button{padding-inline:12px}}

/* Member library and safe links in authored content. */
.content-link{color:#8c682c;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:anywhere}
.content-link:focus-visible{outline-offset:3px}
.member-materials{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.member-materials>h2{font-size:20px;font-weight:450;letter-spacing:-.4px;margin:0 0 18px}
.member-material-grid{display:grid;gap:16px}
.member-material-card{position:relative;padding:24px;border:1px solid #dfcfaf;border-radius:18px;background:linear-gradient(135deg,#faf7ef,#fffdf8 65%,#f2eadb);text-align:left}
.member-material-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #dfcfaf;border-radius:14px;color:#a78345;background:#fbf6eb;font-size:34px;margin-bottom:16px}
.member-material-icon svg{width:31px;height:31px}
.member-material-card h3{font-size:21px;line-height:1.35;font-weight:450;margin:0 0 10px;letter-spacing:-.5px}
.member-material-card p{font-size:15px;line-height:1.65;color:var(--muted);margin:0 0 20px}
.member-material-card .primary-button{min-height:46px;background:#92733e;color:white}
.material-reader{background:var(--bg);color:var(--text);margin:0;padding:0 0 max(24px,env(safe-area-inset-bottom));touch-action:pan-x pan-y pinch-zoom}
.material-reader-toolbar{position:sticky;top:0;left:0;z-index:5;width:100%;padding:max(12px,env(safe-area-inset-top)) 16px 12px;background:rgba(250,248,243,.97);border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.material-reader-toolbar h1{order:3;width:100%;font-size:17px;font-weight:450;line-height:1.4;margin:0;letter-spacing:-.3px}
.material-reader-toolbar .text-button{min-height:40px;margin:0;padding:8px 0;font-size:14px}
.material-zoom{display:flex;align-items:center;gap:9px}
.material-zoom .round-button{width:36px;height:36px;font-size:23px;background:#fff}
.material-zoom output{min-width:40px;text-align:center;font-size:13px;color:#74603d}
.material-zoom button:disabled{opacity:.4;cursor:default}
.material-reader-status{width:calc(100% - 32px);font-size:13px;line-height:1.6;color:var(--muted);margin:14px 16px}
.material-reader-retry{margin-left:16px}
.material-pages{display:grid;justify-items:center;gap:16px;padding:0 12px 24px}
.material-pages figure{margin:0;display:grid;justify-items:center;gap:7px}
.material-page{background:#fff;box-shadow:0 2px 14px #55482b14;border-radius:2px;overflow:hidden}
.material-page canvas{display:block;width:100%;height:100%}
.material-pages figcaption{font-size:11px;color:var(--muted);line-height:1.5}
.material-pages>img{display:block;height:auto;max-width:none;box-shadow:0 3px 22px #55482b1a;border-radius:8px}
@media(max-width:380px){.material-reader-toolbar{padding-left:12px;padding-right:12px;gap:6px}.material-zoom{gap:6px}.material-zoom .text-button{font-size:12px}.member-material-card{padding:20px}}

/* Replies use text-only server snapshots; media attachments remain in place. */
.chat-quote{display:block;width:100%;border:0;border-left:3px solid #b49a61;border-radius:5px;background:#f6f1e7;padding:9px 12px;margin:6px 0 12px;text-align:left;min-width:0;color:var(--text)}
.chat-quote strong,.chat-reply-draft strong{display:block;color:var(--gold-dark);font-size:13px;margin-bottom:4px}
.chat-quote span,.chat-reply-draft span{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-quote small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.chat-reply-draft{display:flex;align-items:center;gap:12px;padding:10px 12px;border-left:3px solid #b49a61;border-radius:6px;background:#f6f1e7}
.chat-reply-draft[hidden]{display:none}.chat-reply-draft>div{flex:1;min-width:0}.chat-reply-draft span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.chat-reply-draft button{flex:0 0 36px;width:36px;height:36px}
.chat-message{touch-action:pan-y;transition:transform .15s,background-color .2s;scroll-margin-block:110px}
.chat-message.is-swipe-reply{transform:translateX(16px);border-color:#b49a61}
.chat-message.chat-target{background:#faf1dd;border-color:#b49a61}
.chat-message-menu button{display:block;min-height:40px}
.chat-record-preview video{width:min(100%,260px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;background:#25231f}
.chat-record-preview .is-front-camera{transform:scaleX(-1)}
.chat-record-status{font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.chat-message{transition:none}}

.chat-compose{scroll-margin-block:110px}
.chat-capture-row{display:grid;grid-template-columns:minmax(0,1fr) 50px;align-items:end;gap:10px}
.chat-capture-row textarea{min-width:0;width:100%;margin:0;font-size:16px}
.chat-capture-button{display:grid;place-items:center;width:50px;height:50px;border:1px solid #b49a61;border-radius:50%;background:#a1834d;color:white;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.chat-capture-button[hidden],.chat-capture-button [hidden],.chat-capture-help[hidden]{display:none}
.chat-capture-button svg{width:25px;height:25px;pointer-events:none}
.chat-capture-button.is-capturing{background:#906a36;box-shadow:0 0 0 5px #b49a6120}
.chat-capture-button:disabled{opacity:.45}
.chat-capture-help{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.chat-record-panel{scroll-margin-block:110px}

.chat-capture-row textarea{min-height:50px;max-height:120px;resize:none;overflow-y:auto}

.chat-compose{padding:12px;gap:10px}
.chat-capture-row{grid-template-columns:30px minmax(0,1fr) 30px 48px;gap:6px;align-items:end}
.chat-capture-row textarea{border:0;background:transparent;padding:12px 3px;line-height:24px;min-height:48px;border-radius:0}
.chat-capture-button{width:48px;height:48px}
.chat-compose-icon{display:grid;place-items:center;width:30px;min-height:48px;padding:0;background:transparent;border:0;color:#9b8356}
.chat-compose-icon svg{width:25px;height:25px}
.chat-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.chat-emojis[hidden],.chat-file-draft[hidden]{display:none}
.chat-file-draft{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);background:#f7f4ed;border-radius:10px;padding:5px 10px}
.chat-file-draft span{overflow-wrap:anywhere;min-width:0}.chat-file-draft button{padding:4px;min-width:32px}
.chat-capture-row:has(.chat-capture-button[hidden]){grid-template-columns:30px minmax(0,1fr) 30px}

.chat-record-tools:not([data-state="idle"]) .chat-record-panel{position:fixed;z-index:15;right:16px;bottom:calc(160px + env(safe-area-inset-bottom));width:min(280px,calc(100vw - 32px));max-height:calc(100dvh - 180px);overflow:auto;margin:0;background:#fbf9f4;border:1px solid #d7c6a4;box-shadow:0 8px 35px #40351e24;border-radius:20px;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:12px}
.chat-record-panel [data-record-status],.chat-record-panel [data-record-preview]{flex:0 0 100%;min-width:0;text-align:center;margin:0}
.chat-record-panel .text-button{margin:0;padding:8px 10px;min-height:40px}
.chat-record-panel [data-record-preview] video{max-width:240px;margin:auto}
@media(max-height:700px){.chat-record-panel [data-record-preview] video{max-width:180px}.chat-record-tools:not([data-state="idle"]) .chat-record-panel{bottom:140px;max-height:calc(100dvh - 150px)}}

.chat-attach-menu{display:flex;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#faf7f0}
.chat-attach-menu[hidden]{display:none}.chat-attach-menu button{margin:0;min-height:40px;padding:6px 14px}
.chat-camera-switch{display:grid;place-items:center;width:42px;height:42px;border:1px solid #c7b48b;border-radius:50%;background:#f8f4ea;color:#937746;padding:8px}
.chat-camera-switch[hidden]{display:none}.chat-camera-switch svg{width:25px;height:25px}
.chat-camera-switch:disabled,.chat-camera-switch.is-switching{opacity:.5}

/* Playback speed belongs to this recording; native picker works on touch screens. */
.chat-playback-speed {
 width: 60px; height: 44px; min-height: 44px; margin: 0; padding: 4px;
 -webkit-appearance: none; appearance: none; text-align: center;
 border: 1px solid var(--line); border-radius: 12px;
 background: var(--bg); color: var(--gold-dark); font: inherit;
 font-size: .85rem; font-weight: 600; cursor: pointer;
}
.chat-voice[data-chat-player] { grid-template-columns: 44px minmax(0, 1fr) 60px; }
.chat-voice .chat-playback-speed { grid-column: 3; grid-row: 1 / span 2; }
.chat-video-wrap .chat-playback-speed {
 position: absolute; z-index: 2; right: 0; bottom: 0;
 background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

/* Reactions remain separate from message gestures and media recording controls. */
.member-reactions {
 display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
 margin-top: 14px; max-width: 100%;
}
.reaction-button {
 display: inline-flex; align-items: center; justify-content: center; gap: 7px;
 min-width: 62px; min-height: 44px; padding: 5px 11px;
 border: 1px solid var(--line); border-radius: 24px;
 background: var(--bg); color: var(--text); font: inherit; font-size: .9rem;
 cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.reaction-button [aria-hidden] { font-size: 1.15rem; }
.reaction-button[aria-pressed="true"] { border-color: var(--gold-dark); background: #f3ead6; color: var(--gold-dark); }
.reaction-button:disabled { opacity: .55; cursor: default; }
.reaction-button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.reaction-status { flex-basis: 100%; color: var(--muted); font-size: .78rem; }
.reaction-status:empty { display: none; }
.chat-message .member-reactions { margin-top: 9px; }

/* Empty reaction rows take no space; the chooser floats above the selected material. */
.member-reactions[hidden], .reaction-button[hidden], .reaction-picker[hidden] { display: none; }
.reaction-picker {
 position: fixed; z-index: 1000; display: flex; flex-wrap: wrap; gap: 5px;
 width: 172px; max-width: calc(100vw - 16px); padding: 8px;
 background: var(--card); border: 1px solid var(--line); border-radius: 28px;
 box-shadow: 0 7px 25px rgb(75 61 32 / 16%);
}
.reaction-picker .reaction-button { min-width: 44px; width: 44px; padding: 0; border-color: transparent; }
.reaction-picker .reaction-button[aria-pressed="true"] { border-color: var(--gold-dark); }
.reaction-picker-status { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .75rem; }
.reaction-picker-status:empty { display: none; }
.reaction-owner { -webkit-touch-callout: none; }
.is-reaction-press { -webkit-user-select: none; user-select: none; }

.reaction-owner a:not(.daily-card) { -webkit-touch-callout: default; }

.chat-pinned[hidden] { display: none; }
.chat-pinned { position: sticky; top: 8px; z-index: 8; display:flex; align-items:center; gap:8px; margin-bottom:14px; padding:7px 9px; border:1px solid var(--line); border-radius:15px; background:var(--card); box-shadow:0 3px 12px rgb(75 61 32 / 7%); }
.chat-pin-jump { display:flex; align-items:center; gap:10px; flex:1; min-width:0; min-height:48px; padding:3px 6px; text-align:left; border:0; background:transparent; font:inherit; }
.chat-pin-jump>span:last-child { min-width:0; }
.chat-pin-jump strong { display:block; color:var(--gold-dark); font-size:.8rem; font-weight:600; }
.chat-pin-jump span span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.83rem; line-height:1.4; overflow-wrap:anywhere; }
.chat-pinned>[data-chat-pin-unpin] { min-width:44px; min-height:44px; padding:4px; font-size:1.5rem; }
.chat-pin-dialog { max-width:420px; }
.chat-pin-dialog>button { display:block; width:100%; margin:8px 0; }
.chat-pin-dialog>button[hidden] { display:none; }
