:root {
  --paper: #faf9f2;
  --paper-lifted: #fffef9;
  --paper-deep: #eee9dd;
  --ink: #181818;
  --muted: #696861;
  --vermilion: #d84018;
  --blue-pencil: #5572ad;
  --tape: #d8c9a0;
  --cobalt: var(--blue-pencil);
  --coral: var(--vermilion);
  --rule: rgba(24, 24, 24, .24);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif;
  --hand: "Klee One", "Yuji Syuku", "Segoe Print", cursive;
  --member-tab-height: 0px;
}

/* Learning progress */
.archive-log .learning-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7e4dc;
  color: #38362f;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}

.archive-log .learning-status.is-in_progress {
  background: #f2d889;
  color: #3b2d08;
}

.archive-log .learning-status.is-completed {
  background: #d8e8d4;
  color: #244723;
}

.archive-log .learning-resume {
  margin: 0 0 12px;
  color: var(--archive-vermilion);
  font-weight: 800;
}

.archive-log .learning-privacy-note {
  margin: 40px auto 0;
  color: #6b675e;
  font-size: .82rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

.archive-log .archive-continue-learning {
  margin: 32px 0 48px;
}

.archive-log .archive-continue-learning ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-log .archive-continue-learning li {
  min-width: 0;
}

.archive-log .archive-continue-learning a {
  display: grid;
  gap: 10px;
  min-height: 40px;
  height: 100%;
  padding: 18px;
  border-radius: 16px;
  background: #fffef9;
  color: var(--archive-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(35, 31, 24, .09), 0 1px 2px rgba(35, 31, 24, .08);
  transition-property: scale, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.archive-log .archive-continue-learning a:active {
  scale: .96;
}

.archive-log .archive-continue-learning strong {
  text-wrap: balance;
}

.archive-log .archive-continue-learning a > span:last-child {
  color: var(--archive-vermilion);
  font-weight: 800;
}

.archive-log .member-progress-admin {
  display: grid;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.archive-log .member-progress-admin-header {
  margin-bottom: 8px;
  padding: 28px 0 12px;
}

.archive-log .member-progress-admin-header > p:first-of-type {
  color: var(--archive-vermilion);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.archive-log .member-progress-admin-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  text-wrap: balance;
}

.archive-log .member-progress-card {
  padding: 22px;
  border-radius: 20px;
  background: #fffef9;
  box-shadow: 0 12px 36px rgba(35, 31, 24, .1), 0 1px 2px rgba(35, 31, 24, .08);
}

.archive-log .member-progress-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}

.archive-log .member-progress-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.archive-log .member-progress-card dl {
  display: flex;
  gap: 16px;
  margin: 0;
}

.archive-log .member-progress-card dl div {
  display: grid;
  justify-items: center;
}

.archive-log .member-progress-card dt {
  color: #6b675e;
  font-size: .72rem;
}

.archive-log .member-progress-card dd {
  margin: 3px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.archive-log .member-progress-card ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #ded9cf;
  list-style: none;
}

.archive-log .member-progress-card li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fffef9;
}

.archive-log .member-progress-card li > span:first-child {
  color: #6b675e;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .archive-log .archive-continue-learning ol {
    grid-template-columns: 1fr;
  }

  .archive-log .member-progress-card > header {
    display: grid;
  }
}

/* Circle member home and event response */
.member-app-home { width: min(calc(100% - 40px), 1180px); }
.member-greeting { padding-block: 10px 18px; border: 0; font-size: 1.05rem; color: var(--muted); }
.member-dashboard-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.member-dashboard-primary, .member-dashboard-secondary, .member-home-support { min-width: 0; }
.member-dashboard-secondary { border-left: 1px solid var(--rule); padding-left: 24px; }
.member-next-action { padding: clamp(22px, 3vw, 38px); border: 2px solid var(--ink); background: var(--paper-lifted); }
.member-next-action > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.member-next-action h2 { max-width: 24ch; margin: 0 0 20px; color: var(--ink); font-size: clamp(1.55rem, 2.5vw, 2.35rem); line-height: 1.35; }
.member-next-action > p:not(:first-child) { color: var(--muted); }
.member-next-content { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; }
.member-next-content img, .member-thumb-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-deep); }
.member-home-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.member-thumb-placeholder { display: grid; place-items: center; color: var(--muted); font-size: .82rem; }
.member-next-content progress { width: calc(100% - 44px); accent-color: var(--vermilion); vertical-align: middle; }
.member-next-content > div > span { padding-left: 7px; color: var(--muted); font-size: .85rem; }
.member-primary-action { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 0; background: var(--vermilion); color: white !important; font-weight: 800; text-decoration: none; cursor: pointer; }
.member-next-action .member-primary-action { min-width: 180px; }
.member-home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.member-dashboard-secondary .member-home-stats { grid-template-columns: 1fr; }
.member-dashboard-secondary .member-home-stats a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 8px; }
.member-home-stats a[href*="/events/"] strong, .member-home-stats a[href*="/events/"] small { white-space: nowrap; }
.member-home-stats a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; min-height: 95px; padding: 14px 8px; text-decoration: none; }
.member-home-stats a + a { border-left: 1px solid var(--rule); padding-left: 14px; }
.member-home-stats a:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
.member-home-stats span { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.member-home-stats strong { font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.member-home-stats small { color: var(--muted); }
.member-dashboard-secondary .member-home-section { padding: 20px 0; }
.member-dashboard-secondary .member-home-section h2, .member-home-support .member-home-section h2 { color: var(--ink); font-size: 1.08rem; }
.member-dashboard-secondary .member-home-section li a { display: flex; flex-direction: column; gap: 5px; padding: 12px 0; text-decoration: none; }
.member-dashboard-secondary .member-home-section li time { font-size: .76rem; }
.member-dashboard-secondary .member-home-section li span { line-height: 1.55; }
.member-dashboard-secondary .member-reply-row a { display: flex !important; }
.member-dashboard-primary .member-home-section { padding: 30px 0; }
.member-new-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-new-content-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-new-content-card strong { line-height: 1.5; }
.member-new-content-card time { color: var(--muted); font-size: .78rem; }
.member-new-content-card .member-home-thumbnail { min-height: 110px; }
.member-update-strip { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: start; padding: 14px 16px; border-left: 4px solid var(--vermilion); background: var(--paper-deep); }
.member-update-strip > div { display: flex; flex-direction: column; gap: 5px; }
.member-update-strip > div strong { font-size: .83rem; }
.member-update-strip > div a, .member-update-strip li a { color: var(--ink); }
.member-update-strip ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.member-update-strip li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.member-update-strip time { color: var(--muted); font-size: .78rem; }
.member-update-strip form { grid-column: 3; grid-row: 1; }
.member-update-strip button, .member-first-steps button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.member-first-steps { margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.member-first-steps header { display: flex; justify-content: space-between; align-items: center; }
.member-first-steps h2 { margin: 0; font-size: 1rem; }
.member-first-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.member-first-steps li { display: flex; gap: 8px; align-items: flex-start; }
.member-first-steps li.is-done { color: var(--muted); text-decoration: line-through; }
.member-first-steps li > span { color: var(--vermilion); font-weight: 800; }
.member-home-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; border-top: 1px solid var(--rule); }
.member-home-support .member-home-section { padding: 22px 0; }
.member-tutorial { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.member-tutorial-backdrop { position: absolute; inset: 0; background: rgba(24, 24, 24, .18); }
.member-tutorial-popover { position: fixed; left: 12px; top: 12px; z-index: 102; width: min(380px, calc(100vw - 32px)); padding: 20px; border: 2px solid var(--ink); background: var(--paper-lifted); pointer-events: auto; }
.member-tutorial-popover > p:first-child { color: var(--muted); font-size: .8rem; }
.member-tutorial-popover h2 { margin: 0 0 8px; font-size: 1.3rem; }
.member-tutorial-popover > div { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.member-tutorial-popover button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.member-tutorial-popover [data-member-tutorial-next] { background: var(--vermilion); color: white; border-color: var(--vermilion); }
.is-member-tutorial-target { position: relative; z-index: 101 !important; outline: 3px solid var(--vermilion) !important; outline-offset: 3px; }
.member-experience-page { width: min(calc(100% - 32px), 900px); margin: 0 auto; padding: 38px 0 calc(70px + var(--member-tab-height)); }
.member-experience-page > header { margin-bottom: 26px; }
.member-experience-page h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; }
.member-experience-page h2 { font-size: 1.15rem; }
.member-updates-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.member-updates-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.member-updates-list time { color: var(--muted); }
.member-updates-list h2, .member-updates-list p { margin: 0; }
.member-updates-list p { margin-top: 6px; }
.member-updates-list button { min-height: 40px; }
.member-event-details { display: grid; gap: 0; margin-bottom: 24px; border-top: 1px solid var(--rule); }
.member-event-details p { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.member-event-form { display: grid; gap: 20px; }
.member-event-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 1px solid var(--rule); }
.member-event-form legend { padding: 0 8px; font-weight: 800; }
.member-event-form label { display: grid; gap: 6px; }
.member-event-form label span { color: var(--muted); font-size: .8rem; }
.member-event-form input:not([type=checkbox]), .member-event-form select, .member-event-form textarea { width: 100%; min-height: 44px; padding: 9px; border: 1px solid var(--rule); background: var(--paper-lifted); color: var(--ink); font: inherit; }
.member-event-profile-save { display: flex !important; grid-column: 1 / -1; align-items: center; }
.member-event-profile-save input { width: 20px; height: 20px; accent-color: var(--vermilion); }
.member-event-form [hidden] { display: none !important; }
.event-saved-status { padding: 12px; border-left: 4px solid var(--blue-pencil); background: var(--paper-deep); }
.event-closed-note, .event-form-error { padding: 14px; border-left: 4px solid var(--vermilion); background: var(--paper-deep); }
.member-event-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.member-event-counts div { padding: 14px; border-bottom: 1px solid var(--rule); }
.member-event-counts dt { color: var(--muted); }
.member-event-counts dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.member-event-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member-event-admin section { margin-top: 28px; }
.member-event-table-wrap { max-width: 100%; overflow-x: auto; }
.member-event-table-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.member-event-table-wrap th, .member-event-table-wrap td { padding: 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.member-event-table-wrap th { background: var(--paper-deep); }
@media (max-width: 900px) {
  .member-app-home { width: min(calc(100% - 28px), 680px); padding-top: 22px; padding-bottom: var(--member-tab-height); }
  .member-dashboard-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .member-dashboard-secondary { border-left: 0; padding-left: 0; }
  .member-home-support { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .member-first-steps ol { grid-template-columns: 1fr; }
  .member-experience-page { padding-top: 26px; }
  .member-tutorial-popover { max-width: calc(100vw - 24px); }
}
@media (max-width: 560px) {
  .member-update-strip { grid-template-columns: 1fr auto; }
  .member-update-strip ol { grid-column: 1 / -1; grid-row: 2; }
  .member-update-strip form { grid-column: 2; grid-row: 1; }
  .member-new-content-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .member-new-content-card { padding: 8px; }
  .member-new-content-card .member-home-thumbnail { min-height: 80px; }
  .member-next-action { padding: 18px; }
  .member-next-content { grid-template-columns: 1fr; }
  .member-next-action h2 { font-size: 1.45rem; }
  .member-home-stats strong { font-size: 2rem; }
  .member-updates-list li { grid-template-columns: 1fr auto; gap: 8px; }
  .member-updates-list time { grid-column: 1 / -1; }
  .member-event-details p { grid-template-columns: 1fr; gap: 4px; }
  .member-event-form fieldset { grid-template-columns: 1fr; padding: 14px; }
  .member-event-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-event-breakdowns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .archive-log .member-progress-card {
    padding: 16px;
    border-radius: 16px;
  }

  .archive-log .member-progress-card dl {
    justify-content: space-between;
  }

  .archive-log .member-progress-card li {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 22% 15%, rgba(255,255,255,.9), transparent 32rem),
    radial-gradient(circle at 82% 55%, rgba(216,201,160,.08), transparent 34rem),
    repeating-linear-gradient(0deg, rgba(24,24,24,.012) 0 1px, transparent 1px 6px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
.frame { width: min(calc(100% - 32px), 1200px); margin-inline: auto; }
.semantic-note {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.studio-texture { pointer-events: none; user-select: none; }
.handwritten-image { position: relative; display: block; width: min(100%, 380px); }
.handwriting { width: 100%; height: auto; }
.eyebrow {
  margin: 0;
  color: var(--cobalt);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.lead { color: var(--muted); font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.28rem); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--ink);
  background: rgba(250,249,242,.96);
  backdrop-filter: blur(12px);
}
.site-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.site-logo strong { font-size: .86rem; letter-spacing: .03em; }
.site-logo span { color: var(--cobalt); font-size: .6rem; font-weight: 900; letter-spacing: .16em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition-duration: 160ms;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.site-nav a:not(.nav-login)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  background: var(--cobalt);
  content: '';
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: center;
  transition-duration: 160ms;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.site-nav a.is-current:not(.nav-login) { color: var(--cobalt); }
.site-nav a.is-current:not(.nav-login)::after { opacity: 1; transform: scaleX(1); }
.nav-login { padding: 10px 16px; border: 1px solid var(--ink); }
.menu-button {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
}

.preview-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(16px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--ink);
  background: var(--cobalt);
  color: white;
}
.preview-ribbon div { display: flex; align-items: center; gap: 14px; }
.preview-ribbon span { padding: 2px 7px; border: 1px solid currentColor; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.preview-ribbon strong { font-family: var(--serif); font-weight: 600; }
.preview-ribbon a { min-height: 44px; padding-top: 8px; font-size: .76rem; font-weight: 900; }
.preview-handwritten { width: min(100%, 340px); margin: 24px 0 0; transform: rotate(-1.4deg); }
.preview-identity { border-style: dashed; }
.preview-check { color: var(--cobalt); font-family: var(--hand); font-size: 1.3rem; }
.preview-inline-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--cobalt); font-size: .78rem; font-weight: 900; }
.section-heading h2 { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(2rem,4vw,4rem); font-weight: 500; line-height: 1.2; }
.copy-line, .heading-line { display: block; width: fit-content; max-width: 100%; word-break: keep-all; overflow-wrap: normal; }
.heading-line { margin-right: 0; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--ink); font-weight: 900; text-decoration: none; }
.button.coral { border-color: var(--coral); background: var(--coral); color: white; }
.button.cobalt { border-color: var(--cobalt); background: var(--cobalt); color: white; }

.login-main { display: grid; min-height: calc(100vh - 76px); grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding-block: 70px; }
.password-setup-main { grid-template-columns: minmax(0, 620px); justify-content: center; }
.login-main > * { min-width: 0; }
.login-copy h1 { margin: 14px 0 18px; font-family: var(--serif); font-size: clamp(2.5rem,5.4vw,5.1rem); font-weight: 500; line-height: 1.12; }
.login-person { display: flex; max-width: 520px; gap: 16px; align-items: center; margin-top: 30px; }
.login-person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.login-person p { display: flex; flex-direction: column; margin: 0; }
.login-person span { color: var(--muted); font-size: .8rem; }
.login-card { position: relative; padding: clamp(28px,5vw,54px); border: 1px solid var(--ink); background: rgba(255,254,249,.9); box-shadow: 14px 18px 0 rgba(24,24,24,.08); }
.paper-tape {
  position: absolute;
  z-index: 3;
  top: -18px;
  left: 50%;
  width: 112px;
  height: 34px;
  background: url("/circle/images/studio/studio-tape-short.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(68,56,31,.14));
  transform: translateX(-50%) rotate(-3deg);
}
.step-label { color: var(--coral); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.login-card h2 { margin: 10px 0; font-family: var(--serif); font-size: 2rem; }
.login-session-note { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--blue-pencil); color: var(--muted); font-size: .84rem; line-height: 1.8; }
.login-help { margin-top: 14px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.login-help summary { cursor: pointer; color: var(--blue-pencil); font-weight: 700; }
.login-help p { margin-top: 6px; }
.login-help a { color: var(--blue-pencil); text-decoration: underline; text-underline-offset: 3px; }
.login-card form { display: grid; gap: 10px; margin-top: 26px; }
.login-card label, .note-form label { font-size: .75rem; font-weight: 900; }
.login-card input, .note-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); background: white; font-size: 16px; }
.form-message { padding: 10px 12px; border-left: 3px solid var(--coral); background: #fff0ec; color: #9b2d1e; }
.text-link { min-height: 44px; padding: 8px 0; border: 0; background: none; font-weight: 800; text-decoration: underline; cursor: pointer; }
.login-preview { display: grid; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.login-preview p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; }
.login-preview-button {
  min-height: 48px;
  width: 100%;
  border-color: var(--blue-pencil);
  background: transparent;
  color: var(--blue-pencil);
  transition-property: transform, background-color, color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.login-preview-button:active { transform: scale(.96); }

@media (hover: hover) and (pointer: fine) {
  .login-preview-button:hover { background: rgba(85, 114, 173, .08); box-shadow: 0 5px 14px rgba(85, 114, 173, .12); }
}

@media (prefers-reduced-motion: reduce) {
  .login-preview-button { transform: none !important; transition-property: background-color, color, box-shadow; }
}

/* Member app shell */
.member-mobile-appbar,
.member-mobile-nav { display: none; }
.member-app-header .site-nav { align-items: center; }
.member-app-header .site-nav > a[aria-current="page"] { color: var(--blue-pencil); }
.member-app-header .site-nav > a[aria-current="page"]::after { background: var(--blue-pencil); }
.member-notification-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.member-notification-link svg { display: block; }
.member-notification-count { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--paper); border-radius: 999px; background: var(--vermilion); color: white; font-size: .62rem; font-weight: 800; line-height: 14px; text-align: center; }
.community-account-menu > summary { min-width: 44px; min-height: 44px; }
.community-account-menu > summary:focus-visible,
.member-notification-link:focus-visible,
.member-mobile-nav a:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: 2px; }
.member-app-home { width: min(calc(100% - 32px), 880px); margin: 0 auto; padding: 40px 0 80px; }
.member-greeting { padding: 16px 0 28px; border-bottom: 1px dashed var(--rule); font-family: var(--serif); font-size: clamp(1.55rem, 4vw, 2.25rem); }
.member-greeting p { margin: 0; }
.member-home-section { padding: 28px 0; border-bottom: 1px dashed var(--rule); }
.member-home-section h2 { margin: 0 0 14px; color: var(--blue-pencil); font-size: .95rem; font-weight: 800; }
.member-home-section ol,
.member-home-section ul { margin: 0; padding: 0; list-style: none; }
.member-home-section li + li { border-top: 1px solid rgba(24, 24, 24, .12); }
.member-home-section a { color: var(--ink); text-decoration: none; }
.member-home-section a:focus-visible,
.member-home-section button:focus-visible,
.member-home-section summary:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: 3px; }
.member-continue-row,
.member-event-row,
.member-chat-row,
.member-home-section > ol > li > a { display: grid; min-width: 0; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 8px 16px; align-items: center; padding: 14px 0; }
.member-continue-row .member-content-type { color: var(--muted); font-size: .75rem; }
.member-continue-row strong,
.member-home-section > ol > li > a strong { font-size: .98rem; }
.member-continue-row > span:last-child,
.member-home-section > ol > li > a > span:last-child,
.member-event-row > span:last-child { color: var(--blue-pencil); font-size: .82rem; font-weight: 800; }
.member-home-section time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.member-reply-row a { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; padding: 12px 0; }
.member-reply-row time { text-align: right; }
.member-home-hand { margin: -4px 0 8px; color: var(--vermilion); font-family: var(--hand); font-size: .9rem; }
.member-section-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; color: var(--blue-pencil) !important; font-size: .84rem; font-weight: 800; }
.member-event-row { grid-template-columns: max-content minmax(0, 1fr) max-content; }
.member-event-row strong { font-size: .98rem; }
.member-event-row time { grid-column: 1; }
.member-event-row strong { grid-column: 2; }
.member-news p { margin: 0; }
.member-featured-news article { border-left: 4px solid var(--vermilion); padding: 4px 0 4px 20px; scroll-margin-top: 100px; }
.member-featured-news .member-featured-news-label { margin: 0 0 10px; color: var(--vermilion); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.member-featured-news h2 { color: var(--ink); font-family: var(--serif); font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.5; overflow-wrap: anywhere; }
.member-featured-news time { display: block; margin: 12px 0; color: var(--ink); font-size: .95rem; font-weight: 800; }
.member-featured-news article > p:not(.member-featured-news-label) { margin: 12px 0 0; font-size: .95rem; line-height: 1.85; overflow-wrap: anywhere; }
.member-chat-row { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue-pencil) !important; font-weight: 800; }
.member-meeting-intro { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; }
.member-meeting-intro img { width: 88px; height: 88px; object-fit: cover; }
.member-meeting-intro strong { font-size: 1.05rem; }
.member-meeting-intro p { margin: 5px 0 9px; color: var(--muted); font-size: .86rem; }
.member-meeting-intro a { color: var(--vermilion); font-size: .84rem; font-weight: 800; }
.member-home-section details { margin-top: 20px; }
.member-home-section summary { min-height: 44px; padding: 12px 0; color: var(--blue-pencil); font-weight: 800; cursor: pointer; }
.member-meeting-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.member-gathering-section > div { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; align-items: center; }
.member-gathering-section p { margin: 0; color: var(--muted); }
.member-gathering-section img { width: 160px; height: 100px; object-fit: cover; }
.member-services-section > ul { display: grid; gap: 0; }
.member-services-section > ul > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) max-content; gap: 14px; align-items: center; padding: 12px 0; }
.member-services-section > ul img { width: 56px; height: 42px; object-fit: cover; }
.member-services-section li span { display: grid; gap: 3px; }
.member-services-section li small { color: var(--muted); font-size: .78rem; }
.member-services-section .preparation-list { margin-top: 12px; border: 0; }
.member-services-section .preparation-list summary { min-height: 44px; padding: 12px 0; }
.member-services-section .preparation-list ul { display: block; border-top: 0; }
.member-services-section .preparation-list ul > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid rgba(24, 24, 24, .12); color: var(--ink); }
.member-services-section .preparation-list li small { white-space: nowrap; }
.member-services-section li > a { color: var(--blue-pencil); font-size: .82rem; font-weight: 800; }
.member-services-section details { border-top: 1px solid rgba(24, 24, 24, .12); }
.member-services-section details ul { display: grid; gap: 8px; padding: 8px 0 12px 14px; list-style: none; }
.member-services-section details li { display: flex; justify-content: space-between; color: var(--muted); }
.member-services-section details li small { color: var(--vermilion); }
.member-logout button { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.notification-mark-all-form { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.notification-mark-all { padding: 4px 0; border: 0; background: transparent; color: var(--blue-pencil); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.notification-mark-all:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: 3px; }
.notification-list { margin: 0; padding: 0; border-top: 1px solid rgba(24, 24, 24, .12); list-style: none; }
.notification-list li { border-bottom: 1px solid rgba(24, 24, 24, .12); }
.notification-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr) max-content; gap: 10px; min-height: 56px; align-items: center; color: var(--ink); text-decoration: none; }
.notification-list li.is-unread a { font-weight: 800; }
.notification-list time { color: var(--muted); font-size: .78rem; font-weight: 400; }
.notification-unread-dot-slot { display: block; width: 10px; min-height: 7px; }
.notification-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-pencil); }

@media (max-width: 900px) {
  body:not(.community-workspace) .member-app-header { position: sticky; top: 0; z-index: 30; min-height: 58px; background: var(--paper); border-bottom: 1px solid rgba(24, 24, 24, .12); }
  body:not(.community-workspace) .member-app-header .site-logo,
  body:not(.community-workspace) .member-app-header .site-nav { display: none; }
  .member-mobile-appbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 16px; }
  .member-mobile-appbar > strong { font-size: 1rem; }
  .member-mobile-appbar > span { display: inline-flex; align-items: center; gap: 4px; }
  .member-mobile-appbar .community-account-popover { right: 0; left: auto; }
  :root { --member-tab-height: calc(64px + env(safe-area-inset-bottom)); }
  .member-mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; height: var(--member-tab-height); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(24, 24, 24, .18); background: var(--paper); }
  .member-mobile-nav a { display: grid; min-height: 56px; place-content: center; justify-items: center; gap: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; text-decoration: none; }
  .member-mobile-nav a[aria-current="page"] { background: transparent; color: var(--blue-pencil); }
  .member-mobile-nav a[aria-current="page"] svg { stroke-width: 2.2; }
  .member-mobile-nav svg { display: block; }
  .member-app-home { width: min(calc(100% - 32px), 880px); min-width: 0; padding-bottom: var(--member-tab-height); }
  .member-home-section > ol > li > a { grid-template-columns: minmax(0, 1fr) max-content; }
  .member-home-section > ol > li > a time { grid-column: 1 / -1; }
  .member-home-section > ol > li > a strong { grid-column: 1; }
  .member-home-section > ol > li > a > span:last-child { grid-column: 2; grid-row: 2; }
  .member-meeting-notes { grid-template-columns: 1fr; }
  .member-gathering-section > div { grid-template-columns: 1fr; }
  .member-gathering-section img { width: 100%; height: auto; max-height: 180px; }
  body.community-workspace .member-mobile-nav { display: grid; }
}

@media (max-width: 390px) {
  .member-app-home { width: calc(100% - 24px); }
  .member-mobile-nav a { font-size: .68rem; }
  .member-services-section > ul > li { grid-template-columns: 44px minmax(0, 1fr); }
  .member-services-section > ul img { width: 44px; height: 36px; }
  .member-services-section li > a { grid-column: 2; }
}

/* Circle community attachments: compact, conversational, and on demand. */
.community-workspace .community-composer-control {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 2px;
}
.community-attachment-picker-button {
  display: inline-grid !important;
  place-items: center;
  align-self: end;
  min-width: 40px;
  min-height: 40px;
  margin: 2px;
  border: 0;
  border-radius: 50%;
  color: #55524d;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, scale 100ms ease;
}
.community-attachment-picker-button > span { font-size: 1.35rem; font-weight: 400; line-height: 1; }
.community-attachment-picker-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.community-attachment-picker-button:focus-within {
  outline: 2px solid var(--workspace-blue-pencil);
  outline-offset: 2px;
}
.community-attachment-picker-button:has(input:disabled) { cursor: wait; opacity: .5; }
.community-composer-message { min-width: 0; }
.community-upload-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 2px 4px 5px;
}
.community-upload-list[hidden] { display: none; }
.community-upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 4px 3px 10px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  background: #fff;
  color: var(--workspace-ink);
  font-size: .75rem;
}
.community-upload-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-upload-actions { display: inline-flex; align-items: center; }
.community-upload-actions > button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #6b675e;
  font: inherit;
  cursor: pointer;
}
.community-upload-actions > button:first-child:not(:last-child) { color: var(--workspace-blue-pencil); font-weight: 800; }
.community-upload-item.is-error { border-color: rgba(166, 52, 27, .35); }
.community-upload-progress {
  color: #6b675e;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.community-message-attachments {
  display: grid;
  gap: 6px;
  width: min(100%, 520px);
  margin-top: 3px;
}
.community-message-attachment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 5px 5px 8px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  background: #fff;
}
.community-message-attachment > span:nth-child(2) { min-width: 0; }
.community-message-attachment strong,
.community-message-attachment small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-message-attachment strong { font-size: .78rem; }
.community-message-attachment small { color: #6b675e; font-size: .66rem; font-variant-numeric: tabular-nums; }
.community-attachment-kind {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--workspace-soft);
  color: var(--workspace-blue-pencil);
  font-size: .65rem;
  font-weight: 800;
}
.community-attachment-kind.is-video {
  width: 34px;
  border-radius: 7px;
  background: linear-gradient(145deg, #242321, #080808);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.community-attachment-open,
.community-attachment-pin {
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--workspace-blue-pencil);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 140ms ease, scale 100ms ease;
}
.community-attachment-preview {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.community-attachment-preview img,
.community-attachment-preview iframe,
.community-attachment-preview video { display: block; width: 100%; max-height: 420px; border: 0; object-fit: contain; }
.community-attachment-preview iframe,
.community-attachment-preview video { aspect-ratio: 16 / 9; }
.community-announcement-badge,
.community-pending-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .62rem !important;
  font-weight: 800;
  white-space: nowrap;
}
.community-announcement-badge { background: #fff0eb; color: #a6341b; }
.community-pending-badge { background: var(--workspace-soft); color: var(--workspace-blue-pencil); }
.community-pending-badge.is-rejected { background: #fff0eb; color: #a6341b; }
.community-message-attachment.is-rejected { border-color: rgba(166, 52, 27, .35); }
.community-message-attachment.is-rejected small { color: #a6341b; }
.community-message-attachment.is-rejected form { display: contents; }
.community-upload-item.is-rejected { border-color: rgba(166, 52, 27, .35); }
.community-upload-item.is-rejected .community-upload-progress { color: #a6341b; }
.community-attachment-picker-button:active,
.community-attachment-open:active,
.community-attachment-pin:active { scale: .96; }

@media (hover: hover) {
  .community-attachment-picker-button:hover,
  .community-attachment-open:hover,
  .community-attachment-pin:hover { background: var(--workspace-soft); }
}

@media (max-width: 767px) {
  .community-message-attachments { width: 100%; }
  .community-message-attachment { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  .community-attachment-picker-button,
  .community-attachment-open,
  .community-attachment-pin,
  .community-upload-actions > button {
    animation: none !important;
    transition: none;
  }
}

@media (max-width: 900px) {
  .member-greeting { padding-block: 14px 20px; font-size: 1.35rem; }
  .member-greeting-name { overflow-wrap: anywhere; }
  .member-greeting-suffix { white-space: nowrap; }
  .member-home-section { padding-block: 20px; }
  .member-home-section h2 { margin-bottom: 8px; }
  .member-app-home,
  .member-app-home * { min-width: 0; }
  /* Phones: date above the title, arrow on the right spanning both rows. */
  .member-app-home #member-tips > ol > li > a,
  .member-app-home #member-archives > ol > li > a {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 2px 8px;
    overflow-wrap: anywhere;
  }
  .member-app-home #member-tips > ol > li > a time,
  .member-app-home #member-archives > ol > li > a time { grid-column: 1; grid-row: 1; }
  .member-app-home #member-tips > ol > li > a strong,
  .member-app-home #member-archives > ol > li > a strong { grid-column: 1; grid-row: 2; }
  .member-app-home #member-tips > ol > li > a > .member-home-row-arrow,
  .member-app-home #member-archives > ol > li > a > .member-home-row-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue-pencil); text-align: right; }
  body:not(.community-workspace) .notification-page .community-page-heading h1,
  body:not(.community-workspace) .community-profile-page .community-page-heading h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .community-account-popover > a,
  .community-account-popover > form > button { display: flex; align-items: center; gap: 10px; }
  .community-account-popover > a > svg,
  .community-account-popover > form > button > svg { flex: 0 0 16px; }
  .community-account-popover .member-account-legal-links a svg { display: none; }
  body.community-workspace .community-main { padding-bottom: var(--member-tab-height); }
  .community-workspace .community-room-composer,
  .community-workspace .community-thread-composer { bottom: var(--member-tab-height); }
  .community-workspace-grid,
  .community-selected-conversation,
  .community-workspace-grid .community-room,
  .community-workspace-grid .community-thread-layout {
    min-height: calc(100dvh - var(--community-shell-offset) - var(--member-tab-height));
  }
  .community-workspace .community-thread-header:has(.community-rail-toggle:not([hidden])) .community-thread-back { display: inline-flex; min-width: 44px; min-height: 44px; justify-content: center; }
  body.community-thread-detail .community-thread-header .community-rail-toggle { display: none; }
  body.community-thread-detail .community-main { padding-bottom: env(safe-area-inset-bottom); }
  body.community-thread-detail .community-thread-composer { bottom: env(safe-area-inset-bottom); }
  body.community-thread-detail .community-thread-panel { min-height: calc(100dvh - var(--community-shell-offset) - env(safe-area-inset-bottom)); }
}

/* Circle learning community / Core Phase */
.community-main {
  width: min(calc(100% - 32px), 860px);
  min-width: 0;
  padding-block: 24px 120px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.community-main *,
.community-home-cta * {
  min-width: 0;
}

.community-main h1,
.community-main h2,
.community-main h3 { text-wrap: balance; }

.community-main p,
.community-main li,
.community-main dd { text-wrap: pretty; }

.community-home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--paper-lifted);
  box-shadow: 0 1px 2px rgba(24, 24, 24, .08), 0 8px 24px rgba(24, 24, 24, .06);
}

.community-page-heading h1 {
  margin: 8px 0 12px;
  font-family: inherit;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.community-home-cta h2 {
  margin: 4px 0;
  font-family: inherit;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.community-page-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.community-page-heading p:last-child,
.community-home-cta p:last-child {
  color: var(--muted);
}

.community-chat-inbox {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 12px 36px rgba(0, 0, 0, .05);
}

.community-chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
}

.community-chat-topbar h1 {
  margin: 0;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.community-chat-topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.community-chat-new {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--cobalt);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.community-chat-compose {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
  background: #fbfbfa;
  color: #77736c;
  font-size: .9rem;
  text-decoration: none;
}

.community-notice,
.community-empty,
.community-empty-reply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 10px;
  background: rgba(85, 114, 173, .06);
  box-shadow: inset 0 0 0 1px rgba(85, 114, 173, .2);
}

.community-notice a { color: var(--cobalt); font-weight: 900; }

.community-filter-panel {
  border-bottom: 1px solid rgba(24, 24, 24, .09);
}

.community-filter-panel > summary {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0 22px;
  color: var(--muted);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 700;
}

.community-filter,
.community-learn-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .42fr) minmax(0, .42fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0;
  padding: 4px 22px 18px;
  background: #fbfbfa;
}

.community-filter label,
.community-learn-search label,
.community-editor label,
.community-profile-form label,
.community-summary-form label,
.community-report label {
  display: grid;
  gap: 6px;
  font-size: .78rem;
  font-weight: 900;
}
.community-profile-form [hidden] { display: none !important; }

.community-filter input,
.community-filter select,
.community-learn-search input,
.community-editor input,
.community-editor textarea,
.community-editor select,
.community-profile-form input,
.community-profile-form textarea,
.community-profile-form select,
.community-summary-form input,
.community-summary-form textarea,
.community-report input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}

.community-editor textarea,
.community-profile-form textarea,
.community-summary-form textarea { resize: vertical; }

.community-chat-list,
.community-learning-results,
.community-my-posts {
  display: grid;
}

.community-learning-results article,
.community-my-posts > article {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper-lifted);
  box-shadow: 0 0 0 1px rgba(24, 24, 24, .07), 0 4px 18px rgba(24, 24, 24, .05);
}

.community-learning-results h2 {
  margin: 10px 0 6px;
  font-family: inherit;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.community-learning-results h2 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

.community-chat-row {
  border-bottom: 1px solid rgba(24, 24, 24, .08);
}

.community-chat-row:last-child { border-bottom: 0; }

.community-chat-row-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: start;
  min-height: 128px;
  padding: 17px 20px;
  color: inherit;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.community-chat-row-copy { display: grid; gap: 4px; }

.community-chat-row-author {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.community-chat-row-author > strong { font-size: .82rem; }
.community-chat-row-author > em { padding: 1px 5px; border-radius: 4px; background: var(--coral); color: #fff; font-size: .58rem; font-style: normal; }
.community-chat-row-author > small { color: var(--muted); font-size: .67rem; }
.community-chat-row-author > time { margin-left: auto; color: #8a877f; font-size: .66rem; font-variant-numeric: tabular-nums; }

.community-chat-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
  color: var(--muted);
  font-size: .65rem;
}

.community-chat-row-meta > strong {
  color: var(--cobalt);
  font-weight: 800;
}

.community-chat-row-meta > em {
  color: #77736c;
  font-style: normal;
}

.community-chat-row-meta > em[data-community-status="solved"] { color: #2f6940; font-weight: 800; }

.community-chat-row h2 {
  margin: 2px 0 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.community-chat-row-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #55524d;
  font-size: .78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-chat-row-activity {
  display: grid;
  min-height: 44px;
  place-content: center;
  color: #77736c;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.community-chat-row-activity strong { font-size: .9rem; line-height: 1; }
.community-chat-row-activity small { margin-top: 3px; font-size: .6rem; }

@media (hover: hover) and (pointer: fine) {
  .community-chat-row-main:hover { background: #f7f7f5; }
}

.community-author {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.community-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: #e8e5dd;
  color: #494741;
  font-size: .72rem;
  font-weight: 900;
}

.community-identity { display: grid; gap: 1px; }
.community-identity > span { display: flex; gap: 6px; align-items: center; }
.community-author strong { font-size: .86rem; }
.community-author small { color: var(--muted); font-size: .7rem; }
.community-author em { padding: 1px 6px; border-radius: 999px; background: var(--coral); color: white; font-size: .6rem; font-style: normal; }

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.community-tags li {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0efec;
  color: #5f5c56;
  font-size: .66rem;
  font-weight: 700;
}

.community-editor > form,
.community-profile-form,
.community-summary-form {
  display: grid;
  gap: 20px;
  max-width: 860px;
  padding: clamp(20px, 4vw, 36px);
  border-radius: 16px;
  background: var(--paper-lifted);
  box-shadow: 0 0 0 1px rgba(24, 24, 24, .08), 0 8px 24px rgba(24, 24, 24, .06);
}

.community-editor fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--rule);
}

.community-editor legend { padding: 0 8px; font-weight: 900; }
.community-radio { display: inline-flex !important; min-height: 44px; grid-auto-flow: column; align-items: center; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 8px; }
.community-radio input { width: 20px; min-height: 20px; padding: 0; }
.community-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.community-safety-check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; padding: 16px; background: #fff4e8; }
.community-safety-check input { width: 20px; min-height: 20px; padding: 0; }
.community-form-result { min-height: 1.5em; margin: 0; color: var(--coral); }
.community-rules { padding: 16px; border-left: 4px solid var(--coral); background: #fff4e8; }
.community-rules p { margin: 6px 0 0; color: var(--muted); }

.community-chat-thread-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
}

.community-chat-thread-bar > a { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--ink); font-size: 1.2rem; text-decoration: none; }
.community-chat-thread-bar > div { display: grid; gap: 2px; }
.community-chat-thread-bar > div strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.community-chat-thread-bar > div span { color: var(--muted); font-size: .67rem; font-variant-numeric: tabular-nums; }
.community-chat-thread-bar > em { padding: 4px 8px; border-radius: 6px; background: #efeeeb; color: #66625d; font-size: .65rem; font-style: normal; white-space: nowrap; }
.community-chat-thread-bar > em[data-community-status="solved"] { background: #e2eee4; color: #2f6940; }

.community-detail {
  width: min(calc(100% - 32px), 820px);
  padding-top: 18px;
}

.community-summary {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
  background: #f3f6fb;
}

.community-summary-label { display: flex; align-items: baseline; gap: 10px; }
.community-summary-label span { color: var(--cobalt); font-size: .65rem; font-weight: 800; }
.community-summary-label strong { font-size: .86rem; }
.community-summary > p { margin: 0; font-size: .82rem; line-height: 1.7; white-space: pre-wrap; }
.community-summary h3 { margin: 0; font-size: .72rem; }
.community-summary .community-tags { margin: 6px 0 0; }
.community-summary footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.community-summary footer .community-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: .62rem; }

.community-chat-thread {
  position: relative;
  min-height: 60vh;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 12px 36px rgba(0, 0, 0, .05);
}

.community-chat-thread-bar + .community-summary,
.community-chat-thread-bar + .community-chat-thread,
.community-summary + .community-chat-thread { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }

.community-chat-message {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(24, 24, 24, .07);
  background: #fff;
}

.community-chat-message > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.community-chat-message > header > time { color: #8a877f; font-size: .66rem; font-variant-numeric: tabular-nums; }
.community-chat-message-copy { margin-left: 50px; }
.community-message-labels { display: flex; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .65rem; }
.community-message-labels > span { color: var(--cobalt); font-weight: 800; }
.community-message-labels > em { font-style: normal; }

.community-chat-message h1 {
  margin: 7px 0 10px;
  font-family: inherit;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.45;
}

.community-chat-text,
.community-chat-message--reply .community-chat-message-copy > p { margin: 0; font-size: .91rem; line-height: 1.78; white-space: pre-wrap; }

.community-chat-context {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f6f4;
}

.community-chat-context > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
.community-chat-context dt { color: #76726c; font-size: .7rem; font-weight: 800; }
.community-chat-context dd { margin: 0; font-size: .78rem; line-height: 1.65; white-space: pre-wrap; }
.community-chat-message footer { margin-top: 10px; }
.community-chat-message footer button,
.community-status-actions button,
.community-chat-message--reply button,
.community-report button,
.community-notifications button { min-height: 40px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: #65615c; font-size: .7rem; font-weight: 700; }

.community-status-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 12px; padding: 14px; border-radius: 10px; background: rgba(24, 24, 24, .025); }
.community-status-actions h2 { margin: 0; font-family: inherit; font-size: .8rem; }
.community-status-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.community-status-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.community-status-actions label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 900; }
.community-status-actions input { min-height: 44px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: white; color: var(--ink); font-size: 16px; }
.community-chat-replies { margin: 0; }
.community-chat-replies > h2 { margin: 0; padding: 12px 22px; border-bottom: 1px solid rgba(24, 24, 24, .07); color: var(--muted); font-family: inherit; font-size: .7rem; font-weight: 700; }
.community-chat-replies > h2 span { color: var(--cobalt); font-variant-numeric: tabular-nums; }
.community-chat-replies > div { display: grid; }
.community-chat-message--reply .community-chat-message-copy { display: grid; gap: 6px; }
.community-chat-message--reply form { justify-self: start; }

.community-chat-composer {
  position: sticky;
  z-index: 18;
  bottom: calc(48px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 -10px 24px rgba(0, 0, 0, .04);
}

.community-chat-composer > .community-avatar { width: 36px; height: 36px; flex-basis: 36px; margin-bottom: 4px; font-size: .65rem; }
.community-chat-composer label { display: block; }
.community-chat-composer label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.community-chat-composer textarea { width: 100%; min-height: 44px; max-height: 144px; padding: 10px 12px; border: 1px solid #d6d4cf; border-radius: 12px; background: #f7f7f5; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.community-chat-composer textarea:focus { border-color: var(--cobalt); background: #fff; outline: 2px solid rgba(85, 114, 173, .16); outline-offset: 1px; }
.community-chat-composer > button { min-width: 60px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--cobalt); color: #fff; font-weight: 800; }
.community-chat-composer > p { grid-column: 2 / -1; min-height: 0; margin: 0; color: var(--coral); font-size: .7rem; }

.community-summary-form { margin-block: 48px; border-color: var(--coral); }
.community-thread-tools { margin-top: 14px; padding: 0 4px; color: var(--muted); }
.community-thread-tools > summary { display: flex; min-height: 44px; align-items: center; cursor: pointer; font-size: .72rem; }
.community-report { margin-top: 12px; padding: 12px; border-top: 1px solid var(--rule); }
.community-report summary { min-height: 44px; cursor: pointer; }
.community-report form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }

.community-learn-search { grid-template-columns: minmax(0, 1fr) auto; }
.community-learning-results { margin-top: 24px; }
.community-learning-results article p { color: var(--muted); }
.community-learning-results time { font-size: .72rem; }

.community-profile-form { margin-bottom: 48px; }
.community-profile-form label > span { color: var(--muted); font-size: .68rem; font-weight: 500; }
.community-device-storage {
  display: grid;
  gap: 12px;
  margin-block: 48px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}
.community-device-storage > header,
.community-device-storage > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.community-device-storage h2,
.community-device-storage p { margin: 0; }
.community-device-storage h2 { font-family: var(--serif); font-size: 1.45rem; }
.community-device-storage > header strong,
.community-device-storage > div strong { font-variant-numeric: tabular-nums; }
.community-device-storage p,
.community-device-storage small { color: var(--muted); line-height: 1.65; }
.community-device-storage > button {
  width: fit-content;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.community-notifications,
.community-my-posts { margin-block: 48px; }
.community-notifications h2,
.community-my-posts > h2 { font-family: var(--serif); font-size: 1.8rem; }
.community-notifications ul { margin: 0 0 16px; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.community-notifications li { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--rule); }
.community-notifications li.is-unread { border-left: 4px solid var(--coral); background: #fff4e8; }
.community-notifications time { color: var(--muted); font-size: .7rem; }
.community-staff-note { padding: 16px; border: 1px solid var(--coral); color: var(--coral); font-weight: 900; }

.community-mobile-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--ink);
  background: #faf9f2;
  box-shadow: 0 -8px 24px rgba(24, 24, 24, .08);
}

.community-mobile-nav a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-right: 1px solid var(--rule);
  font-size: .75rem;
  font-weight: 900;
  text-decoration: none;
}

.community-mobile-nav a:last-child { border-right: 0; }
.community-mobile-nav a[aria-current="page"] { background: var(--cobalt); color: white; }
.community-mobile-nav + .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

.community-main button,
.community-main a,
.community-mobile-nav a {
  transition-property: scale, background-color, color, border-color, box-shadow;
  transition-duration: 160ms;
}

.community-main button:active,
.community-main a:active,
.community-mobile-nav a:active { scale: .96; }

@media (hover: hover) and (pointer: fine) {
  .community-chat-compose:hover { background: #f7f7f5; }
  .community-chat-new:hover,
  .community-chat-composer > button:hover { background: #49639b; }
}

@media (min-width: 901px) {
  .community-mobile-nav { display: none; }
  .community-mobile-nav + .site-footer { padding-bottom: 28px; }
  .community-chat-composer { bottom: 16px; }
}

@media (max-width: 900px) {
  .community-main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .community-home-cta { grid-template-columns: 1fr; }
  .community-filter { grid-template-columns: 1fr 1fr; }
  .community-filter label:first-child { grid-column: 1 / -1; }
  .community-filter .button { width: 100%; }
}

@media (max-width: 560px) {
  .community-main { width: 100%; padding-top: 0; }
  .community-chat-inbox { border-radius: 0; box-shadow: none; }
  .community-chat-topbar { padding: 14px 16px; }
  .community-chat-topbar p { display: none; }
  .community-chat-compose { padding-inline: 16px; }
  .community-filter-panel > summary { padding-inline: 16px; }
  .community-filter { padding-inline: 16px; }
  .community-chat-row-main { min-height: 118px; padding: 15px 14px; }
  .community-chat-row-author > small { display: none; }
  .community-detail { width: 100%; }
  .community-chat-thread-bar { border-radius: 0; }
  .community-chat-thread { min-height: calc(100dvh - 176px); box-shadow: none; }
  .community-chat-message { padding: 16px 14px; }
  .community-chat-message-copy { margin-left: 48px; }
  .community-chat-context > div { grid-template-columns: 1fr; gap: 2px; }
  .community-summary { padding-inline: 16px; }
  .community-chat-composer { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  .community-chat-composer > .community-avatar { display: none; }
  .community-chat-composer > p { grid-column: 1 / -1; }
  .community-home-cta { margin-inline: 12px; padding-inline: 16px; }
  .community-filter,
  .community-learn-search,
  .community-field-grid,
  .community-report form { grid-template-columns: 1fr; }
  .community-field-grid { grid-template-columns: 1fr; }
  .community-filter label:first-child { grid-column: auto; }
  .community-editor > form,
  .community-profile-form,
  .community-summary-form { padding: 18px; }
  .community-editor fieldset { display: grid; }
  .community-summary footer,
  .community-status-actions,
  .community-notifications li { align-items: stretch; flex-direction: column; }
  .community-notice,
  .community-empty,
  .community-empty-reply { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .community-main *,
  .community-mobile-nav * { scroll-behavior: auto !important; scale: 1 !important; transition: none !important; }
}

/* Circle chat + one-level threads / 2026-08-31 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-room {
  width: min(calc(100% - 32px), 920px);
  padding-top: 12px;
}

.community-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(24, 24, 24, .12);
  background: var(--paper);
}

.community-room-header h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.community-room-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.community-room-header > a,
.community-thread-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--cobalt);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.community-room-header > a span,
.community-thread-header span,
.community-thread-link,
.community-thread-preview small {
  font-variant-numeric: tabular-nums;
}

.community-room-feed {
  min-height: 52vh;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 12px 30px rgba(0, 0, 0, .035);
}

.community-load-older {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(24, 24, 24, .08);
  color: var(--cobalt);
  font-size: .74rem;
  font-weight: 800;
}

.community-room-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 16px 7px;
  border-bottom: 1px solid rgba(24, 24, 24, .075);
  background: #fff;
  scroll-margin-top: 84px;
}

.community-room-message:last-child { border-bottom: 0; }
.community-room-message.is-muted { background: #f7f7f5; }
.community-room-message > .community-author { align-self: start; }
.community-room-message > .community-author .community-identity { display: none; }

.community-room-message-content {
  display: grid;
  gap: 3px;
}

.community-room-message-content > header,
.community-thread-root > div > header,
.community-thread-reply > div > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
}

.community-room-message-content > header strong { font-size: .82rem; }

.community-thread-root > div > header strong,
.community-thread-reply > div > header strong { font-size: .85rem; }

.community-room-message-content > header em {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: .58rem;
  font-style: normal;
}

.community-room-message-content > header span,
.community-room-message-content > header time {
  color: #6b675e;
  font-size: .7rem;
}

.community-thread-root > div > header span,
.community-thread-reply > div > header span,
.community-thread-root > div > header time,
.community-thread-reply > div > header time {
  color: #6b675e;
  font-size: .74rem;
}

.community-room-message-content > header time,
.community-thread-root > div > header time,
.community-thread-reply > div > header time { font-variant-numeric: tabular-nums; }

.community-room-message-content h2 {
  margin: 3px 0 0;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  text-wrap: balance;
}

.community-room-message-text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .94rem;
  line-height: 1.62;
  text-wrap: pretty;
  white-space: pre-wrap;
}

.community-thread-root > div > p,
.community-thread-reply > div > p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
  white-space: pre-wrap;
}

.community-thread-root > div > h1,
.community-thread-root > div > h2 {
  text-wrap: balance;
}

.community-room-message-text.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-message-continue {
  width: fit-content;
  color: #55524d;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.community-room-message-meta {
  display: flex;
  min-height: 34px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 2px;
}

.community-thread-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--cobalt);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.community-thread-link time { color: #6b675e; font-size: .72rem; font-weight: 500; }

.community-room-message-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.community-room-message-actions form { margin: 0; }

.community-message-action,
.community-message-more > summary,
.community-thread-reply footer button,
.community-thread-reply footer summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #55524d;
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.community-message-action span { font-variant-numeric: tabular-nums; }

.community-helpful-action {
  position: relative;
  isolation: isolate;
  gap: 3px;
}

.community-helpful-action.is-celebrating:disabled {
  color: #55524d;
  opacity: 1;
}

.community-helpful-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: visible;
  transform-origin: center;
}

.community-helpful-icon img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 29px;
  height: 29px;
  max-width: none;
  clip-path: inset(4.5px);
  transform: translate(-50%, -50%);
}

.community-helpful-icon::before,
.community-helpful-icon::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: '';
  opacity: 0;
  pointer-events: none;
}

.community-helpful-icon::before {
  inset: 1px;
  border: 2px solid var(--workspace-vermilion);
}

.community-helpful-icon::after {
  top: 8.5px;
  left: 8.5px;
  width: 3px;
  height: 3px;
  background: var(--workspace-vermilion);
  box-shadow:
    0 -15px 0 var(--workspace-vermilion),
    11px -11px 0 var(--workspace-vermilion),
    15px 0 0 var(--workspace-vermilion),
    11px 11px 0 var(--workspace-vermilion),
    0 15px 0 var(--workspace-vermilion),
    -11px 11px 0 var(--workspace-vermilion),
    -15px 0 0 var(--workspace-vermilion),
    -11px -11px 0 var(--workspace-vermilion);
}

.community-helpful-action.is-celebrating .community-helpful-icon {
  animation: community-helpful-pop 420ms cubic-bezier(.2, .85, .25, 1) both;
}

.community-helpful-action.is-celebrating .community-helpful-icon::before {
  animation: community-helpful-ring 420ms cubic-bezier(.2, 0, 0, 1) both;
}

.community-helpful-action.is-celebrating .community-helpful-icon::after {
  animation: community-helpful-burst 420ms cubic-bezier(.2, 0, 0, 1) both;
}

@keyframes community-helpful-pop {
  0% { scale: 1; }
  24% { scale: .86; }
  62% { scale: 1.18; }
  100% { scale: 1; }
}

@keyframes community-helpful-ring {
  0%, 20% { opacity: 0; scale: .45; }
  36% { opacity: .9; }
  100% { opacity: 0; scale: 1.65; }
}

@keyframes community-helpful-burst {
  0%, 28% { opacity: 0; rotate: -8deg; scale: .55; }
  42% { opacity: 1; }
  100% { opacity: 0; rotate: 12deg; scale: 1.28; }
}

.community-message-action:active,
.community-thread-reply footer .community-helpful-action:active { scale: .96; }

@media (prefers-reduced-motion: reduce) {
  .community-helpful-action.is-celebrating,
  .community-helpful-action.is-celebrating .community-helpful-icon,
  .community-helpful-action.is-celebrating .community-helpful-icon::before,
  .community-helpful-action.is-celebrating .community-helpful-icon::after {
    animation: none;
  }
}

.community-message-more { position: relative; }
.community-message-more > summary { min-width: 40px; justify-content: center; list-style: none; font-size: 1.05rem; }
.community-message-more > summary::-webkit-details-marker { display: none; }

.community-message-more > div,
.community-thread-reply footer details > div {
  position: absolute;
  z-index: 30;
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .08),
    0 8px 24px rgba(0, 0, 0, .12);
}

.community-message-more label,
.community-thread-reply footer label,
.community-thread-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.community-message-more input,
.community-thread-reply footer input,
.community-thread-tools input,
.community-thread-tools textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbc8c1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.community-message-more form + form { margin-top: 8px; }
.community-message-more form button,
.community-thread-reply footer details button,
.community-thread-tools button {
  min-height: 40px;
  margin-top: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #efeeeb;
  color: #494741;
  font-weight: 800;
}

.community-room-composer,
.community-thread-composer {
  position: sticky;
  z-index: 20;
  bottom: calc(48px + env(safe-area-inset-bottom));
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 -10px 26px rgba(0, 0, 0, .045);
}

.community-room-composer {
  position: sticky;
  bottom: calc(48px + env(safe-area-inset-bottom));
}

.community-room-composer-row { display: block; }

.community-thread-composer {
  display: grid;
  gap: 4px;
}

.community-composer-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: #f8f8f6;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .12),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 2px 4px rgba(0, 0, 0, .035);
  transition-property: box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.community-composer-control:focus-within {
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(85, 114, 173, .28),
    0 2px 6px rgba(0, 0, 0, .05);
}

.community-room-composer .community-avatar,
.community-thread-composer .community-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  margin-bottom: 0;
  font-size: .64rem;
}

.community-room-composer label,
.community-thread-composer label { display: block; }

.community-room-composer textarea,
.community-thread-composer textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 160px;
  padding: 10px 12px;
  border: 1px solid #cbc8c1;
  border-radius: 12px;
  background: #f8f8f6;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.community-room-composer textarea::-webkit-scrollbar,
.community-thread-composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.community-room-composer textarea:focus,
.community-thread-composer textarea:focus {
  border-color: var(--cobalt);
  background: #fff;
  outline: 2px solid rgba(85, 114, 173, .16);
  outline-offset: 1px;
}

.community-room-composer button[type="submit"],
.community-thread-composer .community-composer-control > button[type="submit"] {
  min-width: 62px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 850;
}

.community-room-composer button:disabled,
.community-thread-composer button:disabled { cursor: wait; opacity: .66; }

.community-room-composer-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 0;
}

.community-room-composer-foot small { color: #76726c; font-size: .65rem; }
.community-room-composer-foot p,
.community-thread-composer > p { min-height: 0; margin: 0; color: #a6341b; font-size: .68rem; }

.community-chat-rules {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e8;
  color: #514d47;
  font-size: .72rem;
  line-height: 1.55;
}

.community-chat-rules input { width: 20px; height: 20px; margin: 1px 0 0; }

.community-new-message {
  position: fixed;
  z-index: 24;
  right: max(18px, calc((100vw - 920px) / 2 + 18px));
  bottom: calc(142px + env(safe-area-inset-bottom));
  min-height: 40px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 5px 16px rgba(30, 50, 90, .2);
  font-weight: 800;
}

.community-new-message [data-community-new-message-label] {
  font-variant-numeric: tabular-nums;
}

.community-room-empty {
  display: grid;
  min-height: 45vh;
  place-content: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.community-room-empty p { margin: 6px 0 0; font-size: .8rem; }

.community-thread-layout {
  width: min(calc(100% - 32px), 760px);
  padding-top: 12px;
}

.community-thread-panel {
  overflow: clip;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 12px 30px rgba(0, 0, 0, .04);
}

.community-thread-header {
  position: sticky;
  z-index: 22;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
  background: rgba(255, 255, 255, .98);
}

.community-thread-header > div { display: grid; gap: 2px; }
.community-thread-header > div strong,
.community-thread-header > div h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 780;
  line-height: 1.4;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.community-thread-header > div span { color: var(--muted); font-size: .68rem; }
.community-thread-header form { margin: 0; }
.community-thread-header button {
  min-height: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #efeeeb;
  color: #4f4c47;
  font-size: .7rem;
  font-weight: 800;
}

.community-thread-root,
.community-thread-reply {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(24, 24, 24, .08);
  scroll-margin-top: 70px;
}

.community-thread-root > .community-author .community-identity,
.community-thread-reply > .community-author .community-identity { display: none; }
.community-thread-root > div,
.community-thread-reply > div { display: grid; gap: 7px; }
.community-thread-root h1 { margin: 2px 0 0; font-family: inherit; font-size: 1.05rem; line-height: 1.5; }
.community-thread-reply.is-muted { background: #f7f7f5; color: #77736c; }

.community-thread-reply footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.community-thread-reply footer form { margin: 0; }
.community-thread-reply footer details { position: relative; }
.community-thread-reply footer summary { list-style: none; }
.community-thread-reply footer summary::-webkit-details-marker { display: none; }

.community-legacy-context {
  margin-top: 7px;
  border-top: 1px solid rgba(24, 24, 24, .08);
}

.community-legacy-context summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  color: var(--cobalt);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}

.community-legacy-context dl { display: grid; gap: 8px; margin: 0 0 8px; }
.community-legacy-context dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.community-legacy-context dt { color: var(--muted); font-size: .7rem; font-weight: 800; }
.community-legacy-context dd { margin: 0; font-size: .78rem; line-height: 1.65; white-space: pre-wrap; }

.community-thread-replies { min-height: 28vh; }

.community-summary {
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(24, 24, 24, .09);
  background: #f2f5fa;
}

.community-summary > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.community-summary > header span { color: var(--cobalt); font-size: .68rem; font-weight: 850; }
.community-summary > header strong { font-size: .9rem; }
.community-summary > p { font-size: .84rem; }
.community-summary ul { margin: 6px 0 0; padding-left: 20px; font-size: .78rem; }

.community-thread-tools {
  margin: 0;
  padding: 0 18px 22px;
}

.community-thread-tools > summary {
  min-height: 44px;
  align-items: center;
  border-top: 1px solid rgba(24, 24, 24, .08);
}

.community-thread-tools > div { display: grid; gap: 16px; padding-top: 10px; }
.community-thread-tools form { display: grid; gap: 10px; }
.community-summary-form { margin: 0; padding: 16px; }

.community-reports-page .community-selected-conversation { overflow: auto; background: var(--workspace-paper); }
.community-reports-panel { width: min(100%, 760px); margin: 0 auto; padding: 28px clamp(18px, 4vw, 42px) 48px; }
.community-reports-panel .community-page-heading { margin-bottom: 18px; }
.community-reports-panel .community-page-heading h2 { display: flex; align-items: baseline; gap: 9px; margin: 0; color: var(--workspace-ink); font-size: 1.1rem; }
.community-reports-panel .community-page-heading h2 span { color: var(--workspace-muted); font-size: .72rem; font-weight: 760; }
.community-reports-panel .community-page-heading p { margin: 7px 0 0; color: var(--workspace-muted); font-size: .78rem; line-height: 1.65; }
.community-report-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.community-report-card { padding: 16px 18px; border: 1px solid var(--workspace-rule); border-radius: 12px; background: #fff; box-shadow: 0 2px 9px rgba(28, 32, 45, .035); }
.community-report-card article { display: grid; gap: 10px; }
.community-report-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.community-report-card header strong { font-size: .82rem; }
.community-report-card header span { color: var(--workspace-blue-pencil); font-size: .74rem; font-weight: 800; }
.community-report-card header time { margin-left: auto; color: var(--workspace-muted); font-size: .7rem; }
.community-report-excerpt,
.community-report-reason { margin: 0; line-height: 1.65; }
.community-report-excerpt { color: var(--workspace-ink); font-size: .84rem; white-space: pre-wrap; }
.community-report-status { display: inline-flex; margin-right: 7px; padding: 2px 6px; border-radius: 5px; background: var(--workspace-soft); color: var(--workspace-muted); font-size: .68rem; font-weight: 800; }
.community-report-reason { color: var(--workspace-muted); font-size: .74rem; }
.community-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.community-report-actions a { color: var(--workspace-link); font-size: .76rem; font-weight: 780; }
.community-report-actions form { margin-left: auto; }
.community-report-actions button { min-height: 40px; padding: 7px 12px; border: 1px solid var(--workspace-rule); border-radius: 8px; background: var(--workspace-soft); color: var(--workspace-ink); font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }

.community-threads-index {
  width: min(calc(100% - 32px), 760px);
  padding-top: 12px;
}

.community-threads-index > section,
.community-my-posts {
  display: grid;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.community-thread-preview { border-bottom: 1px solid rgba(24, 24, 24, .08); }
.community-thread-preview:last-child { border-bottom: 0; }
.community-thread-preview > a {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.community-thread-preview .community-author { display: none; }
.community-thread-preview > a > strong { font-size: .9rem; line-height: 1.5; }
.community-thread-preview > a > p { margin: 0; color: #5e5a54; font-size: .78rem; line-height: 1.55; }
.community-thread-preview > a > small { color: var(--muted); font-size: .68rem; }

.community-notice.community-chat-profile-gate { margin: 0; border-radius: 0; }

.community-room button,
.community-room a,
.community-thread-layout button,
.community-thread-layout a,
.community-threads-index a {
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.community-room button:active,
.community-room a:active,
.community-thread-layout button:active,
.community-thread-layout a:active,
.community-threads-index a:active { scale: .96; }

@media (hover: hover) and (pointer: fine) {
  .community-room-message:hover { background: #fbfbfa; }
  .community-message-action:hover,
  .community-message-more > summary:hover,
  .community-thread-reply footer button:hover,
  .community-thread-reply footer summary:hover { background: #f0efec; }
  .community-thread-preview > a:hover { background: #f7f7f5; }
  .community-room-composer button[type="submit"]:hover,
  .community-thread-composer .community-composer-control > button[type="submit"]:hover { background: #49639b; }
}

@media (min-width: 901px) {
  .community-room-composer,
  .community-thread-composer { bottom: 14px; }
  .community-thread-panel { border-radius: 14px; }
}

@media (max-width: 560px) {
  .community-room,
  .community-thread-layout,
  .community-threads-index {
    width: 100%;
    padding-inline: 0;
  }
  .community-room { padding-inline: 0; }
  .community-room-header { min-height: 62px; padding: 9px 14px; }
  .community-room-header p { display: none; }
  .community-room-header > a { max-width: 140px; justify-content: flex-end; text-align: right; }
  .community-room-feed { min-height: calc(100dvh - 220px); box-shadow: none; }
  .community-room-message { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 12px 10px; }
  .community-room-message .community-avatar,
  .community-thread-root .community-avatar,
  .community-thread-reply .community-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: .64rem; }
  .community-room-message-content > header span,
  .community-thread-root > div > header span,
  .community-thread-reply > div > header span { display: none; }
  .community-room-message-meta { align-items: flex-start; flex-direction: column; }
  .community-room-message-actions { width: 100%; justify-content: flex-start; }
  .community-room-composer,
  .community-thread-composer { padding: 9px 10px; }
  .community-room-composer-row { grid-template-columns: minmax(0, 1fr) auto; }
  .community-room-composer .community-avatar,
  .community-thread-composer .community-avatar { display: none; }
  .community-room-composer-foot { padding-inline: 0; }
  .community-room-composer-foot small { max-width: 240px; }
  .community-new-message { right: 12px; bottom: calc(142px + env(safe-area-inset-bottom)); }
  .community-thread-panel { min-height: calc(100dvh - 112px); box-shadow: none; }
  .community-thread-root,
  .community-thread-reply { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 15px 12px; }
  .community-legacy-context dl div { grid-template-columns: 1fr; gap: 2px; }
  .community-thread-tools { padding-inline: 12px; }
  .community-chat-rules { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .community-room *,
  .community-thread-layout *,
  .community-threads-index * {
    scroll-behavior: auto !important;
    scale: 1 !important;
    transition: none !important;
  }
}

/* Circle community workspace / Stream structure + Inspora restraint */
.community-account-menu { position: relative; }
.community-account-menu > summary {
  position: relative;
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  list-style: none;
  cursor: pointer;
}
.community-account-menu > summary::-webkit-details-marker { display: none; }
.community-account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #ededed;
  color: #242424;
  font-size: .65rem;
  font-weight: 800;
}
.community-account-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .12);
}
.community-account-popover header { display: grid; gap: 3px; padding: 8px 10px 10px; border-bottom: 1px solid #e8e8e8; }
.community-account-popover header > strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.community-account-popover header span,
.community-account-popover header small { display: flex; align-items: center; gap: 6px; color: #6e6e73; font-size: .67rem; font-variant-numeric: tabular-nums; }
.community-account-popover a,
.community-account-popover button { display: flex; width: 100%; min-height: 40px; align-items: center; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #111; font: inherit; font-size: .74rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.community-account-popover form { margin: 0; }
body .community-account-popover .member-account-legal-links { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px 2px; border-top: 1px solid #e8e8e8; }
body .community-account-popover .member-account-legal-links a { min-height: 26px; padding: 3px 0; color: #777; font-size: .62rem; font-weight: 500; }

body.community-workspace {
  --community-shell-offset: 60px;
  --workspace-ink: #111;
  --workspace-muted: #6e6e73;
  --workspace-rule: #e8e8e8;
  --workspace-soft: #f7f7f7;
  --workspace-link: #245fd2;
  --workspace-blue-pencil: #5572ad;
  --workspace-vermilion: #d84018;
  min-width: 0;
  min-height: 100dvh;
  background: #fff;
  color: var(--workspace-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.community-workspace .site-header {
  min-height: 60px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--workspace-rule);
  background: #fff;
  backdrop-filter: none;
}

.community-workspace .site-logo {
  flex-direction: row;
  align-items: baseline;
  gap: 9px;
  color: var(--workspace-ink);
}

.community-workspace .site-logo strong {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.community-workspace .site-logo span {
  color: var(--workspace-muted);
  font-size: .62rem;
  letter-spacing: .08em;
}

.community-workspace .site-nav { gap: 3px; }

.community-workspace .site-nav a {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 4px;
  color: var(--workspace-muted);
  font-size: .76rem;
  font-weight: 700;
}

.community-workspace .site-nav a::after { display: none; }
.community-workspace .site-nav a[aria-current="page"] { background: var(--workspace-soft); color: var(--workspace-ink); }
.community-workspace .community-account-menu[data-current="true"] > summary { background: var(--workspace-soft); }
.community-workspace .community-account-menu > summary:focus-visible { outline: 2px solid var(--workspace-blue-pencil); outline-offset: 2px; }
.community-workspace .menu-button { display: none; }
.community-workspace .site-footer { display: none; }

.community-workspace .community-main {
  width: min(100%, 1120px);
  min-height: calc(100dvh - var(--community-shell-offset));
  padding: 0;
  border-right: 1px solid var(--workspace-rule);
  border-left: 1px solid var(--workspace-rule);
  background: #fff;
}

.community-workspace-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: calc(100dvh - var(--community-shell-offset));
}

.community-conversation-rail {
  position: sticky;
  top: var(--community-shell-offset);
  min-width: 0;
  max-height: calc(100dvh - var(--community-shell-offset));
  border-right: 1px solid var(--workspace-rule);
  background: #fff;
  overflow-y: auto;
}

.community-conversation-rail-heading {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--workspace-rule);
}

.community-conversation-rail-heading h1,
.community-rail-section h2 {
  margin: 0;
  font-family: inherit;
  text-wrap: balance;
}

.community-conversation-rail-heading h1 {
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -.02em;
}

.community-attachment-operations {
  margin: 8px 12px 2px;
  padding: 7px 9px;
  border: 1px solid rgba(189, 53, 24, .22);
  border-radius: 10px;
  background: rgba(189, 53, 24, .06);
  color: #8b2d19;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
}

.community-attachment-unavailable {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 4px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid var(--workspace-rule);
  border-radius: 8px;
  background: #fff;
  color: var(--workspace-muted);
  font-size: .7rem;
  line-height: 1.2;
  white-space: nowrap;
}

.community-attachment-picker-button.is-disabled {
  cursor: not-allowed;
  opacity: .45;
}

.community-conversation-unread-count {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--workspace-ink);
  color: #fff;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.community-rail-room {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--workspace-rule);
  color: var(--workspace-ink);
  font-size: .78rem;
  font-weight: 760;
  text-decoration: none;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.community-rail-room[aria-current="page"] {
  background: var(--workspace-soft);
  box-shadow: inset 3px 0 var(--workspace-blue-pencil);
}

.community-rail-report-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: auto;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--workspace-ink);
  color: #fff;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.community-rail-section { padding-top: 10px; }

.community-rail-section h2 {
  padding: 4px 14px 7px;
  color: var(--workspace-muted);
  font-size: .67rem;
  font-weight: 740;
  letter-spacing: .04em;
}

.community-rail-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-rail-section li { border-bottom: 1px solid var(--workspace-rule); }

.community-rail-thread {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 9px 14px 10px;
  color: var(--workspace-ink);
  text-decoration: none;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.community-rail-thread[aria-current="page"] {
  background: var(--workspace-soft);
  box-shadow: inset 3px 0 var(--workspace-blue-pencil);
}

.community-rail-thread-meta,
.community-rail-thread-status {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.community-rail-thread-meta strong {
  overflow: hidden;
  font-size: .73rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-rail-thread-meta time,
.community-rail-thread-status {
  font-variant-numeric: tabular-nums;
}

.community-rail-thread-meta time,
.community-rail-thread-status small {
  flex: 0 0 auto;
  color: var(--workspace-muted);
  font-size: .63rem;
}

.community-rail-thread-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #4f4f52;
  font-size: .74rem;
  line-height: 1.45;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-rail-unread {
  flex: 0 0 auto;
  color: var(--workspace-blue-pencil);
  font-size: .63rem;
  font-weight: 800;
}

.community-rail-empty {
  margin: 0;
  padding: 8px 14px 12px;
  color: var(--workspace-muted);
  font-size: .7rem;
  text-wrap: pretty;
}

.community-selected-conversation {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.community-workspace-grid .community-room,
.community-workspace-grid .community-thread-layout {
  width: 100%;
  min-height: calc(100dvh - var(--community-shell-offset));
  padding-inline: 0;
}

.community-workspace-grid .community-chat-column { border-right: 0; }

.community-workspace .community-room-header h2 {
  margin: 0;
  color: var(--workspace-ink);
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 780;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.community-workspace .community-message-action,
.community-workspace .community-message-more > summary,
.community-workspace .community-thread-reply footer button,
.community-workspace .community-thread-reply footer summary {
  min-height: 44px;
}

.community-workspace .community-message-more > summary { min-width: 44px; }

.community-workspace .community-account-popover a,
.community-workspace .community-account-popover button,
.community-workspace .community-inline-editor button,
.community-workspace .community-thread-header button,
.community-workspace .community-legacy-context summary,
.community-workspace .community-new-message { min-height: 44px; }

.community-workspace .community-message-continue,
.community-workspace .community-chat-profile-gate a,
.community-workspace .community-thread-profile-gate a,
.community-workspace .community-thread-tools button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.community-thread-index-empty {
  display: grid;
  min-height: calc(100dvh - var(--community-shell-offset));
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: clamp(28px, 6vw, 64px);
  color: var(--workspace-muted);
}

.community-thread-index-empty h2,
.community-thread-index-empty p { margin: 0; }
.community-thread-index-empty h2 { color: var(--workspace-ink); font-family: inherit; font-size: 1.08rem; }
.community-thread-index-empty p { max-width: 34rem; font-size: .8rem; line-height: 1.7; text-wrap: pretty; }
.community-thread-index-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--workspace-link);
  font-size: .76rem;
  font-weight: 750;
}

.community-rail-room:active,
.community-rail-thread:active { scale: .96; }

@media (hover: hover) and (pointer: fine) {
  .community-rail-room:hover,
  .community-rail-thread:hover { background: var(--workspace-soft); }
}

@media (max-width: 767px) {
  body.community-workspace { --community-shell-offset: 0px; }

  .community-workspace .site-header { display: none; }

  .community-workspace .community-main {
    min-height: 100dvh;
    border-right: 0;
    border-left: 0;
  }

  .community-workspace-grid {
    display: block;
    min-height: 100dvh;
  }

  .community-workspace-grid > .community-conversation-rail { display: none; }

  .community-conversation-rail[hidden],
  .community-selected-conversation[hidden] { display: none; }

  .community-threads-index { width: 100%; }

  .community-threads-index .community-workspace-grid > .community-conversation-rail {
    display: block;
    position: static;
    width: 100%;
    border-right: 0;
  }

  .community-threads-index .community-workspace-grid > .community-selected-conversation { display: none; }

  .community-selected-conversation,
  .community-workspace-grid .community-room,
  .community-workspace-grid .community-thread-layout { min-height: 100dvh; }

  .community-workspace .community-room-header,
  .community-workspace .community-thread-header { top: 0; }
}

.community-chat-column { min-width: 0; }

.community-workspace .community-room,
.community-workspace .community-thread-layout,
.community-workspace .community-threads-index { padding-top: 0; }

.community-workspace .community-room-header {
  position: sticky;
  z-index: 21;
  top: 60px;
  min-height: 68px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--workspace-rule);
  background: rgba(255, 255, 255, .98);
}

.community-workspace .community-room-header::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 34px;
  height: 2px;
  background: var(--workspace-blue-pencil);
  content: "";
}

.community-workspace .community-room-header p { color: var(--workspace-muted); font-size: .74rem; }
.community-workspace .community-room-header > a,
.community-workspace .community-thread-back { color: var(--workspace-ink); }

.community-workspace .community-room-header > a span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 3px;
  background: var(--workspace-ink);
  color: #fff;
}

.community-workspace .community-room-feed {
  /* 140px = room header (68px) + composer (72px); the tab variable is 0 on wide screens. */
  min-height: calc(100dvh - var(--community-shell-offset) - 140px - var(--member-tab-height));
  background: #fff;
  box-shadow: none;
}

.community-workspace .community-room-message {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 16px 6px;
  border-bottom-color: var(--workspace-rule);
}

.community-workspace .community-room-message > .community-author { align-self: start; }

.community-workspace .community-room-message.is-muted,
.community-workspace .community-thread-reply.is-muted { background: var(--workspace-soft); }

.community-workspace .community-avatar {
  background: #ededed;
  color: #242424;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}

.community-avatar-presence { position: relative; display: inline-flex; width: fit-content; height: fit-content; }
.community-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2f8f5b;
}
.community-avatar-presence > .community-online-dot,
.community-account-menu > summary > .community-online-dot { position: absolute; right: -1px; bottom: -1px; }
.community-account-popover .community-online-dot { width: 8px; height: 8px; flex-basis: 8px; border: 0; }

.community-workspace .community-room-message-content > header strong,
.community-workspace .community-thread-root > div > header strong,
.community-workspace .community-thread-reply > div > header strong { color: var(--workspace-ink); font-weight: 750; }

.community-workspace .community-room-message-content > header em {
  border-radius: 3px;
  background: var(--workspace-ink);
}

.community-workspace .community-room-message-content > header span,
.community-workspace .community-thread-root > div > header span,
.community-workspace .community-thread-reply > div > header span,
.community-workspace .community-room-message-content > header time,
.community-workspace .community-thread-root > div > header time,
.community-workspace .community-thread-reply > div > header time { color: var(--workspace-muted); }
.community-workspace .community-edited { color: var(--workspace-muted); font-size: .64rem; font-weight: 600; }

.community-workspace .community-thread-link { color: var(--workspace-link); }
.community-workspace .community-thread-link time { color: var(--workspace-muted); }
.community-workspace .community-message-continue { color: var(--workspace-muted); }
.community-workspace .community-message-activity { color: var(--workspace-muted); font-size: .68rem; font-variant-numeric: tabular-nums; }

.community-workspace .community-message-action,
.community-workspace .community-message-more > summary,
.community-workspace .community-thread-reply footer button,
.community-workspace .community-thread-reply footer summary {
  border-radius: 4px;
  color: var(--workspace-muted);
  font-weight: 650;
}

.community-workspace .community-message-more > div,
.community-workspace .community-thread-reply footer details > div {
  width: min(220px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .08),
    0 8px 24px rgba(0, 0, 0, .1);
}

.community-workspace .community-message-more > div > button,
.community-workspace .community-message-more > div > form > button {
  width: 100%;
  margin: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--workspace-ink);
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.community-workspace .community-message-more > div > form { margin: 0; }
.community-workspace .community-message-more button[aria-label*="取り消す"] { color: #a6341b; }

.community-inline-editor { display: grid; gap: 8px; margin: 2px 0 4px; }
.community-inline-editor[hidden] { display: none; }
.community-inline-editor textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
}
.community-inline-editor textarea:focus { border-color: var(--workspace-blue-pencil); outline: 2px solid rgba(85, 114, 173, .14); }
.community-inline-editor > div { display: flex; justify-content: flex-end; gap: 6px; }
.community-inline-editor button { min-height: 40px; padding: 7px 12px; border: 0; border-radius: 5px; background: var(--workspace-soft); color: var(--workspace-ink); font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.community-inline-editor button[type="submit"] { background: var(--workspace-blue-pencil); color: #fff; }

.community-workspace .community-room-composer,
.community-workspace .community-thread-composer {
  bottom: 0;
  padding: 8px 16px 7px;
  border-top: 1px solid var(--workspace-rule);
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
}

.community-workspace .community-room-composer textarea,
.community-workspace .community-thread-composer textarea {
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
}

.community-workspace .community-room-composer textarea:focus,
.community-workspace .community-thread-composer textarea:focus {
  border-color: transparent;
  outline: 0;
}

.community-workspace .community-room-composer button[type="submit"] {
  position: relative;
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #d84018;
  color: #fff;
  box-shadow: 0 5px 14px rgba(216, 64, 24, .2), 0 0 0 1px rgba(216, 64, 24, .12);
  transition-property: scale, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.community-send-mark {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  margin: 0;
  translate: 0;
}

.community-submit-label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.community-send-mark svg {
  display: block;
  width: 21px;
  height: 21px;
  overflow: visible;
}

@keyframes community-send-flight {
  0%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
  45% { opacity: .72; transform: translate(2px, -2px) scale(.9); }
}

.community-workspace .community-room-composer button[type="submit"]:active,
.community-workspace .community-thread-composer .community-composer-control > button[type="submit"]:active { scale: .96; }

.community-workspace .community-room-composer button[type="submit"]:hover,
.community-workspace .community-thread-composer .community-composer-control > button[type="submit"]:hover {
  background: #bd3518;
  box-shadow: 0 8px 18px rgba(216, 64, 24, .26), 0 0 0 1px rgba(216, 64, 24, .18);
}

.community-workspace .community-room-composer button[type="submit"][aria-busy="true"] .community-send-mark,
.community-workspace .community-thread-composer .community-composer-control > button[type="submit"][aria-busy="true"] .community-send-mark {
  animation: community-send-flight 700ms cubic-bezier(.2, 0, 0, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .community-workspace .community-room-composer button[type="submit"][aria-busy="true"] .community-send-mark,
  .community-workspace .community-thread-composer .community-composer-control > button[type="submit"][aria-busy="true"] .community-send-mark {
    animation: none;
  }
}

.community-workspace .community-thread-composer .community-composer-control > button[type="submit"] {
  position: relative;
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #d84018;
  color: #fff;
  box-shadow: 0 5px 14px rgba(216, 64, 24, .2), 0 0 0 1px rgba(216, 64, 24, .12);
  transition-property: scale, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.community-workspace .community-room-composer button[type="submit"]::after,
.community-workspace .community-thread-composer .community-composer-control > button[type="submit"]::after {
  position: absolute;
  inset: -2px;
  content: "";
}

.community-workspace .community-room-composer-foot small { color: var(--workspace-muted); }

.community-workspace .community-new-message {
  border-radius: 6px;
  background: var(--workspace-ink);
  box-shadow: none;
}

.community-workspace .community-thread-layout { width: min(100%, 900px); }

.community-workspace .community-thread-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 60px);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.community-workspace .community-thread-replies {
  flex: 1 1 auto;
}

.community-workspace .community-thread-header {
  top: 60px;
  min-height: 60px;
  padding: 8px 16px;
  border-bottom-color: var(--workspace-rule);
}

.community-workspace .community-thread-header button {
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  color: var(--workspace-ink);
}

.community-workspace .community-message-more > div > button,
.community-workspace .community-message-more > div > form > button,
.community-workspace .community-thread-reply footer details button,
.community-workspace .community-thread-header button {
  min-height: 44px;
}

.community-workspace .community-thread-root,
.community-workspace .community-thread-reply {
  padding: 18px 20px;
  border-bottom-color: var(--workspace-rule);
}

.community-workspace .community-summary { background: var(--workspace-soft); }

.community-workspace .community-threads-index .community-selected-conversation {
  background: #fff;
  box-shadow: none;
}

.community-workspace .community-thread-preview { border-bottom-color: var(--workspace-rule); }

@media (hover: hover) and (pointer: fine) {
  .community-workspace .community-room-message:hover,
  .community-workspace .community-thread-preview > a:hover { background: var(--workspace-soft); }

  .community-workspace .community-room-composer button[type="submit"]:hover,
  .community-workspace .community-thread-composer .community-composer-control > button[type="submit"]:hover { background: #bd3518; }

  .community-account-popover a:hover,
  .community-account-popover button:hover,
  .community-workspace .community-message-more > div > button:hover,
  .community-workspace .community-message-more > div > form > button:hover { background: var(--workspace-soft); }

  .community-workspace .community-message-more { opacity: 0; }
  .community-workspace .community-room-message:hover .community-message-more,
  .community-workspace .community-room-message:focus-within .community-message-more,
  .community-workspace .community-thread-reply:hover .community-message-more,
  .community-workspace .community-thread-reply:focus-within .community-message-more,
  .community-workspace .community-message-more[open] { opacity: 1; }
}

@media (max-width: 900px) {
  .community-workspace .site-nav { display: none; }
  .community-workspace .community-main { padding-bottom: var(--member-tab-height); }
  /* The shared tab variable reserves the fixed navigation and its safe-area inset exactly once. */
  .community-workspace-grid,
  .community-selected-conversation,
  .community-workspace-grid .community-room,
  .community-workspace-grid .community-thread-layout {
    min-height: calc(100dvh - var(--community-shell-offset) - var(--member-tab-height));
  }
  .community-workspace .community-room-composer,
  .community-workspace .community-thread-composer { bottom: var(--member-tab-height); }
}

@media (max-width: 560px) {
  body.community-workspace { line-height: 1.6; }
  .community-workspace .site-header { display: none; }
  .community-workspace .community-main {
    min-height: 100dvh;
    border-right: 0;
    border-left: 0;
  }
  .community-workspace .community-room-header { top: 0; min-height: 58px; padding: 8px 14px; }
  .community-workspace .community-room-header h2 { font-size: 1rem; }
  /* 133px = room header (61px) + composer (72px); the bottom tabs come from the shared variable. */
  .community-workspace .community-room-feed { min-height: calc(100dvh - 133px - var(--member-tab-height)); }
  .community-workspace .community-room-message { padding: 10px 12px 6px; }
  .community-workspace .community-room-message-meta { align-items: center; flex-direction: row; gap: 4px 8px; }
  .community-workspace .community-room-message-actions { width: auto; margin-left: auto; overflow-x: auto; }
  .community-workspace .community-message-action,
  .community-workspace .community-message-more > summary { white-space: nowrap; }
  .community-workspace .community-room-composer,
  .community-workspace .community-thread-composer { padding: 8px 12px 7px; }
  .community-workspace .community-thread-panel { min-height: calc(100dvh - var(--member-tab-height)); }
  .community-workspace .community-thread-header { top: 0; }
  .community-workspace .community-thread-root,
  .community-workspace .community-thread-reply { padding: 16px 14px; }
  .community-reports-panel { padding: 22px 14px 36px; }
  .community-report-card { padding: 14px; }
  .community-report-card header time { width: 100%; margin-left: 0; }
  .community-report-actions form,
  .community-report-actions button { width: 100%; margin-left: 0; }
  .community-workspace .community-mobile-nav {
    border-top-color: var(--workspace-rule);
    background: #fff;
    box-shadow: none;
  }
  .community-workspace .community-mobile-nav a {
    border-right-color: var(--workspace-rule);
    color: var(--workspace-muted);
    font-weight: 700;
  }
  .community-workspace .community-mobile-nav a[aria-current="page"] {
    background: var(--workspace-ink);
    color: #fff;
  }
}

/* Branch hierarchy adapted to Circle's existing conversation data and plain HTML navigation.
   Reference: https://reactbits.dev/c/micro/branched-menu (no React runtime required). */
.community-rail-toggle,
.community-rail-close,
.community-rail-backdrop { display: none; }
.community-conversation-rail .community-rail-section h2 { padding: 0 12px; }
.community-rail-section h2 button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--workspace-muted);
  font: inherit;
  font-size: .75rem;
  text-align: left;
  cursor: pointer;
}
.community-branch-chevron { width: 14px; font-size: 18px; transition: transform 180ms ease; }
[data-community-branch][aria-expanded="false"] .community-branch-chevron { transform: rotate(-90deg); }
.community-branch-count { margin-left: auto; color: var(--workspace-blue-pencil); font-variant-numeric: tabular-nums; }
.community-conversation-rail .community-rail-section ol { padding: 0 10px 0 18px; }
.community-conversation-rail .community-rail-section li { position: relative; padding: 2px 0 2px 22px; border: 0; }
.community-rail-section li::before {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-left: 1.5px solid #d6d8de; content: ''; pointer-events: none;
}
.community-rail-section li:last-child::before { bottom: 50%; }
.community-rail-section li::after {
  position: absolute; top: 0; left: 0; width: 18px; height: 50%;
  border-left: 1.5px solid #d6d8de; border-bottom: 1.5px solid #d6d8de;
  border-bottom-left-radius: 12px; content: ''; pointer-events: none;
}
.community-rail-section li:has([aria-current="page"])::after { border-color: var(--workspace-blue-pencil); animation: circle-branch-draw 250ms ease-out; }
.community-conversation-rail .community-rail-thread { padding: 10px; border-radius: 9px; }
.community-conversation-rail .community-rail-thread[aria-current="page"] {
  background: #eef1f8; box-shadow: none; color: var(--workspace-blue-pencil);
}
.community-conversation-rail .community-rail-thread:hover { background: #f5f6f8; }
.community-conversation-rail .community-rail-room { margin: 10px; border-radius: 8px; }
.community-conversation-rail .community-rail-empty { padding-left: 34px; }
[data-community-branch-body][hidden] { display: none; }
[data-community-branch-body]:not([hidden]) { animation: circle-branch-unfold 180ms ease-out; }
.community-conversation-rail :is(a,button):focus-visible { outline: 2px solid var(--workspace-blue-pencil); outline-offset: 2px; }
.community-rail-backdrop[hidden], .community-rail-close[hidden], .community-rail-toggle[hidden] { display: none; }
@keyframes circle-branch-draw { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes circle-branch-unfold { from { opacity: .4; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .community-workspace .community-room-header { top: 0; }
  .community-workspace .community-thread-header { top: 0; }
  .community-workspace .community-rail-toggle:not([hidden]),
  .community-rail-close:not([hidden]) {
    display: inline-grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: var(--workspace-ink); cursor: pointer;
  }
  .community-rail-close { margin-left: auto; font-size: 26px; }
  .community-workspace .community-room-header h2 { flex: 1; }
  .community-thread-header:has(.community-rail-toggle:not([hidden])) .community-thread-back { display: none; }
  .community-workspace-grid > .community-conversation-rail.is-drawer-open {
    display: block; position: fixed; z-index: 101; inset: 0 auto 0 0;
    width: min(340px, calc(100vw - 48px)); height: 100dvh; max-height: 100dvh;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain; box-shadow: 8px 0 32px #0002;
    animation: circle-drawer-in 200ms ease-out;
  }
  .community-rail-backdrop:not([hidden]) { display: block; position: fixed; z-index: 100; inset: 0; width: 100%; height: 100dvh; border: 0; background: #10131a66; }
}
@keyframes circle-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .community-branch-chevron, [data-community-branch-body], .community-rail-section li::after,
  .community-workspace-grid > .community-conversation-rail.is-drawer-open { animation: none !important; transition: none !important; }
}

@media (max-width: 767px) {
  .community-workspace .community-main.community-threads-index {
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: 0;
    overflow: hidden;
  }

  .community-threads-index .community-workspace-grid {
    height: calc(100dvh - var(--member-tab-height));
    min-height: 0;
  }

  .community-threads-index .community-workspace-grid > .community-conversation-rail {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .community-workspace .community-room-header { top: 0; }
  .community-workspace .community-thread-header { top: 0; }
}

.member-main { overflow: clip; }
.member-mast { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-block: 54px 40px; border-bottom: 1px solid var(--rule); }
.member-mast::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -36px;
  width: min(58%, 680px);
  height: 110px;
  background: url("/circle/images/studio/studio-paper-edge.webp") center / 100% 100% no-repeat;
  content: "";
  opacity: .72;
  pointer-events: none;
}
.member-mast h1 {
  max-width: 820px;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.mast-line { display: block; white-space: nowrap; }
.member-id { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--ink); background: rgba(255,255,255,.46); }
.member-id > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--cobalt); color: white; font-weight: 900; }
.member-id p { display: flex; flex-direction: column; margin: 0; }
.member-id small { max-width: 200px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.meeting-board { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,.6fr); gap: 40px; padding-block: 70px; border-bottom: 1px solid var(--rule); }
.meeting-card { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding: 28px; border: 1px solid var(--ink); background: rgba(255,254,249,.92); box-shadow: 12px 16px 0 var(--paper-deep); }
.meeting-card > img:not(.member-blue-mark) { width: 100%; height: 100%; min-height: 260px; object-fit: cover; filter: saturate(.85); }
.meeting-card h2 { margin: 10px 0; font-family: var(--serif); font-size: clamp(2rem,4vw,3.4rem); font-weight: 500; line-height: 1.15; }
.meeting-date { color: var(--coral); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.meeting-date span { color: var(--ink); font-size: .9rem; }
.meeting-memo { align-self: center; padding: 28px; border: 1px solid #aaa085; background: var(--paper-lifted); box-shadow: 7px 9px 0 rgba(24,24,24,.08); transform: rotate(1.5deg); }
.meeting-handwritten { width: min(100%, 270px); margin: 0 0 18px; transform: rotate(-2deg); }
.meeting-memo strong, .meeting-memo span { display: block; margin-top: 12px; }
.meeting-memo span { color: var(--muted); font-size: .86rem; }
.member-blue-mark { position: absolute; z-index: 2; right: 12px; bottom: -30px; width: 86px; height: auto; transform: rotate(8deg); }
.action-board { display: grid; grid-template-columns: repeat(3,1fr); border-inline: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.note-column { min-width: 0; padding: 34px 28px; border-right: 1px solid var(--ink); }
.note-column:last-child { border-right: 0; }
.note-index { color: var(--coral); font-family: var(--serif); font-size: 1.4rem; font-weight: 900; }
.note-column h3 { min-height: 2.8em; margin: 8px 0 18px; font-family: var(--serif); font-size: 1.55rem; }
.note-column ul { min-height: 150px; margin: 0 0 22px; padding: 0; list-style: none; }
.note-column li { display: flex; gap: 10px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .86rem; }
.note-column li button { width: 34px; height: 34px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.note-column li.is-done span { color: var(--muted); text-decoration: line-through; }
.note-column li.empty { color: var(--muted); }
.note-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.note-actions form { margin: 0; }
.note-actions .note-remove { border-color: transparent; color: var(--muted); }
.note-privacy { margin: 10px 0 0; color: var(--muted); font-size: .68rem; }
.note-form > div { display: grid; grid-template-columns: 1fr 48px; }
.note-form button { border: 1px solid var(--ink); border-left: 0; background: var(--ink); color: white; font-size: 1.4rem; }
.next-seminar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: 72px;
  border-bottom: 1px solid var(--rule);
}
.next-seminar h2 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.16;
}
.next-seminar > div > p:last-child { max-width: 780px; color: var(--muted); }
.seminar-date { margin: 18px 0 0; color: var(--coral); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 900; line-height: 1.25; }
.seminar-date span { display: block; margin-top: 5px; color: var(--ink); font-size: .86rem; }
.next-seminar aside { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--ink); background: var(--paper-lifted); box-shadow: 8px 10px 0 var(--paper-deep); }
.next-seminar aside strong { color: var(--coral); font-family: var(--serif); font-size: 1.35rem; }
.community-board {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  padding-block: 90px;
  border-bottom: 1px solid var(--rule);
}
.community-copy h2 {
  margin: 10px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.22;
}
.community-copy > p:not(.eyebrow) { color: var(--muted); }
.gathering-handwritten { width: min(100%, 310px); margin-top: 28px; transform: rotate(-2deg); }
.community-photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 30px;
  background: var(--paper-lifted);
  box-shadow: 12px 16px 28px rgba(24,24,24,.15);
  transform: rotate(1.2deg);
}
.community-photo > img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.community-photo figcaption { margin-top: 10px; font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.member-section { padding-block: 90px; border-bottom: 1px solid var(--rule); }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--ink); }
.news-grid article { display: flex; min-height: 220px; flex-direction: column; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.news-grid article:nth-child(even) { border-right: 0; }
.news-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.news-grid time, .news-grid span { font-size: .68rem; font-weight: 900; }
.news-grid span { margin-left: 8px; color: var(--coral); }
.news-grid h3 { margin: 22px 0 10px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.news-grid p { margin: 0 0 20px; color: var(--muted); font-size: .8rem; }
.news-grid small { margin-top: auto; color: var(--cobalt); font-weight: 900; }
.member-notices .news-grid { grid-template-columns: 1fr; }
.member-notices .news-grid article { min-height: 0; border-right: 0; border-bottom: 0; }
.member-services { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); }
.member-service { display: flex; min-width: 0; flex-direction: column; padding: 14px; border-right: 1px solid var(--ink); }
.member-service:last-child { border-right: 0; }
.member-service img { width: 100%; aspect-ratio: 4/3; border: 1px solid var(--rule); object-fit: cover; }
.member-service .service-platform { width: fit-content; margin: 10px 0 0; padding: 2px 5px; border: 1px solid currentColor; color: var(--cobalt); font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.member-service .service-name { display: flex; flex-direction: column; margin: 12px 0 8px; }
.member-service .service-name span { color: var(--muted); font-size: .65rem; }
.member-service .service-name strong { font-size: 1.05rem; }
.service-description { margin: 0 0 16px; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.member-service a { margin-top: auto; min-height: 44px; padding-top: 8px; color: var(--cobalt); font-size: .78rem; font-weight: 900; }
.member-service.is-unavailable { background: rgba(238,233,221,.35); }
.member-service.is-unavailable img { filter: grayscale(.35); opacity: .82; }
.service-state { margin-top: auto; min-height: 44px; padding-top: 8px; color: var(--muted); font-size: .72rem; font-weight: 900; }
.preparation-list { margin-top: 28px; border: 1px dashed #8d8a82; }
.preparation-list summary { min-height: 52px; padding: 13px 18px; font-weight: 900; cursor: pointer; }
.preparation-list ul { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; border-top: 1px dashed #8d8a82; list-style: none; }
.preparation-list li { display: grid; gap: 5px; padding: 18px; border-right: 1px dashed #8d8a82; color: var(--muted); }
.preparation-list li:last-child { border-right: 0; }
.preparation-list em { width: fit-content; padding: 2px 5px; border: 1px solid currentColor; font-size: .64rem; font-style: normal; }
.archive-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.archive-toolbar { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; padding: 16px; border: 1px solid var(--ink); background: var(--paper-lifted); }
.archive-toolbar label { font-size: .75rem; font-weight: 900; }
.archive-toolbar input { min-height: 46px; padding: 9px 12px; border: 1px solid var(--ink); background: white; font-size: 16px; }
.archive-toolbar p { margin: 0; color: var(--muted); font-size: .72rem; }
.archive-list li { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center; min-height: 106px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.archive-list li[hidden] { display: none; }
.archive-list li > div { display: grid; gap: 3px; }
.archive-list li > div > span { color: var(--cobalt); font-size: .68rem; font-weight: 900; }
.archive-list li p { margin: 2px 0 0; color: var(--muted); font-size: .76rem; }
.archive-list a { min-height: 44px; padding-top: 8px; font-weight: 900; }
.archive-state { color: var(--muted); font-size: .7rem; font-weight: 900; }
.preview-locked-tail {
  position: relative;
  max-width: 760px;
  margin: -10px auto 0;
  padding: 100px 34px 46px;
  text-align: center;
}
.preview-locked-tail::before {
  position: absolute;
  inset: 0 -22vw auto;
  height: 120px;
  background: linear-gradient(to bottom, rgba(250,249,242,0), var(--paper) 72%);
  content: "";
  pointer-events: none;
}
.preview-lock-mark {
  position: relative;
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(-3deg);
}
.preview-locked-tail h3 { position: relative; margin: 22px 0 10px; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.3rem); font-weight: 500; }
.preview-locked-tail p { position: relative; color: var(--muted); }
.preview-locked-tail > div { position: relative; display: flex; justify-content: center; gap: 24px; align-items: center; margin-top: 24px; }
.logout-row { padding-block: 34px; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 50px max(16px, calc((100vw - 1200px) / 2)); background: var(--ink); color: white; }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer span { color: #b9b8b4; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { min-height: 44px; font-size: .75rem; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 76px; right: 16px; display: none; width: min(330px,calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 10px 0 rgba(22,24,25,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .site-nav a.is-current:not(.nav-login) { background: rgba(85,114,173,.1); }
  .site-nav a:not(.nav-login)::after { top: 10px; right: auto; bottom: 10px; left: 0; width: 4px; height: auto; transform: scaleY(.25); }
  .site-nav a.is-current:not(.nav-login)::after { transform: scaleY(1); }
  .login-main, .meeting-board, .next-seminar, .community-board { grid-template-columns: 1fr; }
  .login-main { gap: 36px; }
  .member-mast { align-items: flex-start; flex-direction: column; }
  .meeting-card { grid-template-columns: 190px 1fr; }
  .action-board { grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
  .note-column { border-right: 0; border-bottom: 1px solid var(--ink); }
  .note-column:last-child { border-bottom: 0; }
  .note-column h3, .note-column ul { min-height: 0; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .member-services { grid-template-columns: repeat(2,1fr); }
  .member-service:nth-child(even) { border-right: 0; }
  .member-service { border-bottom: 1px solid var(--ink); }
  .member-service:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .site-logo strong { font-size: .72rem; }
  .frame { width: calc(100% - 32px); }
  .preview-ribbon { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 10px; }
  .preview-ribbon div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .preview-ribbon a { padding-top: 4px; }
  .login-main { padding-block: 28px 52px; gap: 24px; }
  .login-copy h1 { font-size: clamp(1.8rem, 9vw, 2.1rem); margin: 10px 0 12px; }
  .login-person { margin-top: 18px; }
  .login-person img { width: 64px; height: 64px; }
  .login-card { order: -1; padding: 24px 22px; }
  .login-card h2 { font-size: 1.6rem; }
  .login-session-note { margin-top: 12px; line-height: 1.65; }
  .login-card form { margin-top: 18px; }
  .member-mast { padding-block: 54px 36px; }
  .member-mast h1 { font-size: clamp(1.95rem, 8.8vw, 2.25rem); letter-spacing: -.07em; }
  .member-id { width: 100%; }
  .meeting-board { padding-block: 48px; }
  .meeting-card { grid-template-columns: 1fr; padding: 18px; }
  .meeting-card > img:not(.member-blue-mark) { min-height: 220px; aspect-ratio: 4/3; }
  .meeting-card .button { width: 100%; }
  .action-board { width: 100%; }
  .note-column { padding: 30px 22px; }
  .next-seminar { padding-block: 58px; }
  .next-seminar h2 { font-size: 1.85rem; line-height: 1.22; }
  .next-seminar aside { padding: 20px; }
  .community-board { padding-block: 64px; }
  .community-photo { padding: 8px 8px 26px; }
  .member-section { padding-block: 64px; }
  .news-grid, .member-services { grid-template-columns: 1fr; }
  .news-grid article, .member-service { border-right: 0; border-bottom: 1px solid var(--ink); }
  .news-grid article:last-child, .member-service:last-child { border-bottom: 0; }
  .news-grid article:nth-last-child(2) { border-bottom: 1px solid var(--ink); }
  .preparation-list ul { grid-template-columns: 1fr 1fr; }
  .preparation-list li:nth-child(even) { border-right: 0; }
  .preparation-list li:nth-child(-n+2) { border-bottom: 1px dashed #8d8a82; }
  .archive-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .archive-toolbar p { margin-top: 2px; }
  .archive-list li { grid-template-columns: 1fr; gap: 8px; padding-block: 18px; }
  .archive-list time { grid-column: 1/-1; }
  .archive-list a { width: fit-content; }
  .preview-locked-tail { padding: 86px 0 32px; }
  .preview-locked-tail > div { align-items: stretch; flex-direction: column; gap: 8px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav a, .site-nav a::after { transition-duration: 0s; }
}

.member-event-form .member-event-fieldset { align-items: start; }
.member-event-form .member-event-choice-group { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; padding: 0; border: 0; }
.member-event-form .member-event-choice-group legend { padding: 0; }
.member-event-form .member-event-choice-grid { display: grid; grid-template-columns: repeat(var(--choice-columns, 2), minmax(0, 1fr)); gap: 8px; }
.member-event-form .member-event-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.member-event-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.member-event-choice span { display: flex; min-height: 48px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper-lifted); line-height: 1.4; }
.member-event-choice input:checked + span { border-color: var(--vermilion); background: color-mix(in srgb, var(--vermilion) 10%, var(--paper-lifted)); box-shadow: inset 0 0 0 1px var(--vermilion); }
.member-event-choice input:focus-visible + span { outline: 3px solid var(--blue-pencil); outline-offset: 2px; }
.member-event-fee-note, .member-event-form > button { grid-column: 1 / -1; }
.member-event-cancellation, .member-event-payment > p { padding: 12px; border-left: 3px solid var(--vermilion); background: var(--paper-lifted); }
.member-event-payment { display: grid; justify-items: start; gap: 6px; margin: 18px 0; }
.member-event-payment form { margin: 0; }
.member-next-action-event form { margin: 10px 0; }
.member-next-action-event > p:last-child { max-width: 52ch; }
.member-new-content-text-card { align-content: start; min-height: 150px; }
.member-new-content-text-card strong { font-size: 1.18rem; }
.member-new-content-text-card > span { color: var(--ink); line-height: 1.55; }
.member-new-content-text-card > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-reply-row a, .member-dashboard-secondary .member-reply-row a { display: grid !important; grid-template-columns: minmax(0, 1fr) max-content; justify-items: start; gap: 5px 12px; padding: 12px 0; text-align: left; }
.member-reply-excerpt { grid-column: 1 / -1; text-align: left; }
.member-reply-by { color: var(--muted); font-size: .82rem; }
.member-reply-row time { justify-self: end; text-align: right; }
@media (max-width: 900px) {
  .member-event-form > fieldset { grid-template-columns: 1fr; padding: 14px; }
  .member-event-form .member-event-choice-grid { grid-template-columns: repeat(var(--choice-columns, 2), minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .member-event-page .member-event-details p { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 12px; }
}
.member-event-admin .member-event-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.member-event-admin .member-event-table-wrap table { width: 1200px; min-width: 1200px; table-layout: fixed; }
.member-event-admin .member-event-table-wrap th:nth-child(1), .member-event-admin .member-event-table-wrap td:nth-child(1) { width: 135px; }
.member-event-admin .member-event-table-wrap th:nth-child(2), .member-event-admin .member-event-table-wrap td:nth-child(2),
.member-event-admin .member-event-table-wrap th:nth-child(3), .member-event-admin .member-event-table-wrap td:nth-child(3),
.member-event-admin .member-event-table-wrap th:nth-child(4), .member-event-admin .member-event-table-wrap td:nth-child(4),
.member-event-admin .member-event-table-wrap th:nth-child(5), .member-event-admin .member-event-table-wrap td:nth-child(5) { width: 88px; }
.member-event-admin .member-event-table-wrap th:nth-child(6), .member-event-admin .member-event-table-wrap td:nth-child(6) { width: 112px; }
.member-event-admin .member-event-table-wrap th, .member-event-admin .member-event-table-wrap td { overflow-wrap: anywhere; }
.member-event-admin .member-event-table-wrap th:nth-child(-n+7), .member-event-admin .member-event-table-wrap td:nth-child(-n+7) { white-space: nowrap; }
.member-event-admin .member-admin-secondary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper-lifted); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }

/* Archive Log */
.archive-log,
.circle-archive-admin {
  --archive-paper: #fbfaf4;
  --archive-paper-raised: #fffefa;
  --archive-ink: #171918;
  --archive-muted: #666964;
  --archive-blue: #135ee8;
  --archive-blue-soft: #eaf1ff;
  --archive-vermilion: #c43a1e;
  --archive-rule: rgba(23, 25, 24, .2);
  --archive-grid: rgba(19, 94, 232, .11);
  min-width: 320px;
  background: var(--archive-paper);
  color: var(--archive-ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.archive-log:not(.circle-progress-admin) {
  /* Member archive pages share the pencil blue so each screen shows one accent; staff screens keep the brighter blue. */
  --archive-blue: var(--blue-pencil);
  --archive-blue-soft: #eef1f8;
}

.archive-log *,
.circle-archive-admin * { box-sizing: border-box; }
.archive-log a,
.circle-archive-admin a { color: inherit; }
.archive-log button,
.archive-log input,
.circle-archive-admin button,
.circle-archive-admin input,
.circle-archive-admin textarea { font: inherit; }
.archive-log h1,
.archive-log h2,
.archive-log h3,
.circle-archive-admin h1,
.circle-archive-admin h2,
.circle-archive-admin h3 { text-wrap: balance; }
.archive-log p,
.archive-log li,
.circle-archive-admin p,
.circle-archive-admin li { text-wrap: pretty; }
.archive-log time,
.archive-log [data-archive-count],
.circle-archive-admin progress,
.circle-archive-admin .archive-admin-status strong { font-variant-numeric: tabular-nums; }

.archive-log :focus-visible,
.circle-archive-admin :focus-visible {
  outline: 3px solid var(--archive-blue);
  outline-offset: 3px;
}
.archive-log button,
.archive-log a,
.circle-archive-admin button,
.circle-archive-admin a {
  transition-property: transform, box-shadow, background-color, color, border-color;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.archive-log button:active,
.archive-log a:active,
.circle-archive-admin button:active,
.circle-archive-admin a:active { scale: .96; }

.archive-log .archive-log-header,
.circle-archive-admin .archive-log-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 8px max(16px, calc((100vw - 1088px) / 2));
  border-bottom: 1px solid var(--archive-ink);
  background-color: rgba(251, 250, 244, .96);
  background-image:
    linear-gradient(var(--archive-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--archive-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  backdrop-filter: blur(10px);
}
.archive-log .archive-log-brand,
.circle-archive-admin .archive-log-brand {
  display: flex;
  min-height: 44px;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.archive-log .archive-log-brand strong,
.circle-archive-admin .archive-log-brand strong { font-size: 1.2rem; letter-spacing: .12em; }
.archive-log .archive-log-brand span,
.circle-archive-admin .archive-log-brand span { color: var(--archive-blue); font-size: .72rem; font-weight: 800; }
.archive-log .archive-log-member,
.circle-archive-admin .archive-log-member {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--archive-ink);
  border-radius: 50%;
  background: var(--archive-paper-raised);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.archive-log .archive-log-main { width: min(100%, 1088px); margin-inline: auto; }
.archive-log .archive-log-search-hero { padding: 56px 32px 48px; }
.archive-log .archive-log-kicker,
.archive-log .archive-log-section-title > p,
.archive-log .archive-article-meta,
.archive-log .archive-source-header > p:first-child {
  margin: 0;
  color: var(--archive-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.archive-log .archive-log-search-hero > h1 { margin: 8px 0 24px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; }
.archive-log .archive-log-search { display: grid; gap: 8px; }
.archive-log .archive-log-search label { font-size: .78rem; font-weight: 800; }
.archive-log .archive-log-search > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  background: var(--archive-paper-raised);
  box-shadow:
    0 0 0 1px var(--archive-blue),
    0 4px 12px rgba(19, 94, 232, .08);
}
.archive-log .archive-log-search > div > span { color: var(--archive-blue); font-size: 1.6rem; text-align: center; }
.archive-log .archive-log-search input { width: 100%; min-height: 56px; border: 0; outline: 0; background: transparent; color: var(--archive-ink); font-size: 1rem; }
.archive-log .archive-log-search input:focus-visible { outline: 3px solid var(--archive-blue); outline-offset: -3px; }
.archive-log .archive-log-search button {
  min-width: 96px;
  min-height: 64px;
  padding: 0 22px 0 24px;
  border: 0;
  background: var(--archive-blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.archive-log .archive-log-upcoming,
.archive-log .archive-log-updates,
.archive-log .archive-search-results,
.archive-log .archive-event-strip,
.archive-log .archive-seminar-library,
.archive-log .archive-tips-library { padding: 0 32px 64px; }
.archive-log .archive-log-section-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.archive-log .archive-log-section-title::after { display: none; }
.archive-log .archive-log-section-title h1,
.archive-log .archive-log-section-title h2 { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.archive-log .archive-log-section-title > a {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--archive-blue);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.archive-log .archive-event-records,
.archive-log .archive-video-records,
.archive-log .archive-tip-records { margin: 0; padding: 0; list-style: none; }
.archive-log .archive-event-records { border-top: 1px solid var(--archive-vermilion); }
.archive-log .archive-event-strip { padding-bottom: 40px; }
.archive-log .archive-event-line {
  display: grid;
  min-height: 72px;
  grid-template-columns: max-content max-content minmax(0, 1fr) minmax(0, auto) 44px;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 0;
  border-block: 1px solid var(--archive-vermilion);
  color: var(--archive-ink);
  text-decoration: none;
  transition-property: color, background-color;
}
.archive-log .archive-event-line small,
.archive-log .archive-event-line time { color: var(--archive-vermilion); font-size: .75rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.archive-log .archive-event-line strong { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.archive-log .archive-event-line > span { color: var(--archive-muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.archive-log .archive-event-line i { display: grid; width: 44px; height: 44px; place-items: center; color: var(--archive-vermilion); font-size: 1.35rem; font-style: normal; }
.archive-log .archive-featured {
  display: grid;
  min-width: 0;
  grid-template-columns: 96px minmax(0, 3fr) minmax(248px, 2fr);
  overflow: hidden;
  background: var(--archive-paper-raised);
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .08),
    0 16px 40px rgba(0, 0, 0, .08);
  transition-property: scale, transform, box-shadow, background-color;
}
.archive-log .archive-featured:active { scale: .96; }
.archive-log .archive-featured-date-gutter,
.archive-log .archive-video-date-gutter {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--archive-blue);
  background-image:
    linear-gradient(var(--archive-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--archive-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--archive-blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.archive-log .archive-featured-date-gutter::after,
.archive-log .archive-video-date-gutter::after { position: absolute; top: calc(50% - 5px); right: -6px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--archive-blue); content: ""; }
.archive-log .archive-featured-date-gutter small,
.archive-log .archive-featured-date-gutter span,
.archive-log .archive-video-date-gutter small,
.archive-log .archive-video-date-gutter span { font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.archive-log .archive-featured-date-gutter strong,
.archive-log .archive-video-date-gutter strong { font-size: 1.15rem; letter-spacing: .02em; }
.archive-log .archive-featured-media { position: relative; display: block; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--archive-ink); color: var(--archive-paper-raised); }
.archive-log .archive-featured-media > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}
.archive-log .archive-thumbnail-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--archive-ink);
  color: var(--archive-paper-raised);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}
.archive-log .archive-thumbnail-fallback[hidden] { display: none; }
.archive-log .archive-featured-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .16),
    0 8px 24px rgba(0, 0, 0, .18);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.archive-log .archive-featured-play::after { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--archive-blue); content: ""; }
.archive-log .archive-featured-copy { display: grid; min-width: 0; align-content: center; gap: 10px; padding: clamp(24px, 4vw, 40px); }
.archive-log .archive-featured-copy > small { color: var(--archive-blue); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.archive-log .archive-featured-copy > strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.45; overflow-wrap: anywhere; text-wrap: balance; }
.archive-log .archive-featured-copy > p { margin: 0; color: var(--archive-muted); font-size: 1rem; line-height: 1.8; text-wrap: pretty; }
.archive-log .archive-featured-meta,
.archive-log .archive-home-video-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--archive-blue); font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-log .archive-featured-copy > b { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: 8px; color: var(--archive-blue); font-size: .82rem; }
.archive-log .archive-video-records { margin-top: 24px; border-top: 1px solid var(--archive-rule); }
.archive-log .archive-tip-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--archive-rule);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .06),
    0 8px 24px rgba(0, 0, 0, .05);
}
.archive-log .archive-home-record { min-width: 0; background: var(--archive-paper-raised); }
.archive-log .archive-home-record > a { position: relative; display: grid; min-width: 0; min-height: 44px; color: var(--archive-ink); text-decoration: none; transition-property: scale, transform, box-shadow, background-color, color; }
.archive-log .archive-home-record time { color: var(--archive-blue); font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-log .archive-home-record strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; text-wrap: balance; }
.archive-log .archive-home-record p { min-width: 0; margin: 0; color: var(--archive-muted); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.archive-log .archive-home-video { border-bottom: 1px solid var(--archive-rule); }
.archive-log .archive-home-video > a { grid-template-columns: 96px minmax(176px, 240px) minmax(0, 1fr) 44px; gap: 0 24px; align-items: stretch; min-height: 168px; padding-right: 12px; }
.archive-log .archive-home-video-media { position: relative; align-self: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--archive-ink); }
.archive-log .archive-home-video-media > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.archive-log .archive-home-video-copy { display: grid; min-width: 0; align-content: center; gap: 8px; padding-block: 20px; }
.archive-log .archive-home-video-copy > strong { font-size: 1.2rem; }
.archive-log .archive-home-video > a > span:last-child { display: grid; min-width: 44px; min-height: 44px; place-items: center; align-self: center; color: var(--archive-blue); font-size: 1.5rem; }
.archive-log .archive-home-tip > a { height: 100%; min-height: 208px; grid-template-columns: max-content minmax(0, 1fr) max-content; grid-template-rows: auto auto 1fr; gap: 8px 12px; align-content: start; padding: 24px 16px 24px 24px; }
.archive-log .archive-home-tip > a > span:not(:last-child) { color: var(--archive-blue); font-size: .72rem; font-weight: 800; text-align: right; }
.archive-log .archive-home-tip strong,
.archive-log .archive-home-tip p { grid-column: 1 / -1; padding-right: 36px; }
.archive-log .archive-home-tip > a > span:last-child { position: absolute; right: 16px; bottom: 16px; display: grid; width: 44px; height: 44px; place-items: center; color: var(--archive-blue); font-size: 1.5rem; }
.archive-log .archive-log-list,
.archive-log .archive-search-list { margin: 0; padding: 0; border-top: 1px solid var(--archive-rule); list-style: none; }
.archive-log .archive-log-row,
.archive-log .archive-search-result {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 144px;
  border-bottom: 1px solid var(--archive-rule);
}
.archive-log .archive-search-result[hidden] { display: none; }
.archive-log .archive-date-gutter {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--archive-blue);
  background-image:
    linear-gradient(var(--archive-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--archive-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.25;
}
.archive-log .archive-date-gutter::after {
  position: absolute;
  top: calc(50% - 5px);
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--archive-blue);
  content: "";
}
.archive-log .archive-date-gutter small,
.archive-log .archive-date-gutter span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.archive-log .archive-date-gutter strong { font-size: 1.4rem; letter-spacing: .04em; }
.archive-log .archive-date-gutter.is-event { color: var(--archive-vermilion); }
.archive-log .archive-date-gutter.is-event::after { background: var(--archive-vermilion); }
.archive-log .archive-log-row-link,
.archive-log .archive-search-result > a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 144px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 64px 24px 40px;
  text-decoration: none;
}
.archive-log .archive-log-row-link > strong,
.archive-log .archive-search-result > a > strong { font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.5; }
.archive-log .archive-log-category,
.archive-log .archive-search-result > a > span { color: var(--archive-blue); font-size: .75rem; font-weight: 800; }
.archive-log .archive-log-row-link p,
.archive-log .archive-search-result > a p { margin: 4px 0 0; color: var(--archive-muted); font-size: .86rem; }
.archive-log .archive-log-arrow,
.archive-log .archive-search-result > a > i { position: absolute; top: calc(50% - 22px); right: 8px; color: var(--archive-blue); font-size: 1.8rem; font-style: normal; }
.archive-log .archive-search-result > a > small { margin-top: 6px; color: var(--archive-blue); font-size: .72rem; font-weight: 800; }
.archive-log .archive-log-row.is-event .archive-log-row-link > strong,
.archive-log .archive-log-row.is-event .archive-log-arrow,
.archive-log .archive-search-result.is-event > a > strong,
.archive-log .archive-search-result.is-event > a > i { color: var(--archive-vermilion); }

.archive-log .archive-back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--archive-blue); font-size: .84rem; font-weight: 800; text-decoration: none; }
.archive-log .archive-search-page .archive-log-search-hero { padding-bottom: 32px; }
.archive-log .archive-result-count { margin: 16px 0 8px; color: var(--archive-muted); }
.archive-log .archive-result-count strong { color: var(--archive-ink); font-size: 1.2rem; }
.archive-log .archive-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
.archive-log .archive-filter-bar button,
.archive-log .archive-empty button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--archive-rule);
  background: transparent;
  color: var(--archive-ink);
  cursor: pointer;
}
.archive-log .archive-filter-bar button[aria-pressed="true"] { border-color: var(--archive-blue); background: var(--archive-blue-soft); color: var(--archive-blue); }
.archive-log .archive-search-results.is-recommended { padding-top: 16px; }
.archive-log .archive-empty { padding: 48px 24px; background: var(--archive-paper-raised); text-align: center; box-shadow: 0 0 0 1px var(--archive-rule); }
.archive-log .archive-empty button { color: var(--archive-blue); font-weight: 800; }

.archive-log .archive-transition-notice {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--archive-vermilion);
  background: #fff0ec;
  color: #7d2a1c;
  font-size: .82rem;
}
.archive-log .archive-member-records { margin: 0; padding: 0; border-top: 1px solid var(--archive-rule); list-style: none; }
.archive-log .archive-member-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--archive-rule); }
.archive-log .archive-member-row[hidden] { display: none; }
.archive-log .archive-member-row-link {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 56px 24px 32px;
  background: var(--archive-paper);
  text-decoration: none;
}
.archive-log .archive-member-row-link > img { width: 224px; height: 126px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.archive-log .archive-member-copy { display: grid; min-width: 0; gap: 6px; }
.archive-log .archive-member-copy > small { color: var(--archive-blue); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.archive-log .archive-member-copy > small.archive-transition-label { color: var(--archive-vermilion); }
.archive-log .archive-member-copy > strong { font-size: clamp(1.15rem, 3vw, 1.55rem); line-height: 1.5; }
.archive-log .archive-member-copy > p { margin: 0; color: var(--archive-muted); font-size: .84rem; line-height: 1.7; }
.archive-log .archive-member-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--archive-blue); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-log .archive-member-row-link > i { position: absolute; right: 16px; color: var(--archive-blue); font-size: 1.7rem; font-style: normal; }
.archive-log .archive-member-empty { padding: 40px 16px; color: var(--archive-muted); }

.archive-log .archive-watch-page { width: min(calc(100% - 32px), 880px); padding: 48px 0 80px; }
.archive-log .archive-watch-header { padding-bottom: 32px; }
.archive-log .archive-watch-header h1 { margin: 16px 0 20px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.35; }
.archive-log .archive-watch-header h1,
.archive-log .archive-article-lead,
.archive-log .archive-next > a strong { overflow-wrap: anywhere; text-wrap: pretty; }
@supports (word-break: auto-phrase) {
  .archive-log .archive-watch-header h1,
  .archive-log .archive-article-lead,
  .archive-log .archive-next > a strong { overflow-wrap: normal; word-break: auto-phrase; }
}
.archive-log .archive-player { margin: 8px 0 32px; }
.archive-log .archive-player-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: var(--archive-ink);
  color: white;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}
.archive-log .archive-player-frame iframe { width: 100%; height: 100%; border: 0; }
.archive-log .archive-player-consent {
  display: grid;
  max-width: 360px;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.archive-log .archive-player-kicker { margin: 0; color: rgba(255, 255, 255, .64); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.archive-log .archive-player-consent > [data-player-status] { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.7; text-wrap: pretty; }
.archive-log .archive-player-load,
.archive-log .archive-player-retry {
  min-height: 48px;
  border: 0;
  background: white;
  color: var(--archive-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition-property: transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.archive-log .archive-player-load { display: inline-flex; min-width: 224px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px 0 18px; }
.archive-log .archive-player-retry { min-width: 148px; padding: 0 18px; }
.archive-log .archive-player-load[hidden],
.archive-log .archive-player-retry[hidden] { display: none; }
.archive-log .archive-player-load:hover,
.archive-log .archive-player-retry:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .3); }
.archive-log .archive-player-load:active,
.archive-log .archive-player-retry:active { transform: scale(.96); }
.archive-log .archive-player-load:focus-visible,
.archive-log .archive-player-retry:focus-visible { outline: 3px solid var(--archive-blue); outline-offset: 3px; }
.archive-log .archive-player-load:disabled,
.archive-log .archive-player-retry:disabled { cursor: wait; opacity: .72; }
.archive-log .archive-player-play-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}
.archive-log .archive-noscript { padding: 12px 16px; border-left: 3px solid var(--archive-blue); background: var(--archive-blue-soft); }
.archive-log .archive-watch-actions { display: flex; min-height: 56px; justify-content: flex-end; }
.archive-log .archive-watch-actions:empty { display: none; }
.archive-log .archive-watch-actions a { display: inline-flex; min-width: 180px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--archive-blue); background: var(--archive-blue); color: white; font-weight: 800; text-decoration: none; }
.archive-log .archive-chapters { margin-top: 48px; }
.archive-log .archive-chapters ol { margin: 0; padding: 0; border-top: 1px solid var(--archive-rule); list-style: none; }
.archive-log .archive-chapters li { border-bottom: 1px solid var(--archive-rule); }
.archive-log .archive-chapters button { display: grid; width: 100%; min-height: 44px; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 8px; border: 0; background: transparent; color: var(--archive-ink); text-align: left; cursor: pointer; }
.archive-log .archive-chapters button time { color: var(--archive-blue); font-weight: 900; font-variant-numeric: tabular-nums; }
.archive-log .archive-next { margin-top: 64px; border-top: 1px solid var(--archive-blue); }
.archive-log .archive-next > p { margin: 16px 0 8px; color: var(--archive-blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.archive-log .archive-next > a { position: relative; display: grid; min-height: 88px; align-content: center; padding: 12px 56px 12px 0; color: var(--archive-blue); text-decoration: none; }
.archive-log .archive-next > a span { font-size: .72rem; }
.archive-log .archive-next > a strong { font-size: 1.2rem; }
.archive-log .archive-next > a i { position: absolute; right: 8px; align-self: center; font-size: 1.8rem; font-style: normal; }

.archive-log .archive-article { width: min(calc(100% - 32px), 800px); padding: 48px 0 80px; }
.archive-log .archive-article-header { padding-bottom: 40px; }
.archive-log .archive-article-meta { margin-top: 32px; }
.archive-log .archive-article-header h1 { margin: 16px 0 24px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.35; }
.archive-log .archive-title-line { display: block; }
.archive-log .archive-article-lead { margin: 0; font-size: 1.06rem; line-height: 2; }
.archive-log .archive-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.archive-log .archive-tag-list li { padding: 4px 10px; background: var(--archive-blue-soft); color: var(--archive-blue); font-size: .72rem; font-weight: 800; }
.archive-log .archive-key-points { display: grid; grid-template-columns: 96px 1fr; gap: 24px; margin: 16px 0 48px; padding: 24px; border-left: 2px solid var(--archive-blue); }
.archive-log .archive-key-points > p { margin: 0; color: var(--archive-blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.archive-log .archive-key-points ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.archive-log .archive-key-points li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.archive-log .archive-key-points li span { color: var(--archive-blue); font-weight: 800; }
.archive-log .archive-article-body { display: grid; gap: 56px; }
.archive-log .archive-article-section { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; }
.archive-log .archive-section-number { color: var(--archive-blue); font-size: 1.8rem; font-weight: 900; line-height: 1.4; }
.archive-log .archive-article-section h2 { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2rem); line-height: 1.5; }
.archive-log .archive-article-section p { margin: 0 0 16px; line-height: 2; }
.archive-log .archive-diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px 0 0; padding: 24px; background-color: var(--archive-blue); background-image: linear-gradient(var(--archive-grid) 1px, transparent 1px), linear-gradient(90deg, var(--archive-grid) 1px, transparent 1px); background-size: 16px 16px; list-style-position: inside; }
.archive-log .archive-diagram li { min-height: 88px; padding: 16px; background: var(--archive-paper-raised); color: var(--archive-blue); font-weight: 800; }
.archive-log .archive-source-citation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 24px; border-block: 1px solid var(--archive-blue); }
.archive-log .archive-source-citation > div { display: flex; align-items: center; gap: 16px; }
.archive-log .archive-source-citation > div > span { color: var(--archive-blue); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.archive-log .archive-source-citation p { display: grid; margin: 0; }
.archive-log .archive-source-citation strong { color: var(--archive-blue); }
.archive-log .archive-source-citation small { color: var(--archive-muted); }
.archive-log .archive-source-citation a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--archive-blue); font-weight: 800; text-decoration: none; }

.archive-log .archive-source-log { width: min(calc(100% - 32px), 880px); padding: 48px 0 80px; }
.archive-log .archive-source-header { padding: 24px 0 40px; }
.archive-log .archive-source-header h1 { margin: 8px 0 16px; font-size: clamp(2rem, 5vw, 3rem); }
.archive-log .archive-source-header dl { display: grid; grid-template-columns: 2fr 1fr 1fr; margin: 32px 0 0; border: 1px solid var(--archive-rule); }
.archive-log .archive-source-header dl > div { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 16px; border-right: 1px solid var(--archive-rule); }
.archive-log .archive-source-header dl > div:last-child { border-right: 0; }
.archive-log .archive-source-header dt { color: var(--archive-muted); font-size: .72rem; }
.archive-log .archive-source-header dd { margin: 0; overflow-wrap: anywhere; }
.archive-log .archive-citation-log { position: relative; margin: 0; padding: 0 0 0 8px; list-style: none; }
.archive-log .archive-citation-log::before { position: absolute; top: 32px; bottom: 32px; left: 31px; border-left: 1px dashed var(--archive-blue); content: ""; }
.archive-log .archive-citation-log > li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--archive-rule); }
.archive-log .archive-source-avatar { z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--archive-ink); border-radius: 50%; background: var(--archive-paper); color: var(--archive-blue); font-size: .8rem; font-weight: 900; }
.archive-log .archive-citation-log article header { display: flex; align-items: baseline; gap: 16px; }
.archive-log .archive-citation-log time { color: var(--archive-blue); font-size: .78rem; font-weight: 800; }
.archive-log .archive-citation-log article p { margin: 8px 0 0; line-height: 2; }
.archive-log .archive-source-return { margin-top: 48px; text-align: right; }
.archive-log .archive-source-return p { margin: 0 24px -2px 0; color: var(--archive-blue); font-size: .72rem; }
.archive-log .archive-source-return a { display: flex; min-height: 56px; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--archive-blue); color: var(--archive-blue); font-weight: 800; text-decoration: none; }

.circle-archive-admin .circle-archive-admin-main { width: min(calc(100% - 32px), 1088px); margin-inline: auto; padding-bottom: 96px; }
.circle-archive-admin .circle-archive-admin-title { padding: 56px 0 40px; }
.circle-archive-admin .circle-archive-admin-title > p { margin: 0; color: var(--archive-blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.circle-archive-admin .circle-archive-admin-title h1 { margin: 8px 0 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.35; }
.circle-archive-admin .circle-archive-admin-title h1 span { display: block; }
.circle-archive-admin .archive-admin-step { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--archive-rule); }
.circle-archive-admin .archive-admin-step-heading > span { color: var(--archive-blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.circle-archive-admin .archive-admin-step-heading h2 { margin: 8px 0; font-size: 1.5rem; line-height: 1.5; }
.circle-archive-admin .archive-admin-nowrap { white-space: nowrap; }
.circle-archive-admin .archive-admin-step-heading p { margin: 0; color: var(--archive-muted); font-size: .82rem; }
.circle-archive-admin .archive-drive-table { min-width: 0; }
.circle-archive-admin .archive-drive-head,
.circle-archive-admin .archive-drive-table li > button { display: grid; grid-template-columns: 2fr 1.25fr .7fr .8fr .8fr; gap: 16px; align-items: center; }
.circle-archive-admin .archive-drive-head { padding: 8px 16px; color: var(--archive-muted); font-size: .68rem; font-weight: 800; }
.circle-archive-admin .archive-drive-table ul { margin: 0; padding: 0; border-top: 1px solid var(--archive-rule); list-style: none; }
.circle-archive-admin .archive-drive-table li { border-bottom: 1px solid var(--archive-rule); }
.circle-archive-admin .archive-drive-table li > button { width: 100%; min-height: 72px; padding: 16px; border: 0; background: transparent; color: var(--archive-ink); text-align: left; cursor: pointer; }
.circle-archive-admin .archive-drive-table li > button span { min-width: 0; overflow-wrap: anywhere; }
.circle-archive-admin .archive-admin-empty { padding: 32px 16px; color: var(--archive-muted); }
.circle-archive-admin .archive-admin-editor { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 32px; }
.circle-archive-admin .archive-admin-preview > span,
.circle-archive-admin .archive-member-preview > span { display: block; margin-bottom: 8px; color: var(--archive-muted); font-size: .72rem; font-weight: 800; }
.circle-archive-admin .archive-admin-preview > div { display: grid; aspect-ratio: 16 / 9; place-items: center; background: var(--archive-ink); color: white; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.circle-archive-admin .archive-admin-preview p { padding: 16px; text-align: center; }
.circle-archive-admin .archive-admin-editor form { display: grid; gap: 16px; }
.circle-archive-admin .archive-admin-editor label { display: grid; gap: 6px; font-size: .78rem; font-weight: 800; }
.circle-archive-admin .archive-admin-editor input,
.circle-archive-admin .archive-admin-editor textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--archive-ink); border-radius: 0; background: var(--archive-paper-raised); color: var(--archive-ink); font-size: 16px; }
.circle-archive-admin .archive-admin-editor textarea { resize: vertical; }
.circle-archive-admin .archive-admin-editor fieldset { margin: 0; padding: 16px; border: 1px solid var(--archive-rule); }
.circle-archive-admin .archive-admin-editor legend { padding: 0 8px; font-size: .78rem; font-weight: 800; }
.circle-archive-admin .archive-admin-chapters { display: grid; gap: 8px; }
.circle-archive-admin .archive-admin-chapters > div { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.circle-archive-admin .archive-admin-chapters p { margin: 0; color: var(--archive-muted); font-size: .78rem; }
.circle-archive-admin .archive-admin-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: static; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); background: var(--archive-paper); }
.circle-archive-admin [data-async-button] { min-height: 48px; padding: 8px 14px; border: 1px solid var(--archive-blue); background: var(--archive-paper-raised); color: var(--archive-blue); font-weight: 800; cursor: pointer; }
.circle-archive-admin [data-async-button][name="intent"][value="queue"],
.circle-archive-admin .archive-admin-status > form [data-async-button] { background: var(--archive-blue); color: white; }
.circle-archive-admin [data-async-button][data-state="success"] { border-color: #2b7650; background: #e8f6ed; color: #245f43; }
.circle-archive-admin [data-async-button][data-state="error"] { border-color: var(--archive-vermilion); background: #fff0ec; color: #9c311d; }
.circle-archive-admin [data-async-button]:disabled { cursor: wait; opacity: .78; }
.circle-archive-admin .archive-form-result { min-height: 32px; margin: 0; font-size: .78rem; }
.circle-archive-admin .archive-form-result[data-state="error"] { color: #9c311d; }
.circle-archive-admin .archive-admin-status { display: grid; gap: 16px; }
.circle-archive-admin .archive-admin-status > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.circle-archive-admin .archive-status-badge { width: fit-content; padding: 4px 10px; background: var(--archive-blue-soft); color: var(--archive-blue); font-size: .72rem; font-weight: 900; }
.circle-archive-admin .archive-admin-status[data-archive-status="failed"] .archive-status-badge { background: #fff0ec; color: var(--archive-vermilion); }
.circle-archive-admin .archive-admin-status progress { width: 100%; height: 12px; accent-color: var(--archive-blue); }
.circle-archive-admin .archive-admin-failure { margin: 0; padding: 16px; border-left: 3px solid var(--archive-vermilion); background: #fff0ec; color: #7d2a1c; }
.circle-archive-admin .archive-admin-status > form { display: grid; gap: 8px; }
.circle-archive-admin .archive-member-preview { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--archive-rule); }
.circle-archive-admin .archive-member-preview article { padding: 24px; background: var(--archive-paper-raised); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05); }
.circle-archive-admin .archive-member-preview article small { color: var(--archive-blue); }
.circle-archive-admin .archive-member-preview article h3 { margin: 8px 0; font-size: 1.35rem; }
.circle-archive-admin .archive-member-preview article p { margin: 0; color: var(--archive-muted); }

@media (hover: hover) and (pointer: fine) {
  .archive-log .archive-featured:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 20px 48px rgba(0, 0, 0, .12); }
  .archive-log .archive-home-record > a:hover { z-index: 1; background: var(--archive-blue-soft); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); transform: translateY(-1px); }
  .archive-log .archive-member-row-link:hover,
  .archive-log .archive-log-row-link:hover,
  .archive-log .archive-search-result > a:hover,
  .archive-log .archive-source-return a:hover,
  .circle-archive-admin .archive-drive-table li > button:hover,
  .circle-archive-admin [data-async-button]:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(19, 94, 232, .1); }
}

@media (max-width: 760px) {
  .archive-log .archive-log-search-hero,
  .archive-log .archive-log-upcoming,
  .archive-log .archive-log-updates,
  .archive-log .archive-search-results,
  .archive-log .archive-event-strip,
  .archive-log .archive-seminar-library,
  .archive-log .archive-tips-library { padding-inline: 16px; }
  .archive-log .archive-log-row,
  .archive-log .archive-search-result { grid-template-columns: 104px minmax(0, 1fr); }
  .archive-log .archive-date-gutter { padding: 16px; }
  .archive-log .archive-log-row-link,
  .archive-log .archive-search-result > a { padding-left: 24px; }
  .archive-log .archive-source-citation { align-items: stretch; flex-direction: column; }
  .archive-log .archive-source-header dl { grid-template-columns: 1fr; }
  .archive-log .archive-source-header dl > div { border-right: 0; border-bottom: 1px solid var(--archive-rule); }
  .archive-log .archive-source-header dl > div:last-child { border-bottom: 0; }
  .archive-log .archive-member-row { grid-template-columns: 96px minmax(0, 1fr); }
  .archive-log .archive-member-row-link { grid-template-columns: 1fr; gap: 16px; padding-left: 20px; }
  .archive-log .archive-member-row-link > img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .archive-log .archive-event-line { grid-template-columns: minmax(0, 1fr) max-content 44px; gap: 4px 12px; }
  .archive-log .archive-event-line small { grid-column: 1; }
  .archive-log .archive-event-line time { grid-column: 2; }
  .archive-log .archive-event-line strong,
  .archive-log .archive-event-line > span { grid-column: 1 / 3; }
  .archive-log .archive-event-line i { grid-column: 3; grid-row: 1 / span 3; }
  .archive-log .archive-home-video > a { grid-template-columns: 88px minmax(160px, 200px) minmax(0, 1fr) 44px; gap: 0 16px; }
  .circle-archive-admin .archive-admin-step { grid-template-columns: 1fr; gap: 24px; }
  .circle-archive-admin .archive-admin-editor { grid-template-columns: 1fr; }
  .circle-archive-admin .archive-drive-head { display: none; }
  .circle-archive-admin .archive-drive-table li > button { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .circle-archive-admin .archive-drive-table li > button span::before { display: block; color: var(--archive-muted); content: attr(data-label); font-size: .64rem; font-weight: 800; }
  .circle-archive-admin .archive-drive-table li > button span:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .archive-log,
  .circle-archive-admin { font-size: 16px; }
  .archive-log .archive-log-header,
  .circle-archive-admin .archive-log-header { min-height: 64px; }
  .archive-log .archive-log-brand strong,
  .circle-archive-admin .archive-log-brand strong { font-size: 1rem; }
  .archive-log .archive-log-search-hero { padding-block: 40px 32px; }
  .archive-log .archive-log-search-hero > h1,
  .archive-log .archive-article-header h1,
  .archive-log .archive-source-header h1,
  .circle-archive-admin .circle-archive-admin-title h1 { font-size: 2rem; }
  .archive-log .archive-log-search > div { grid-template-columns: 40px minmax(0, 1fr); }
  .archive-log .archive-log-search button { grid-column: 1 / -1; width: 100%; min-height: 48px; }
  .archive-log .archive-log-section-title { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .archive-log .archive-log-section-title > a { font-size: .7rem; }
  .archive-log .archive-featured { grid-template-columns: 1fr; }
  .archive-log .archive-featured-date-gutter {
    min-height: 64px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid var(--archive-blue);
  }
  .archive-log .archive-featured-date-gutter::after { top: auto; right: 24px; bottom: -6px; }
  .archive-log .archive-featured-copy { padding: 24px; }
  .archive-log .archive-featured-play { width: 52px; height: 52px; }
  .archive-log .archive-tip-records { grid-template-columns: 1fr; }
  .archive-log .archive-home-video > a { grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 0 12px; padding-right: 8px; }
  .archive-log .archive-video-date-gutter { grid-column: 1; grid-row: 1 / span 2; padding: 12px; }
  .archive-log .archive-home-video-media { grid-column: 2 / 4; grid-row: 1; margin-block: 16px 0; }
  .archive-log .archive-home-video-copy { grid-column: 2; grid-row: 2; padding-block: 16px; }
  .archive-log .archive-home-video-copy > strong { font-size: 1.08rem; }
  .archive-log .archive-home-video > a > span:last-child { grid-column: 3; grid-row: 2; align-self: center; }
  .archive-log .archive-log-row,
  .archive-log .archive-search-result { grid-template-columns: 88px minmax(0, 1fr); min-height: 128px; }
  .archive-log .archive-date-gutter { padding: 12px; }
  .archive-log .archive-date-gutter strong { font-size: 1.1rem; }
  .archive-log .archive-log-row-link,
  .archive-log .archive-search-result > a { min-height: 128px; padding: 20px 40px 20px 20px; }
  .archive-log .archive-log-row-link > strong,
  .archive-log .archive-search-result > a > strong { font-size: 1.08rem; }
  .archive-log .archive-log-row-link p,
  .archive-log .archive-search-result > a p { display: none; }
  .archive-log .archive-log-arrow,
  .archive-log .archive-search-result > a > i { right: 0; }
  .archive-log .archive-article { padding-top: 32px; }
  .archive-log .archive-key-points { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .archive-log .archive-article-section { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .archive-log .archive-section-number { font-size: 1.4rem; }
  .archive-log .archive-article-section h2 { font-size: 1.75rem; }
  .archive-log .archive-diagram { grid-template-columns: 1fr; padding: 16px; }
  .archive-log .archive-source-citation { margin-top: 56px; padding-inline: 0; }
  .archive-log .archive-source-citation > div { align-items: flex-start; }
  .archive-log .archive-source-citation a { justify-content: center; border: 1px solid var(--archive-blue); }
  .archive-log .archive-source-log { padding-top: 32px; }
  .archive-log .archive-citation-log > li { gap: 12px; }
  .archive-log .archive-citation-log article header { align-items: flex-start; flex-direction: column; gap: 0; }
  .circle-archive-admin .circle-archive-admin-title { padding-block: 40px 32px; }
  .circle-archive-admin .archive-admin-step { padding-block: 40px; }
  .circle-archive-admin .archive-admin-step-heading h2 { font-size: 1.75rem; }
  .circle-archive-admin .archive-admin-step-heading p { font-size: 1rem; }
  .circle-archive-admin .archive-admin-form-actions { grid-template-columns: 1fr; }
  .circle-archive-admin .archive-admin-chapters > div { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .archive-log .archive-watch-page { width: 100%; max-width: 100%; padding: 32px 16px 64px; overflow: clip; }
  .archive-log .archive-member-row { grid-template-columns: 78px minmax(0, 1fr); }
  .archive-log .archive-member-row-link { padding: 16px 36px 16px 14px; }
  .archive-log .archive-member-copy > strong { font-size: 1.02rem; }
  .archive-log .archive-member-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .archive-log .archive-log-row-link p,
  .archive-log .archive-search-result > a p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .archive-log .archive-chapters button { grid-template-columns: 60px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .archive-log .archive-featured,
  .archive-log .archive-member-row-link,
  .archive-log button,
  .archive-log a,
  .circle-archive-admin button,
  .circle-archive-admin a {
    transform: none !important;
    scale: 1 !important;
    animation: none !important;
    transition-property: background-color, color, border-color, box-shadow;
  }
}

@media (min-width: 901px) { .member-app-home { width: min(calc(100% - 40px), 1180px); } }
@media (max-width: 900px) { .member-app-home { width: min(calc(100% - 28px), 680px); } }
.member-app-home .member-greeting { padding: 8px 0 14px; border: 0; font-family: var(--sans); font-size: 1.05rem; }
.member-home-stats:empty { display: none; }
/* One geometry for every authenticated member page. Keep this after page-specific rules. */
html { scrollbar-gutter: stable; }
body:has(.member-app-header) { --community-shell-offset: 76px; }
body .site-header.member-app-header {
  position: sticky; top: 0; display: flex; height: 76px; min-height: 76px;
  padding: 0 max(16px, calc((100% - 1200px) / 2)); gap: 24px;
  align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink);
  background: var(--paper); backdrop-filter: none; color: var(--ink);
}
body .site-header.member-app-header .site-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; color: var(--ink); flex-shrink: 0; }
body .member-app-header .site-logo strong { font-size: .86rem; font-weight: 800; letter-spacing: .03em; }
body .member-app-header .site-logo span { font-size: .6rem; font-weight: 900; letter-spacing: .16em; color: var(--blue-pencil); }
body .member-app-header .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; width: auto; border: 0; box-shadow: none; background: transparent; }
body .member-app-header .site-nav > a { height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; font-size: .78rem; font-weight: 800; color: var(--ink); background: transparent; }
body .member-app-header .site-nav > a[aria-current="page"] { color: var(--blue-pencil); background: transparent; }
body .member-app-header .site-nav > a.is-current { background: transparent; }
body .member-app-header .site-nav > a:not(.member-notification-link)::after { display: block; top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue-pencil); opacity: 0; transform: none; }
body .member-app-header .site-nav > a[aria-current="page"]::after { opacity: 1; }
body .member-app-header :is(a,button,summary):is(:active,:focus-visible) { scale: 1; transform: none; }
body .member-app-header .community-account-menu > summary { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 4px; background: transparent; }
body .member-app-header .member-mobile-appbar { display: none; }
.community-avatar, .community-account-avatar { position: relative; overflow: hidden; }
img[data-member-avatar] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.community-send-state { color: var(--muted); font-size: .76rem; }
.community-send-state button { min-height: 44px; margin-left: 10px; border: 0; background: transparent; color: var(--blue-pencil); text-decoration: underline; }
.member-avatar-editor { max-width: 600px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.notification-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notification-identity .community-avatar { flex: 0 0 32px; }
.member-avatar-editor h2 { font-family: var(--sans); font-size: 1rem; }
.member-avatar-current .community-avatar { width: 64px; height: 64px; }
.member-avatar-editor label { display: block; margin-block: 12px; font-size: .88rem; }
.member-avatar-editor input { max-width: 100%; }
.member-avatar-editor input[type=range] { display: block; width: 256px; }
.member-avatar-editor canvas { display: block; max-width: 100%; border: 1px solid var(--rule); }
.member-avatar-editor [hidden] { display: none; }
.member-avatar-buttons { display: flex; gap: 12px; }
.member-avatar-buttons button { min-height: 44px; padding: 8px 20px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-avatar-buttons button[data-avatar-save] { background: var(--blue-pencil); color: white; }
.member-avatar-buttons button:disabled { opacity: .5; }
body.community-workspace { background: var(--paper); --workspace-ink: var(--ink); --workspace-rule: var(--rule); --workspace-soft: var(--paper-deep); --workspace-muted: var(--muted); }
.community-workspace .community-conversation-rail { background: var(--paper); color: var(--ink); }
body .community-workspace-grid > .community-conversation-rail[data-original-branched-menu],
body [data-original-branched-menu] .community-conversation-rail-heading { background: var(--paper); color: var(--ink); border-color: var(--rule); }
body [data-original-branched-menu] .community-conversation-rail-heading h1,
body [data-original-branched-menu] .community-rail-close { color: var(--ink); }
body [data-original-branched-menu] .branched-menu { --bm-ink: var(--ink); --bm-accent: var(--ink); --bm-line: #bdb8ac; --bm-muted: var(--muted); }
body [data-original-branched-menu] .branched-menu__head { color: var(--ink); }
body [data-original-branched-menu] .branched-menu__item { color: var(--muted); }
body [data-original-branched-menu] .branched-menu__item[data-active] { color: var(--ink); }
body [data-original-branched-menu] .branched-menu__marker { background: var(--ink); }
body [data-original-branched-menu] .branched-menu__base { stroke: #bdb8ac; }
body [data-original-branched-menu] .branched-menu__reach { stroke: var(--ink); }
body [data-original-branched-menu] .branched-menu button:focus-visible { outline-color: var(--blue-pencil); }
.community-workspace .community-rail-room { background: transparent; color: var(--ink); border-radius: 2px; }
.community-workspace .community-rail-room[aria-current="page"] { background: var(--paper-deep); color: var(--ink); border-left: 3px solid var(--ink); }
.community-workspace .community-room-header::before { content: none; }
.community-workspace .community-room-header, .community-workspace .community-thread-header { top: var(--community-shell-offset); }
.community-workspace .community-room-message-meta { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.community-workspace .community-room-message-meta > span:empty { display: none; }
.community-workspace .community-room-message-actions { margin-left: 0; width: auto; }
.community-room-message.is-continuation > :is(.community-author,.community-avatar-presence), .community-thread-reply.is-continuation > :is(.community-author,.community-avatar-presence) { visibility: hidden; }
.community-room-message.is-continuation .community-room-message-content > header :is(strong,span,em), .community-thread-reply.is-continuation > div > header :is(strong,span,em) { display: none; }
.community-room-message.is-continuation, .community-thread-reply.is-continuation { padding-top: 2px; border-top: 0; }
@media (min-width: 768px) {
  .community-workspace .community-workspace-grid { grid-template-columns: 240px minmax(0,1fr); }
  .community-workspace .community-chat-column, .community-workspace .community-thread-panel { max-width: 780px; margin-inline: auto; }
}
@media (max-width: 900px) {
  body:has(.member-app-header) { --community-shell-offset: 60px; }
  body .site-header.member-app-header { display: flex; height: 60px; min-height: 60px; padding: 0 12px; gap: 8px; }
  body .member-app-header .site-logo strong { font-size: .64rem; }
  body .member-app-header .site-logo span { font-size: .58rem; }
  body .member-app-header .site-nav { display: none; }
  body .member-app-header .member-mobile-appbar { position: static; display: flex; width: auto; min-height: 44px; padding: 0; flex-shrink: 0; }
  body .member-app-header .member-mobile-appbar > span { display: flex; gap: 8px; align-items: center; }
  body .member-app-header .member-mobile-appbar .member-notification-link { width: 44px; height: 44px; }
  .community-workspace .community-room-header, .community-workspace .community-thread-header { top: var(--community-shell-offset); }
  .community-workspace .community-room-feed { min-height: calc(100dvh - var(--community-shell-offset) - 140px - var(--member-tab-height)); }
  body.community-thread-detail .community-thread-panel { min-height: calc(100dvh - var(--community-shell-offset) - env(safe-area-inset-bottom)); }
  .community-workspace-grid > .community-conversation-rail.is-drawer-open { top: var(--community-shell-offset); height: calc(100dvh - var(--community-shell-offset)); }
  .member-avatar-editor:has([data-avatar-adjust]:not([hidden])) .member-avatar-current { display: none; }
  .member-avatar-editor canvas { width: 192px; height: 192px; }
  .member-avatar-editor [data-avatar-adjust] label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 8px; }
  .member-avatar-editor [data-avatar-adjust] input[type=range] { width: 160px; }
}

.member-app-home #member-news { text-align: left; }
.member-app-home #member-news li > a {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px;
  align-items: baseline; justify-content: start; text-align: left;
}
.member-app-home #member-news time { grid-column: 1; grid-row: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.member-app-home #member-news li > a > span { grid-column: 2; grid-row: 1; min-width: 0; }
.member-avatar-editor input[type=range] { accent-color: var(--blue-pencil); }
.member-avatar-editor .member-avatar-picker { min-height: 44px; cursor: pointer; }

/* Event form: one question first, the rest only for attendees. */
.member-event-details strong { white-space: nowrap; }
.member-event-page .event-saved-status { margin: 8px 0; }
.member-event-form { gap: 0; margin-top: 20px; }
.member-event-form .member-event-step { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--rule); }
.member-event-form .member-event-step legend { float: left; width: 100%; margin: 0 0 4px; padding: 0; font-size: 1.15rem; font-weight: 800; }
.member-event-form .member-event-step:first-of-type { border-top: 0; padding-top: 4px; }
.member-event-form .member-event-step[hidden] { display: none !important; }
.member-event-hint { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.member-event-cards { display: grid; gap: 8px; }
.member-event-form .member-event-card { position: relative; display: block; cursor: pointer; }
.member-event-form .member-event-card input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.member-event-card > span { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 2px 12px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper-lifted); color: var(--ink); }
.member-event-card > span::before { content: ""; grid-row: 1 / span 2; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper-lifted); color: var(--paper-lifted); font-size: 14px; font-weight: 800; line-height: 1; }
.member-event-card-checkbox > span::before { border-radius: 4px; }
.member-event-card b { font-weight: 800; }
.member-event-card small { grid-column: 2; color: var(--muted); font-size: .85rem; }
.member-event-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: color-mix(in srgb, var(--vermilion) 7%, var(--paper-lifted)); }
.member-event-card-radio input:checked + span::before { border-color: var(--vermilion); background: var(--vermilion); box-shadow: inset 0 0 0 4px var(--paper-lifted); }
.member-event-card-checkbox input:checked + span::before { content: "✓"; border-color: var(--vermilion); background: var(--vermilion); }
.member-event-card input:focus-visible + span { outline: 3px solid var(--blue-pencil); outline-offset: 2px; }
.member-event-form label > small { color: var(--muted); font-size: .85rem; }
.member-event-form .member-event-card > span { color: var(--ink); font-size: 1rem; }
.member-event-form .member-event-label { color: var(--ink); font-size: 1rem; font-weight: 700; }
.member-event-label i { margin-left: 8px; color: var(--vermilion); font-size: .8rem; font-style: normal; font-weight: 800; }
.member-event-label i.is-optional { color: var(--muted); font-weight: 400; }
.member-event-profile summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper-lifted); cursor: pointer; list-style: none; }
.member-event-profile summary::-webkit-details-marker { display: none; }
.member-event-profile summary em { flex: none; color: var(--blue-pencil); font-style: normal; font-weight: 800; }
.member-event-profile[open] summary em { display: none; }
.member-event-profile-body { display: grid; gap: 14px; padding: 14px 0 0; }
.member-event-submit { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.member-event-submit .member-primary-action { width: 100%; min-height: 56px; font-size: 1.02rem; }
.member-event-submit .member-event-cancellation { margin: 0; font-size: .88rem; line-height: 1.6; }
.member-event-submit [hidden] { display: none !important; }
.member-event-payment { border-left: 4px solid var(--vermilion); padding: 12px; background: var(--paper-deep); }
.member-event-payment p { margin: 0; padding: 0; border: 0; background: none; }
.member-event-pay-button { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 16px; border: 1px solid var(--ink); background: var(--paper-lifted); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
