: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;
  --logo-orange: #d77638;
  --logo-charcoal: #242926;
  /* Theme tokens. Paper values reproduce the previous look. */
  --ink-rgb: 24 24 24;
  --ink-soft: #494741;
  --muted-weak: #8a877f;
  --surface: #fff;
  --surface-soft: #f7f7f5;
  --surface-muted: #efeeeb;
  --line: #dedbd3;
  --line-strong: #8d8a82;
  --accent-soft: #fff0ec;
  --accent-text: #a6341b;
  --vermilion-text: #c13a14;
  --blue-text: #4a66a0;
  --blue-soft: #eef1f8;
  --ok-soft: #e8f6ed;
  --ok-text: #2f6940;
  --inverse-bg: #181818;
  --inverse-ink: #fffef9;
  --on-fill: #fffef9;
  --media-bg: #111;
  --image-frame: transparent;
}

/* 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: var(--surface-muted);
  color: var(--ink-soft);
  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(--vermilion-text);
  font-weight: 800;
}

.archive-log .learning-privacy-note {
  margin: 40px auto 0;
  color: var(--muted);
  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: var(--surface);
  color: var(--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(--vermilion-text);
  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(--vermilion-text);
  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: var(--surface);
  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: var(--muted);
  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: var(--surface-muted);
  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: var(--surface);
}

.archive-log .member-progress-card li > span:first-child {
  color: var(--muted);
  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%; height: auto; 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-text); 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 0; border-block: 1px solid var(--rule); background: transparent; }
.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-text); 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: rgb(var(--ink-rgb) / .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-text); }
.member-event-form [hidden] { display: none !important; }
.event-saved-status { padding: 12px 0; border-block: 1px solid var(--rule); background: transparent; }
.event-closed-note, .event-form-error { padding: 14px 0; border-block: 1px solid var(--vermilion); background: transparent; font-weight: 700; }
.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-counts dd small { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; font-weight: 400; }
.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%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 32rem),
    radial-gradient(circle at 82% 55%, rgba(216,201,160,.08), transparent 34rem),
    repeating-linear-gradient(0deg, rgb(var(--ink-rgb) / .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;
}
.phrase-wrap { word-break: keep-all; overflow-wrap: anywhere; }
.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(--blue-text);
  font-size: var(--fs-note);
  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: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(12px);
}
.site-logo { display: flex; min-height: 44px; align-items: center; gap: var(--sp-2); text-decoration: none; line-height: var(--lh-note); }
.site-logo-mark { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.site-logo-copy { display: flex; flex-direction: column; min-width: 0; }
.site-logo strong { font-size: .86rem; letter-spacing: .03em; }
.site-logo-copy > span { color: var(--blue-text); font-size: var(--fs-note); font-weight: 900; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  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(--blue-text); }
.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(--blue-text); font-family: var(--hand); font-size: 1.3rem; }
.preview-inline-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue-text); 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[hidden] { display: none; }
.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(--vermilion); background: var(--vermilion); color: white; }
.button:not(.cobalt):not(.coral) { background: var(--paper-lifted); color: var(--ink); }

.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: color-mix(in srgb, var(--surface) 90%, transparent); 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(--vermilion-text); font-size: var(--fs-note); font-weight: 900; letter-spacing: .12em; }
.login-card h2 { margin: 10px 0; font-family: var(--serif); font-size: 2rem; }
.login-session-note { margin-top: calc(var(--sp-4) - var(--sp-1)); padding-top: var(--sp-3); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-note); line-height: var(--lh-note); }
.form-message-link { display: inline-flex; min-height: 44px; align-items: center; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.login-help { margin-top: 14px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.login-help summary { cursor: pointer; color: var(--blue-text); font-weight: 700; }
.login-help p { margin-top: 6px; }
.login-help a { color: var(--blue-text); 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: var(--surface); font-size: 16px; }
.form-message { padding: 10px 12px; border-block: 1px solid var(--coral); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.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-text);
  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-text); }
.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; }
/* Sena 10/28「ずれ」: the digit sat 6px from the top and 1px from the bottom. Center the 1em line in the red disc, and keep one digit round. */
.member-notification-count { position: absolute; top: 0; right: calc(var(--sp-1) - var(--sp-2)); display: inline-grid; place-items: center; min-width: var(--sp-4); height: var(--sp-4); padding: 0 4px; border: 2px solid var(--paper); border-radius: 999px; background: var(--vermilion); color: white; font-size: var(--fs-note); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; 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-text); 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 rgb(var(--ink-rgb) / .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-text); 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-text); 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-text) !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-top: 1px solid var(--rule); padding: 16px 0 4px; scroll-margin-top: 100px; }
.member-featured-news .member-featured-news-label { margin: 0 0 10px; color: var(--vermilion-text); 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-text) !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-text); 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-text); 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 rgb(var(--ink-rgb) / .12); color: var(--ink); }
.member-services-section .preparation-list li small { white-space: nowrap; }
.member-services-section li > a { color: var(--blue-text); font-size: .82rem; font-weight: 800; }
.member-services-section details { border-top: 1px solid rgb(var(--ink-rgb) / .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-text); }
.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-text); 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 rgb(var(--ink-rgb) / .12); list-style: none; }
.notification-list li { border-bottom: 1px solid rgb(var(--ink-rgb) / .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 rgb(var(--ink-rgb) / .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 rgb(var(--ink-rgb) / .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-text); }
  .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; }
}

html[data-member-keyboard="open"] .member-mobile-nav,
html[data-member-keyboard="open"] .community-mobile-nav,
body.member-keyboard-open .member-mobile-nav,
body.member-keyboard-open .community-mobile-nav { display: none !important; }
/* While the keyboard is open the tabs are hidden, so nothing below the page is kept for them (or for the
   home-indicator inset folded into the same variable). */
html[data-member-keyboard="open"] { --member-tab-height: 0px; }

@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; }
}
.community-attachment-picker-button {
  display: inline-grid !important;
  place-items: center;
  align-self: end;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, scale 100ms ease;
}
.community-composer-message { min-width: 0; }

@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-text); 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 > button,
  .community-account-popover > form > button { display: flex; align-items: center; gap: 10px; }
  .community-account-popover > a > svg,
  .community-account-popover > button > svg,
  .community-account-popover > form > button > svg { flex: 0 0 16px; }
  .community-account-popover .member-account-legal-links a svg { display: none; }
  .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));
  }
}

/* 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: var(--surface);
  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 rgb(var(--ink-rgb) / .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 rgb(var(--ink-rgb) / .09);
  background: var(--surface);
  color: var(--muted);
  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-filter-panel {
  border-bottom: 1px solid rgb(var(--ink-rgb) / .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: var(--surface);
}

.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: var(--surface);
  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 rgb(var(--ink-rgb) / .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: var(--muted); 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(--blue-text);
  font-weight: 800;
}

.community-chat-row-meta > em {
  color: var(--muted);
  font-style: normal;
}

.community-chat-row-meta > em[data-community-status="solved"] { color: var(--ok-text); 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: var(--ink-soft);
  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: var(--muted);
  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: var(--surface-soft); }
}

.community-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 900;
}

.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: var(--surface-muted);
  color: var(--ink-soft);
  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: var(--accent-soft); }
.community-safety-check input { width: 20px; min-height: 20px; padding: 0; }
.community-form-result { min-height: 1.5em; margin: 0; color: var(--vermilion-text); }
.community-rules { padding: 16px 0; border-block: 1px solid var(--rule); background: transparent; }
.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 rgb(var(--ink-rgb) / .09);
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  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: var(--surface-muted); color: var(--muted); font-size: .65rem; font-style: normal; white-space: nowrap; }
.community-chat-thread-bar > em[data-community-status="solved"] { background: var(--ok-soft); color: var(--ok-text); }

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

.community-summary-label { display: flex; align-items: baseline; gap: 10px; }
.community-summary-label span { color: var(--blue-text); font-size: .65rem; font-weight: 800; }
.community-summary-label strong { font-size: .86rem; }

.community-chat-thread {
  position: relative;
  min-height: 60vh;
  background: var(--surface);
  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 rgb(var(--ink-rgb) / .07);
  background: var(--surface);
}

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

.community-chat-message > header > time { color: var(--muted); 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(--blue-text); 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: var(--surface-soft);
}

.community-chat-context > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
.community-chat-context dt { color: var(--muted); 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: var(--muted); 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: rgb(var(--ink-rgb) / .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: var(--surface); color: var(--ink); font-size: 16px; }
.community-chat-replies { margin: 0; }
.community-chat-replies > h2 { margin: 0; padding: 12px 22px; border-bottom: 1px solid rgb(var(--ink-rgb) / .07); color: var(--muted); font-family: inherit; font-size: .7rem; font-weight: 700; }
.community-chat-replies > h2 span { color: var(--blue-text); 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: color-mix(in srgb, var(--surface) 97%, transparent);
  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 var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.community-chat-composer textarea:focus { border-color: var(--cobalt); background: var(--surface); 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(--vermilion-text); font-size: .7rem; }
.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: var(--surface);
}
.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 { font-weight: 700; }
.community-notifications time { color: var(--muted); font-size: .7rem; }
.community-staff-note { padding: 16px; border: 1px solid var(--coral); color: var(--vermilion-text); font-weight: 900; }

.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: var(--surface-soft); }
  .community-chat-new:hover,
  .community-chat-composer > button:hover { background: #49639b; }
}

@media (min-width: 901px) {
  .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-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 > a span,
.community-thread-header span,
.community-thread-link,
.community-thread-preview small {
  font-variant-numeric: tabular-nums;
}

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

.community-thread-link time { color: var(--muted); font-size: .72rem; font-weight: 500; }

.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 var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

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

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

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

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

.community-thread-preview { border-bottom: 1px solid rgb(var(--ink-rgb) / .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 > a > strong { font-size: .9rem; line-height: 1.5; }
.community-thread-preview > a > p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.community-thread-preview > a > small { color: var(--muted); font-size: .68rem; }

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

@media (max-width: 560px) {
  .community-room,
  .community-thread-layout,
  .community-threads-index {
    width: 100%;
    padding-inline: 0;
  }
}

/* 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: var(--surface-muted);
  color: var(--ink);
  font-size: var(--fs-note);
  font-weight: 800;
}
.community-account-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  /* Short phones: keep the last items (logo, logout) reachable above the bottom tab bar. */
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
  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 var(--line); }
.community-account-popover header > strong { overflow: hidden; font-size: var(--fs-ui); text-overflow: ellipsis; white-space: nowrap; }
.community-account-popover header span,
.community-account-popover header small { display: flex; align-items: center; gap: var(--sp-1); color: var(--muted); font-size: var(--fs-note); font-variant-numeric: tabular-nums; }
.community-account-popover a,
.community-account-popover button { display: flex; width: 100%; min-height: 44px; align-items: center; padding: var(--sp-2) var(--sp-2); border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-ui); 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 var(--line); }
body .community-account-popover .member-account-legal-links a { min-height: 44px; padding: var(--sp-1) 0; color: var(--muted); font-size: var(--fs-note); 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: var(--surface);
  color: var(--workspace-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.community-workspace .community-account-menu > summary:focus-visible { outline: 2px solid var(--workspace-blue-pencil); outline-offset: 2px; }

.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(--blue-text);
  font-size: .76rem;
  font-weight: 750;
}

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

  .community-threads-index { width: 100%; }
}
.community-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 2px solid var(--paper);
  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-inline-editor textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--workspace-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
}

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

@media (hover: hover) and (pointer: fine) {

  .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); }
}

.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: color-mix(in srgb, var(--surface) 46%, transparent); }
.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: color-mix(in srgb, var(--surface) 92%, transparent); 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(--vermilion-text); 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 var(--line-strong); 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(--vermilion-text); 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(--inverse-bg); color: var(--inverse-ink); 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(--vermilion-text); 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(--vermilion-text); 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(--vermilion-text); }
.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(--blue-text); 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(--blue-text); 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(--blue-text); font-size: .78rem; font-weight: 900; }
.member-service.is-unavailable { background: color-mix(in srgb, var(--paper-deep) 35%, transparent); }
.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 var(--line-strong); }
.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 var(--line-strong); list-style: none; }
.preparation-list li { display: grid; gap: 5px; padding: 18px; border-right: 1px dashed var(--line-strong); 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: var(--surface); 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(--blue-text); 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(--blue-text);
  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(--inverse-bg); color: var(--inverse-ink); }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer span { color: var(--muted-weak); 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: var(--fs-note); }
  .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 var(--line-strong); }
  .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 0; border-block: 1px solid var(--rule); background: transparent; }
.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-experience-page { width: min(calc(100% - 32px), 1200px); }
.member-event-admin > form, .member-event-admin > p { margin: 0 0 var(--sp-3); }
.member-event-admin .member-event-table-wrap {
  width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  background:
    linear-gradient(90deg, var(--paper) 40%, rgb(255 255 255 / 0)) left / 48px 100% no-repeat local,
    linear-gradient(270deg, var(--paper) 40%, rgb(255 255 255 / 0)) right / 48px 100% no-repeat local,
    linear-gradient(90deg, rgb(var(--ink-rgb) / .22), rgb(var(--ink-rgb) / 0)) left / 18px 100% no-repeat scroll,
    linear-gradient(270deg, rgb(var(--ink-rgb) / .22), rgb(var(--ink-rgb) / 0)) right / 18px 100% no-repeat scroll;
}
.member-event-admin .member-event-table-wrap table { width: 100%; min-width: 1100px; table-layout: fixed; background: transparent; }
.member-event-admin .member-event-table-wrap th { background: transparent; border-bottom: 2px solid var(--ink); }
.member-event-admin .member-event-table-wrap th:nth-child(1), .member-event-admin .member-event-table-wrap td:nth-child(1) { width: 150px; }
.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; }
/* 知り合い: a name and company wrap inside their own column instead of running into 支払い状況. */
.member-event-admin .member-event-table-wrap th:nth-child(6), .member-event-admin .member-event-table-wrap td:nth-child(6) { width: 168px; }
.member-event-admin .member-event-table-wrap th:nth-child(7), .member-event-admin .member-event-table-wrap td:nth-child(7) { width: 136px; }
.member-event-admin .member-event-table-wrap td:nth-child(7) { white-space: normal; word-break: keep-all; overflow-wrap: normal; }
.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+5), .member-event-admin .member-event-table-wrap td:nth-child(-n+5), .member-event-admin .member-event-table-wrap th:nth-child(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(--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: color-mix(in srgb, var(--surface) 96%, transparent);
  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(--blue-text); 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(--blue-text);
  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(--blue-text); 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(--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(--blue-text);
  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(--ink);
  text-decoration: none;
  transition-property: color, background-color;
}
.archive-log .archive-event-line small,
.archive-log .archive-event-line time { color: var(--vermilion-text); 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(--vermilion-text); 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(--blue-text);
  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(--media-bg); color: var(--on-fill); }
.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 rgb(var(--ink-rgb) / .1);
  outline-offset: -1px;
}
.archive-log .archive-thumbnail-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--media-bg);
  color: var(--on-fill);
  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: color-mix(in srgb, var(--surface) 94%, transparent);
  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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--ink); text-decoration: none; transition-property: scale, transform, box-shadow, background-color, color; }
.archive-log .archive-home-record time { color: var(--blue-text); 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(--media-bg); }
.archive-log .archive-home-video-media > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(var(--ink-rgb) / .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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--vermilion-text); }
.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(--blue-text); 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(--blue-text); font-size: 1.8rem; font-style: normal; }
.archive-log .archive-search-result > a > small { margin-top: 6px; color: var(--blue-text); 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(--vermilion-text); }

.archive-log .archive-back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue-text); 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(--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(--ink);
  cursor: pointer;
}
.archive-log .archive-filter-bar button[aria-pressed="true"] { border-color: var(--archive-blue); background: var(--archive-blue-soft); color: var(--blue-text); }
.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(--blue-text); font-weight: 800; }

.archive-log .archive-transition-notice {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-block: 1px solid var(--archive-vermilion);
  background: var(--accent-soft);
  color: var(--accent-text);
  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 rgb(var(--ink-rgb) / .1); outline-offset: -1px; }
.archive-log .archive-member-copy { display: grid; min-width: 0; gap: 6px; }
.archive-log .archive-member-copy > small { color: var(--blue-text); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.archive-log .archive-member-copy > small.archive-transition-label { color: var(--vermilion-text); }
.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(--blue-text); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-log .archive-member-row-link > i { position: absolute; right: 16px; color: var(--blue-text); 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(--media-bg);
  color: white;
  outline: 1px solid rgb(var(--ink-rgb) / .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: var(--surface);
  color: var(--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-block: 1px 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(--ink); text-align: left; cursor: pointer; }
.archive-log .archive-chapters button time { color: var(--blue-text); 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(--blue-text); 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(--blue-text); 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% - 2 * var(--sp-3) - var(--sp-1)), 720px); padding: calc(var(--sp-6) - var(--sp-1)) 0 calc(var(--sp-7) - var(--sp-1)); }
.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: var(--sp-1) var(--sp-2); background: var(--archive-blue-soft); color: var(--blue-text); font-size: var(--fs-note); 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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--blue-text); font-weight: 800; }
.archive-log .archive-tool-card { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; margin-top: 56px; padding: 16px 0; border-block: 1px solid var(--archive-blue); color: inherit; text-decoration: none; }
.archive-log .archive-tool-card img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.archive-log .archive-tool-card-body { display: grid; gap: 2px; min-width: 0; }
.archive-log .archive-tool-card-kind { color: var(--archive-muted); font-size: .72rem; font-weight: 800; }
.archive-log .archive-tool-card strong { color: var(--blue-text); font-size: 1.05rem; }
.archive-log .archive-tool-card small { color: var(--archive-muted); line-height: 1.6; }
.archive-log .archive-tool-card-go { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--blue-text); font-weight: 800; white-space: nowrap; }
.archive-log .archive-tool-card:hover .archive-tool-card-go, .archive-log .archive-tool-card:focus-visible .archive-tool-card-go { text-decoration: underline; }
.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(--blue-text); 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(--blue-text); }
.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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--blue-text); 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(--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(--media-bg); color: white; outline: 1px solid rgb(var(--ink-rgb) / .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(--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(--blue-text); 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: var(--ok-soft); color: var(--ok-text); }
.circle-archive-admin [data-async-button][data-state="error"] { border-color: var(--archive-vermilion); background: var(--accent-soft); color: var(--accent-text); }
.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: var(--accent-text); }
.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(--blue-text); font-size: .72rem; font-weight: 900; }
.circle-archive-admin .archive-admin-status[data-archive-status="failed"] .archive-status-badge { background: var(--accent-soft); color: var(--vermilion-text); }
.circle-archive-admin .archive-admin-status progress { width: 100%; height: 12px; accent-color: var(--blue-text); }
.circle-archive-admin .archive-admin-failure { margin: 0; padding: 16px; border-block: 1px solid var(--archive-vermilion); background: var(--accent-soft); color: var(--accent-text); }
.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(--blue-text); }
.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-tool-card { grid-template-columns: 56px 1fr; }
  .archive-log .archive-tool-card img { width: 56px; height: 42px; }
  .archive-log .archive-tool-card-go { grid-column: 1 / -1; justify-content: center; border: 1px solid var(--archive-blue); }
  .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: row; align-items: center; gap: 10px; line-height: 1.15; color: var(--ink); flex-shrink: 0; }
body .member-app-header .site-logo-mark { width: 32px; height: 32px; flex-basis: 32px; }
body .member-app-header .site-logo strong { font-size: .86rem; font-weight: 800; letter-spacing: .03em; }
body .member-app-header .site-logo-copy > span { font-size: var(--fs-note); font-weight: 900; letter-spacing: .12em; color: var(--blue-text); }
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-text); 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 .site-nav { margin-left: auto; }
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; }
.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] { border-color: var(--vermilion); background: var(--vermilion); color: white; }
.member-avatar-buttons button:disabled { opacity: .5; }
@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-mark { width: 28px; height: 28px; flex-basis: 28px; }
  body .member-app-header .site-logo strong { font-size: var(--fs-note); }
  body .member-app-header .site-logo-copy > span { font-size: var(--fs-note); letter-spacing: .08em; }
  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; }
  /* Narrow phones (320px, WCAG 1.4.10 Reflow): the wordmark gives way, the bell and the account menu keep their 44px inside the screen. */
  body .site-header.member-app-header .site-logo { flex: 1 1 auto; min-width: 0; }
  body .member-app-header .site-logo-copy { min-width: 0; }
  body .member-app-header .site-logo strong,
  body .member-app-header .site-logo-copy > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body .member-app-header .member-mobile-appbar .member-notification-link { width: 44px; height: 44px; }
  .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-text); }
.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(--on-fill); 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 .member-event-card:has(input:disabled) { cursor: not-allowed; }
.member-event-card input:disabled + span { opacity: .65; }
.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-text); 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-text); 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-block { margin: 0 0 22px; }
.member-event-block h2 { margin: 0 0 6px; font-size: 1.15rem; }
.member-event-block .member-event-details { margin-bottom: 12px; }
.member-event-block a { color: var(--blue-text); font-weight: 700; }
.member-event-block-text { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.member-event-request { margin: 0; padding: 12px 0; border-block: 1px solid var(--rule); background: transparent; font-weight: 700; }
.member-event-payment { padding: 12px 0; border-block: 1px solid var(--rule); background: transparent; }
.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: var(--sp-2) var(--sp-3); border: 1px solid var(--vermilion); background: var(--vermilion); color: white; font: inherit; font-weight: 800; cursor: pointer; }
.member-event-calendar { margin: 0 0 18px; padding: 12px 0; border-block: 1px solid var(--rule); }
.member-event-calendar h2 { margin: 0 0 8px; font-size: 1rem; }
.member-event-calendar-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.member-event-calendar-links .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); text-decoration: none; }
.member-event-checkin { margin: 0 0 18px; padding: 14px 0; border-block: 1px solid var(--rule); }
.member-event-checkin h2 { margin: 0 0 8px; font-size: 1.2rem; }
.member-event-checkin p { margin: 6px 0; }
.member-event-checkin-qr { width: min(220px, 100%); margin: 12px auto; padding: 10px; background: #fff; }
.member-event-checkin-qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.member-event-checkin-admin { max-width: 640px; }
.member-event-checkin-admin dl { margin: 18px 0; border-top: 1px solid var(--rule); }
.member-event-checkin-admin dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.member-event-checkin-admin dt { color: var(--muted); }
.member-event-checkin-admin dd { margin: 0; font-weight: 700; }
/* The operator's reader on the day (admin only) and the links to it. */
.member-event-operator-links, .member-event-checkin-next { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.member-event-operator-links .member-admin-secondary, .member-event-checkin-next .member-admin-secondary, .member-event-scan .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; }
.member-event-checkin-done { margin: 12px 0; font-size: 1.2rem; font-weight: 800; }
.member-event-scan { max-width: 640px; }
.member-event-scan header p:last-child { font-weight: 700; }
.member-event-scan-view { position: relative; overflow: hidden; aspect-ratio: 1; width: min(100%, 420px); margin: 0 auto; background: #000; }
.member-event-scan-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-event-scan-frame { position: absolute; inset: 18%; border: 3px solid #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.member-event-scan-status { min-height: 1.6em; margin: 10px 0; text-align: center; font-weight: 700; }
.member-event-scan-reader .member-primary-action { display: flex; width: min(100%, 420px); margin: 0 auto 8px; }
.member-event-scan-reader .member-primary-action[hidden] { display: none; }
.member-event-scan-list { margin-top: 24px; }
.member-event-scan-list h2 { margin: 0 0 8px; font-size: 1.1rem; }
.member-event-scan-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.member-event-scan-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.member-event-scan-name { display: grid; gap: 2px; min-width: 0; }
.member-event-scan-name small { color: var(--muted); }
.member-event-scan-list form { margin: 0; flex: none; }
.member-event-scan-state { flex: none; color: var(--muted); font-weight: 700; }
.member-event-scan-state.is-done { color: var(--ink); }
.member-event-checkin-admin form { margin-top: 18px; }
.member-event-checkin-admin button { min-height: 52px; }

/* Event page v2: hero, the day's flow, then one short form. Paper, ink and one vermilion. */
.member-event-page { max-width: 640px; }
.ev-hero { padding: 8px 0 22px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.ev-hero .member-event-date { margin: 0 0 6px; color: var(--vermilion-text); font-weight: 800; letter-spacing: .02em; }
.ev-hero h1 { margin: 0; font-size: clamp(1.9rem, 7.4vw, 2.6rem); line-height: 1.22; letter-spacing: -.03em; word-break: auto-phrase; }
.ev-lead { margin: 12px 0 0; font-size: 1.05rem; line-height: 1.7; word-break: auto-phrase; }
.ev-deadline { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.ev-deadline strong { color: var(--ink); }
.ev-flow { margin: 22px 0 18px; }
.ev-flow h2, .ev-form-title { margin: 0 0 12px; font-size: 1.3rem; letter-spacing: -.02em; }
.ev-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.ev-step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ev-step-time { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; }
.ev-step-body { display: grid; gap: 8px; min-width: 0; }
.ev-step-body > * { margin: 0; }
.ev-step-tag { color: var(--vermilion-text); font-size: .82rem; font-weight: 800; }
.ev-step h3 { font-size: 1.12rem; line-height: 1.4; }
.ev-step-body > p { line-height: 1.7; }
.ev-place { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ev-place span { flex-basis: 100%; }
.ev-place a, .ev-step a { color: var(--blue-text); font-weight: 700; }
.ev-fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.ev-fee span { color: var(--muted); font-size: .9rem; }
.ev-fee strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ev-fee em { flex-basis: 100%; font-style: normal; font-size: .9rem; }
.ev-step .member-event-request { font-size: .92rem; }
.member-event-page > .member-event-cancellation { margin: 0 0 26px; font-size: .9rem; line-height: 1.6; }
.member-event-page .member-event-form { padding-top: 22px; border-top: 2px solid var(--ink); }
.ev-quick-facts { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ev-quick-facts p { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; margin: 0; padding: 9px 0; }
.ev-quick-facts strong { color: var(--muted); font-size: var(--fs-note); }
.ev-flow-details,
.ev-step-details,
.member-event-inline-details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ev-flow-details > summary,
.ev-step-details > summary,
.member-event-inline-details > summary { min-height: 48px; padding: 13px 0; color: var(--blue-text); font-weight: 800; cursor: pointer; list-style: none; }
.ev-flow-details > summary::-webkit-details-marker,
.ev-step-details > summary::-webkit-details-marker,
.member-event-inline-details > summary::-webkit-details-marker { display: none; }
.ev-flow-details > summary::before,
.ev-step-details > summary::before,
.member-event-inline-details > summary::before { content: "+"; display: inline-block; width: 22px; color: var(--vermilion-text); }
.ev-flow-details[open] > summary::before,
.ev-step-details[open] > summary::before,
.member-event-inline-details[open] > summary::before { content: "−"; }
.ev-flow-details > .ev-steps { border-top: 0; }
.ev-step-details { border: 0; }
.ev-step-details > summary { padding: 0 0 10px; color: var(--ink); }
.ev-step-details .ev-step-body { padding: 0 0 12px; }
.member-event-inline-details { border-color: transparent; }
.member-event-inline-details > summary { min-height: 40px; padding: 0; font-size: var(--fs-note); }
.member-event-inline-details .member-event-hint { padding: 0 0 10px 22px; }
.ev-cards-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.ev-cards-row .member-event-card > span { min-height: 52px; padding: 10px 12px; }
.ev-sub-question { margin: 8px 0 0; font-weight: 800; }
.member-event-form .member-event-step[data-event-when-dinner][hidden] { display: none !important; }
.member-event-guest-details { display: grid; gap: 12px; margin-top: 12px; }
.member-event-guest-details[hidden] { display: none; }
@media (max-width: 420px) {
  .ev-step { grid-template-columns: 1fr; gap: 6px; }
  .ev-cards-row { grid-auto-flow: row; grid-template-columns: 1fr; }
}
.ev-cards-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.ev-cards-row .member-event-card > span { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 48px; padding: 10px 6px; }
.ev-cards-row .member-event-card > span::before { display: none; }
.ev-cards-row .member-event-card input:checked + span { background: var(--inverse-bg); color: var(--inverse-ink); border-color: var(--ink); box-shadow: none; }
.ev-cards-row .member-event-card b { white-space: nowrap; }
.ev-mini-schedule { display: grid; gap: 6px; margin: 0; padding: 10px 12px; list-style: none; background: var(--paper-lifted); border: 1px solid var(--rule); }
.ev-mini-schedule li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.ev-mini-schedule b { font-variant-numeric: tabular-nums; }
.ev-advisor { color: var(--muted); font-size: .9rem; }
.ev-step .member-event-request { font-size: 1rem; }

/* Home v2: the operator's word, your turn, this month, then learning, people, asking and tools. */
.home-v2 { display: grid; gap: 22px; max-width: 1080px; margin: 0 auto; }
.home-hello { display: grid; gap: 6px; padding: 6px 0 18px; border-bottom: 2px solid var(--ink); }
.home-hello-name { margin: 0; color: var(--muted); font-size: .95rem; }
.home-hello-message { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 700; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; }
.home-hello-from { margin: 0; color: var(--muted); font-size: .85rem; }
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.home-column { display: grid; gap: 22px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .home-columns { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; } }

.home-turn { border: 2px solid var(--ink); background: var(--paper-lifted); }
.home-turn h2 { margin: 0; padding: 9px 14px; background: var(--inverse-bg); color: var(--inverse-ink); font-size: .95rem; letter-spacing: .06em; }
.home-turn ol { margin: 0; padding: 0; list-style: none; }
.home-turn li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-top: 1px solid var(--rule); }
.home-turn li:first-child { border-top: 0; }
.home-turn li > div { display: grid; gap: 2px; min-width: 0; }
.home-turn li strong { font-size: 1.02rem; line-height: 1.45; }
.home-turn li span { color: var(--muted); font-size: .85rem; }
.home-turn li span.home-due { color: var(--vermilion-text); font-weight: 800; }
.home-turn form { margin: 0; }
.home-turn-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--ink); background: var(--paper-lifted); color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.home-turn-button.is-primary { border-color: var(--vermilion); background: var(--vermilion); color: var(--on-fill); }
.home-turn-dismiss { padding: 0 14px 12px; text-align: right; }
.home-turn-dismiss button { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-ui); text-decoration: underline; cursor: pointer; }

.home-month h2, .home-section h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.home-month ol { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.home-month li a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.home-month li a:hover strong { text-decoration: underline; }
.home-month-date { display: grid; align-content: start; }
.home-month-date b { font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.home-month-date small { color: var(--muted); font-size: .78rem; }
.home-month-body { display: grid; gap: 3px; min-width: 0; }
.home-month-body strong { font-size: 1rem; line-height: 1.45; }
.home-month-body > small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.home-month-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: .82rem; }
.home-chip { display: inline-block; padding: 1px 8px; border: 1px solid currentColor; font-size: .78rem; font-style: normal; font-weight: 800; }
.home-chip.is-red { color: var(--vermilion-text); }
.home-chip.is-ok { color: var(--ok-text); }
.home-chip.is-blue { color: var(--blue-text); }
.home-chip.is-muted { color: var(--muted); }

.home-section { display: grid; gap: 10px; min-width: 0; }
.home-section > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-section > header a { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue-text); font-size: var(--fs-note); font-weight: 800; text-decoration: none; }
.home-learn-cards { display: grid; gap: 0; overflow: visible; border-top: 1px solid var(--rule); }
.home-learn-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.home-learn-card:hover strong { text-decoration: underline; }
.home-learn-thumb { display: block; width: 88px; height: 54px; overflow: hidden; background: var(--paper-deep); }
.home-learn-thumb .member-home-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-learn-body { display: grid; gap: 2px; min-width: 0; }
.home-learn-card strong { font-size: .95rem; line-height: 1.45; }
.home-learn-label { color: var(--vermilion-text); font-size: .76rem; font-weight: 800; }
.home-learn-meta { color: var(--muted); font-size: .76rem; }
.home-learn-progress { display: block; width: 100%; height: 3px; margin: 0 0 1px; background: var(--paper-deep); }
.home-learn-progress i { display: block; height: 100%; background: var(--vermilion); }

.home-feed { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.home-feed a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; line-height: 1.55; }
.home-feed a span { color: var(--muted); font-size: .8rem; }
.home-subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0 0; font-size: .95rem; }
.home-subhead a { color: var(--blue-text); font-size: .82rem; text-decoration: none; }
.home-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--vermilion); vertical-align: middle; }
.home-quiet { margin: 0; color: var(--muted); font-size: .9rem; }
.home-quiet a { color: var(--blue-text); font-weight: 800; }

.home-ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.home-ask a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "img title" "img note"; column-gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--ink); background: var(--paper-lifted); color: var(--ink); text-decoration: none; }
.home-ask a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "note"; }
.home-ask img { grid-area: img; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.home-ask strong { grid-area: title; }
.home-ask span { grid-area: note; color: var(--muted); font-size: .82rem; }
.home-notes summary { color: var(--blue-text); font-size: .88rem; font-weight: 800; cursor: pointer; }

.home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-service { display: grid; min-width: 0; min-height: 86px; gap: 6px; place-items: center; padding: 9px 6px; border: 1px solid var(--rule); background: var(--paper-lifted); color: var(--ink); text-align: center; text-decoration: none; }
.home-service:hover strong { text-decoration: underline; }
.home-service img { width: 44px; height: 44px; object-fit: contain; }
.home-service strong { max-width: 100%; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
/* On phones the two columns dissolve so the order is: word, your turn, this month, learn, people, ask, tools. */
@media (max-width: 899px) {
  .home-columns, .home-column { display: contents; }
  .home-v2 > * { order: 10; }
  .home-v2 > .home-hello { order: 0; }
  #member-turn { order: 1; }
  #member-month { order: 2; }
  #member-learn { order: 3; }
  #member-people { order: 4; }
  #meeting { order: 5; }
  .home-v2 > #services { order: 6; }
}

/* ===== Type scale (2026-10-03): six steps, used by role across every member screen. =====
   note 13/19 400 · ui 14/20 700 · body 16/26 400 · title 18/26 700 · section 22→24/30→32 700 · page 28→32/36→40 700 */
:root {
  --fs-note: 13px; --lh-note: 19px;
  --fs-ui: 14px; --lh-ui: 20px;
  --fs-body: 16px; --lh-body: 26px;
  --fs-title: 18px; --lh-title: 26px;
  --fs-section: 22px; --lh-section: 30px;
  --fs-page: 28px; --lh-page: 36px; --fs-burst: 96px;
}
@media (min-width: 900px) { :root { --fs-section: 24px; --lh-section: 32px; --fs-page: 32px; --lh-page: 40px; } }

/* home */
.home-month h2, .home-section h2 { font-size: var(--fs-section) !important; line-height: var(--lh-section); }
.home-turn h2 { font-size: var(--fs-ui) !important; }
.home-turn li strong, .home-month-body strong { font-size: var(--fs-body) !important; line-height: 24px; }
.home-turn li span, .home-month-body > small, .home-month-meta, .home-feed a span, .home-learn-card small, .home-service small, .home-hello-name, .home-hello-from { font-size: var(--fs-note) !important; }
.home-learn-card strong, .home-feed a { font-size: var(--fs-body) !important; }
.home-learn-label, .home-chip { font-size: 12px !important; }
.home-section > header a { font-size: var(--fs-ui) !important; }
.home-service strong, .home-ask strong { font-size: var(--fs-ui) !important; }

/* page titles stay visible on phones (notifications, profile) */
@media (max-width: 899px) { body:not(.community-workspace) .community-profile-page .community-page-heading h1 { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important; margin: 4px 0 12px !important; font-size: var(--fs-page) !important; line-height: var(--lh-page) !important; } }

/* forms: labels 14 bold, notes 13 */
.community-profile-form label > span:first-child, .community-form label > span:first-child { font-size: var(--fs-ui) !important; }
.community-profile-form small, .community-form small { font-size: var(--fs-note) !important; }

/* bottom tabs */
.member-mobile-nav a span { font-size: 12px !important; }

/* learn: a failed thumbnail hides cleanly */
[data-archive-thumbnail][hidden] { display: none !important; }
@media (max-width: 899px) { .member-updates-list li { display: grid !important; grid-template-columns: 1fr !important; gap: 6px; } .member-updates-list li > form, .member-updates-list li > span { justify-self: start; } .member-updates-list button { min-height: 44px; font-size: var(--fs-ui); } }
.ev-answer { display: grid; gap: 12px; margin: 0 0 24px; padding: 18px; border: 2px solid var(--ink); background: var(--paper-lifted); }
.ev-answer h2 { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); }
.ev-answer dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.ev-answer dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ev-answer dt { color: var(--muted); font-size: var(--fs-ui); }
.ev-answer dd { margin: 0; font-size: var(--fs-body); font-weight: 700; }
.ev-change > summary { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper-lifted); font-size: var(--fs-ui); font-weight: 800; cursor: pointer; list-style: none; }
.ev-change > summary::-webkit-details-marker { display: none; }
.ev-change[open] > summary { margin-bottom: 8px; }
.ev-change .member-event-form { border-top: 0 !important; padding-top: 8px !important; }
.home-steps { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.home-steps > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.home-steps h2 { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); }
.home-steps-count { color: var(--vermilion-text); font-size: var(--fs-ui); font-weight: 800; font-variant-numeric: tabular-nums; }
.home-steps-bar { display: block; height: 6px; background: var(--paper-deep); }
.home-steps-bar i { display: block; height: 100%; background: var(--vermilion); }
.home-steps ol { margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.home-steps li > div { display: grid; gap: 2px; min-width: 0; }
.home-steps li strong { font-size: var(--fs-body); }
.home-steps li span { color: var(--muted); font-size: var(--fs-note); }
.home-steps .home-turn-dismiss { padding: 0; }
@media (max-width: 899px) { #member-first-steps { order: 1; } }

/* ===== Golden ratio system (2026-10-03) =====
   Space: Fibonacci steps, each ≈1.618× the last: 5 · 8 · 13 · 21 · 34 · 55 · 89.
   Type: body 16 with line-height 26 (16×1.618); steps of √1.618 (≈1.272): 13 · 16 · 20 · 26 · 33.
   Layout: main column : side column = 1.618 : 1. */
:root {
  --sp-1: 5px; --sp-2: 8px; --sp-3: 13px; --sp-4: 21px; --sp-5: 34px; --sp-6: 55px; --sp-7: 89px;
  --fs-note: 13px; --lh-note: 21px;
  --fs-ui: 14px; --lh-ui: 21px;
  --fs-body: 16px; --lh-body: 26px;
  --fs-title: 20px; --lh-title: 26px;
  --fs-section: 20px; --lh-section: 26px;
  --fs-page: 26px; --lh-page: 34px;
  --phi: 1.618;
}
@media (min-width: 900px) { :root { --fs-section: 26px; --lh-section: 34px; --fs-page: 33px; --lh-page: 42px; } }

/* home: 1.618 : 1 columns, Fibonacci gaps */
.home-v2 { gap: var(--sp-5) !important; padding-block: var(--sp-4) var(--sp-6); }
.home-hello { gap: var(--sp-2) !important; padding: 0 0 var(--sp-4) !important; }
.home-hello-message { font-size: var(--fs-page) !important; line-height: var(--lh-page) !important; }
.home-columns, .home-column { gap: var(--sp-5) !important; }
@media (min-width: 900px) { .home-columns { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr) !important; column-gap: var(--sp-6) !important; } .home-v2 { gap: var(--sp-6) !important; } .home-column { gap: var(--sp-6) !important; } }
.home-section, .home-month { display: grid; gap: var(--sp-3) !important; }
.home-month ol { margin-top: 0 !important; }
.home-turn h2 { padding: var(--sp-2) var(--sp-4) !important; }
.home-turn li, .home-steps li { padding: var(--sp-3) var(--sp-4) !important; gap: var(--sp-3) !important; }
.home-steps { padding: var(--sp-4) !important; gap: var(--sp-3) !important; }
.home-steps li { padding-inline: 0 !important; }
.home-turn-dismiss { padding: 0 var(--sp-4) var(--sp-3) !important; }
.home-month li a { padding: var(--sp-3) 0 !important; gap: var(--sp-3) !important; grid-template-columns: var(--sp-6) minmax(0, 1fr) !important; }
.home-feed a { padding: var(--sp-3) 0 !important; gap: var(--sp-1) !important; }
.home-learn-cards { gap: var(--sp-3) !important; }
.home-learn-card { gap: var(--sp-2) !important; padding-bottom: var(--sp-3) !important; }
.home-learn-card > * { margin-inline: var(--sp-3) !important; }
.home-learn-card > img, .home-learn-card > .member-home-thumbnail, .home-learn-card > picture { margin: 0 !important; }
.home-learn-card.is-text { padding-top: var(--sp-3) !important; }
.home-ask { gap: var(--sp-3) !important; }
.home-ask a { padding: var(--sp-3) var(--sp-4) !important; column-gap: var(--sp-3) !important; }
.home-services { gap: var(--sp-2) !important; }
.home-service { padding: var(--sp-3) !important; column-gap: var(--sp-3) !important; }
.home-subhead { margin-top: var(--sp-4) !important; }

/* event page */
.member-event-page { max-width: 610px !important; }
.ev-hero { padding: var(--sp-3) 0 var(--sp-4) !important; margin-bottom: var(--sp-4) !important; }
.ev-hero h1 { font-size: var(--fs-page) !important; line-height: var(--lh-page) !important; }
.ev-lead { margin-top: var(--sp-3) !important; font-size: var(--fs-body) !important; line-height: var(--lh-body) !important; }
.ev-deadline { margin-top: var(--sp-3) !important; font-size: var(--fs-ui) !important; }
.ev-flow { margin: var(--sp-5) 0 var(--sp-4) !important; }
.ev-flow h2, .ev-form-title { margin-bottom: var(--sp-3) !important; font-size: var(--fs-section) !important; line-height: var(--lh-section) !important; }
.ev-step { padding: var(--sp-4) 0 !important; gap: var(--sp-3) var(--sp-4) !important; grid-template-columns: var(--sp-7) minmax(0, 1fr) !important; }
.ev-step-body { gap: var(--sp-2) !important; }
.ev-step h3 { font-size: var(--fs-title) !important; line-height: var(--lh-title) !important; }
.ev-step-body > p { font-size: var(--fs-body); line-height: var(--lh-body); }
.ev-mini-schedule { padding: var(--sp-3) !important; gap: var(--sp-2) !important; }
.ev-answer { padding: var(--sp-4) !important; gap: var(--sp-3) !important; margin-bottom: var(--sp-5) !important; }
.ev-answer dl div { padding: var(--sp-2) 0 !important; gap: var(--sp-3) !important; }
.member-event-payment { padding: var(--sp-3) var(--sp-4) !important; margin: var(--sp-4) 0 !important; gap: var(--sp-2) !important; }
.member-event-page > .member-event-cancellation { margin-bottom: var(--sp-5) !important; padding: var(--sp-3) var(--sp-4) !important; }
.member-event-form .member-event-step { padding: var(--sp-4) 0 !important; gap: var(--sp-3) !important; }
.member-event-cards { gap: var(--sp-2) !important; }
.member-event-card > span { padding: var(--sp-3) !important; column-gap: var(--sp-3) !important; }
.member-event-submit { padding-top: var(--sp-4) !important; gap: var(--sp-3) !important; }
@media (max-width: 420px) { .ev-step { grid-template-columns: 1fr !important; gap: var(--sp-1) !important; } }

/* section headings across member pages follow the same step */
.community-page-heading h1, .member-experience-page > header h1 { font-size: var(--fs-page) !important; line-height: var(--lh-page) !important; }

/* forms: the label is 14 bold, the note beside it 13 regular */
.community-profile-form label, .community-summary-form label, .community-report label { font-size: var(--fs-ui) !important; font-weight: 700 !important; gap: var(--sp-2) !important; }
.community-profile-form label > span:first-child, .community-profile-form label > span { font-size: var(--fs-note) !important; font-weight: 400 !important; }

/* home: progress bar width by class (the page forbids inline styles) */
.home-steps-bar i { width: 0; }
.home-steps-bar.is-1 i { width: 33.333%; }
.home-steps-bar.is-2 i { width: 66.666%; }
.home-steps-bar.is-3 i { width: 100%; }
.home-learn-progress i { width: var(--progress, 0%); }
/* the operator's word is a quiet lead, not the loudest thing on the page */
.home-hello-message { font-size: var(--fs-title) !important; line-height: var(--lh-title) !important; font-weight: 700 !important; }
.home-learn-card strong { line-height: var(--lh-body) !important; }
.home-feed a { line-height: var(--lh-body) !important; }

/* event: remaining off-scale values */
.ev-fee strong { font-size: var(--fs-section) !important; }
.member-event-cancellation { font-size: var(--fs-note) !important; line-height: var(--lh-note) !important; }
.member-event-form .member-event-step legend { font-size: var(--fs-title) !important; line-height: var(--lh-title); }
.member-event-pay-button { padding: var(--sp-2) var(--sp-4) !important; min-height: 44px; }

/* updates page */
.member-updates-list h2 { font-size: var(--fs-title) !important; line-height: var(--lh-title) !important; }
.member-updates-list li { padding-block: var(--sp-4) !important; gap: var(--sp-3) !important; }
.member-updates-list button { min-height: 44px; }

/* header and navigation text */
.site-nav a { font-size: var(--fs-ui) !important; }
progress.home-learn-progress { display: block; width: 100%; height: 4px; margin: 0 !important; border: 0; appearance: none; -webkit-appearance: none; background: var(--paper-deep); color: var(--vermilion-text); }
progress.home-learn-progress::-webkit-progress-bar { background: var(--paper-deep); }
progress.home-learn-progress::-webkit-progress-value { background: var(--vermilion); }
progress.home-learn-progress::-moz-progress-bar { background: var(--vermilion); }

/* Member hub pages */
.member-b-page { width: min(100% - 32px, 980px); margin: 0 auto; padding: 32px 0 96px; }
.member-b-head { display: flex; flex-wrap: wrap; align-items: flex-end; width: 100%; height: 40px; min-height: 40px; box-sizing: border-box; gap: 4px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.member-b-page.member-b-notifications-page { padding-top: 32px; }
.member-b-page.member-b-learn-page { padding-top: 32px; }
.member-b-head h1 { margin: 0; padding-bottom: 10px; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; }
.member-b-head .member-b-tabs { margin: 0; border-bottom: 0; }
.member-b-head .member-b-tabs a { padding: 5px 10px; }
.member-b-search { display: grid; gap: 8px; margin-bottom: 16px; }
.member-b-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.member-b-search div { display: flex; gap: 8px; }
.member-b-search input, .member-b-form input, .member-b-form textarea, .member-b-settings-content input, .member-b-meeting-note input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper-lifted); color: var(--ink); font: inherit; box-sizing: border-box; }
.member-b-search .button { min-width: 126px; }
.member-b-filters, .member-b-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; border-bottom: 1px solid var(--rule); }
.member-b-filters a, .learn-tabs a, .member-b-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink); font-size: .87rem; font-weight: 800; text-decoration: none; }
.member-b-filters a[aria-current="page"], .learn-tabs a[aria-current="page"], .member-b-tabs a[aria-current="page"] { border-bottom: 3px solid var(--vermilion); color: var(--vermilion-text); }
.member-b-filters span, .learn-tabs span, .member-b-tabs span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; background: var(--paper-deep); color: var(--muted); font-size: var(--fs-note); }
.member-b-shelf, .member-b-learn-list, .member-b-card, .member-b-notice-list, .member-b-meeting-rule { margin-top: 14px; padding: 24px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-b-shelf > header, .member-b-learn-list > header, .member-b-notice-list > header, .member-b-meeting-notes > header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 16px; }
.member-b-shelf h2, .member-b-learn-list h2, .member-b-notice-list h2, .member-b-meeting-notes h2, .member-b-card h2 { margin: 0; font-size: 1.4rem; }
.member-b-shelf ol, .member-b-learn-list ol, .member-b-notice-list ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.member-b-learn-row, [data-member-b-learn-row], .member-b-notice-row { border-top: 1px solid var(--rule); }
.member-b-learn-row .learn-thumb-label, [data-member-b-learn-row] .learn-thumb-label { display: none; }
.member-b-learn-row a, [data-member-b-learn-row] a, .member-b-notice-row a, .member-b-notice-row button { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 16px 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; box-sizing: border-box; }
.member-b-learn-row a:hover, [data-member-b-learn-row] a:hover, .member-b-notice-row a:hover { color: var(--vermilion-text); }
.member-b-learn-date, .member-b-notice-date { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.member-b-learn-copy, .member-b-notice-row a > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.member-b-learn-copy strong, .member-b-notice-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.member-b-learn-type, .member-b-notice-kind { color: var(--blue-text); font-size: .72rem; font-weight: 900; }
.member-b-notice-row b { color: var(--vermilion-text); font-size: var(--fs-note); white-space: nowrap; }
.member-b-learn-state { color: var(--vermilion-text); font-size: var(--fs-note); white-space: nowrap; }
/* 未読の点（note・LINE・Slack の未読の点の型）: まだ見ていない新しいものにだけ。見たものには何も付けない */
.learning-unread { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); }
/* 新着の札: 公開から7日以内でまだ開いていない記事・セミナーにだけ。開いたら消える */
.member-b-learn-new { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--vermilion); color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
/* 動画の長さは見出しとは別の行に（「（40秒の動画）再生 0:40」が一塊に見えないように） */
.member-b-learn-duration { display: block; color: var(--muted); font-size: var(--fs-note); line-height: var(--lh-note); }
.member-b-result-count, .member-b-empty, .member-b-muted { color: var(--muted); line-height: 1.7; }
.member-b-pagination { display: flex; align-items: center; gap: var(--sp-3); color: var(--muted); font-size: var(--fs-note); }
/* 「もっと見る」「前へ」は 44px 以上（WCAG 2.5.5、Apple HIG 44pt） */
.member-b-pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); font-size: var(--fs-ui); }
.member-b-pagination a, .member-b-inline-link, .member-b-profile-next a, .member-b-settings-content a { color: var(--vermilion-text); font-weight: 800; }
.member-b-learn-page .member-b-shelf, .member-b-learn-page .member-b-learn-list { padding: 0; border: 0; background: transparent; }
.member-b-learn-page .member-b-shelf > header, .member-b-learn-page .member-b-learn-list > header { align-items: center; margin-bottom: 4px; }
.member-b-learn-page .member-b-shelf h2, .member-b-learn-page .member-b-learn-list h2 { font-size: 1rem; }
.member-b-learn-page .member-b-learn-row a, .member-b-learn-page [data-member-b-learn-row] a { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; }
.member-b-learn-page .member-b-learn-date { display: grid; justify-items: center; line-height: 1.05; }
.member-b-learn-page .member-b-learn-date b { color: var(--ink); font-size: 1.05rem; }
.member-b-learn-page .member-b-learn-date small { font-size: var(--fs-note); }
.member-b-learn-month { padding: 14px 0 4px; border-top: 1px solid var(--rule); color: var(--vermilion-text); font-size: .78rem; font-weight: 900; }
.member-b-learn-month + .member-b-learn-row { border-top: 0; }
.member-b-first-shelf .member-b-first-row { border-top: 1px solid var(--rule); }
.member-b-first-shelf .member-b-first-row a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.member-b-notifications-page .member-b-notice-list-plain { margin-top: 0; padding: 0; border: 0; background: transparent; }
.member-b-notifications-page .member-b-notice-list-plain > ol { border-top: 1px solid rgb(var(--ink-rgb) / .12); }
.member-b-notifications-page .member-b-notice-list-plain .notification-item { border-bottom: 1px solid rgb(var(--ink-rgb) / .12); }
.member-b-notice-row.is-read { opacity: .72; }
.member-b-notice-read-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 14px; }
.member-b-notice-read-form button { padding: 7px 12px; border: 1px solid var(--blue-pencil); background: transparent; color: var(--blue-text); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.member-b-notice-read-form button[hidden] { display: none; }
.member-b-notice-read-form [data-member-updates-read-status] { margin: 0; color: var(--muted); font-size: .8rem; }
.member-b-notice-read-form [data-state="error"] { color: var(--vermilion-text); font-weight: 800; }
.member-b-notice-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.member-b-notice-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; color: var(--muted); font-size: .75rem; text-decoration: none; }
.member-b-notice-filters a[aria-current="page"] { color: var(--vermilion-text); font-weight: 800; }
.member-b-notice-filters span { color: inherit; font-variant-numeric: tabular-nums; }
.member-b-form { display: grid; gap: 18px; }
.member-b-form .member-b-card { display: grid; gap: 16px; }
.member-b-form label, .member-b-settings-content label, .member-b-meeting-note label { display: grid; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-note); font-weight: 800; }
.member-b-settings-content fieldset label { min-height: 44px; align-items: center; }
.member-b-settings-content input[type="radio"] { width: 24px; height: 24px; margin: 0; }
.member-b-profile-identity { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.member-b-profile-identity > div { display: grid; gap: 4px; }
.member-b-profile-identity span { color: var(--muted); font-size: .82rem; }
.member-b-avatar { display: grid; width: 56px; height: 56px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--paper-deep); color: var(--blue-text); font-weight: 900; }
.member-b-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-b-private summary, .member-b-settings-item summary { cursor: pointer; font-size: 1rem; font-weight: 900; }
.member-b-private[open] { display: grid; gap: 16px; }
.member-b-profile-next { display: flex; justify-content: space-between; align-items: center; }
.member-b-settings-list { display: grid; gap: 10px; }
.member-b-settings-item { border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-b-settings-item summary { padding: 20px 22px; list-style-position: inside; }
.member-b-settings-content { display: grid; gap: 16px; padding: 0 22px 22px; }
.member-b-settings-content fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.member-b-settings-content fieldset label { display: flex; align-items: start; gap: 12px; padding: 12px; border: 1px solid var(--rule); color: var(--ink); }
.member-b-settings-content fieldset label span { display: grid; gap: 4px; }
.member-b-settings-content fieldset input { width: 18px; min-height: 18px; margin-top: 2px; }
.member-b-storage-summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px; background: var(--paper-deep); }
.member-b-meeting-rule { display: grid; gap: 12px; }
.member-b-meeting-rule strong { font-size: clamp(1.4rem, 4vw, 2rem); }
.member-b-meeting-rule p { max-width: 42em; margin: 0; color: var(--muted); line-height: 1.8; }
.member-b-meeting-rule .button { justify-self: start; }
.member-b-meeting-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.member-b-meeting-notes > header { grid-column: 1 / -1; display: grid; justify-content: initial; align-items: initial; }
.member-b-meeting-note { display: grid; align-content: start; gap: 14px; padding: 20px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-b-meeting-note h2 { min-height: 2.8em; font-size: 1.1rem; }
.member-b-meeting-note ul { min-height: 5em; margin: 0; padding-left: 1.2em; line-height: 1.7; }
.member-b-meeting-note form { display: grid; gap: 10px; }
.member-b-admin-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; padding: 10px 0; border-bottom: 1px solid var(--rule); background: transparent; }
.member-b-admin-banner span { color: var(--vermilion-text); font-weight: 900; letter-spacing: .08em; }
.member-b-admin-banner a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: var(--fs-ui); font-weight: 800; }
.member-b-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member-b-admin-card { display: grid; gap: 10px; min-height: 180px; padding: 22px; border: 1px solid var(--rule); background: var(--paper-lifted); color: var(--ink); text-decoration: none; }
.member-b-admin-card:hover { border-color: var(--vermilion); }
.member-b-admin-card-index { color: var(--vermilion-text); font-size: 1.4rem; }
.member-b-admin-card h2 { margin: 0; font-size: 1.15rem; }
.member-b-admin-page > .member-b-note { margin-top: 22px; }
.member-b-settings-item#display .member-pattern-copy-mobile { display: none; }
.member-b-settings-item#display .member-pattern-copy-desktop { display: grid; }

@media (max-width: 700px) {
  .member-b-page { width: min(100% - 24px, 980px); padding-top: 24px; padding-bottom: 112px; }
  .member-b-page.member-b-learn-page { padding-top: 24px; }
  .member-b-page.member-b-notifications-page { padding-top: 24px; }
  .member-b-shelf, .member-b-learn-list, .member-b-card, .member-b-notice-list, .member-b-meeting-rule { padding: 18px; }
  .member-b-search div { display: flex; }
  .member-b-search .button { width: auto; min-width: 0; padding-inline: 16px; white-space: nowrap; }
  .member-b-filters, .learn-tabs { flex-wrap: nowrap; gap: 2px; overflow-x: auto; }
  .member-b-filters a, .learn-tabs a { flex: none; padding: 10px 8px; gap: 5px; }
  .member-b-learn-row a, [data-member-b-learn-row] a { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 4px 10px; padding: 7px 0; }
  .member-b-learn-page .member-b-learn-copy { display: block; }
  .member-b-learn-page .member-b-learn-type { margin-right: 6px; }
  .member-b-learn-page .member-b-learn-copy strong { display: inline; font-size: .88rem; white-space: normal; }
  .member-b-meeting-notes, .member-b-admin-grid { grid-template-columns: 1fr; }
  .member-b-admin-card { min-height: 0; }
  .member-b-settings-item#display .member-pattern-copy-mobile { display: grid; }
  .member-b-settings-item#display .member-pattern-copy-desktop { display: none; }
}

/* Member hub visual alignment */
.member-b-learn-page .learn-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.member-b-learn-page .learn-tabs::-webkit-scrollbar { display: none; }
.member-b-learn-page .learn-tabs a { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 0; background: transparent; }
.member-b-learn-page .learn-tabs a[aria-current="page"] { border-bottom: 3px solid var(--vermilion); color: var(--vermilion-text); }
.member-b-learn-page .learn-tabs span { color: var(--ink); }

.member-b-notifications-page .member-b-notice-row a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.member-b-notifications-page .member-b-notice-row .member-b-notice-date { grid-column: 1; grid-row: 1; }
.member-b-notifications-page .member-b-notice-row a > span:nth-child(2) { grid-column: 1; grid-row: 2; gap: 5px; }
.member-b-notifications-page .member-b-notice-row a > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.member-b-notifications-page .member-b-notice-row strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.member-b-notifications-page .member-b-notice-row small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }

.member-b-profile-identity { align-items: flex-start; gap: 20px; }
.member-b-profile-identity .member-avatar-editor { display: grid; gap: 8px; width: min(100%, 160px); max-width: 160px; padding: 0; border: 0; }
.member-b-profile-identity .member-avatar-editor .member-avatar-current { display: grid; width: 56px; height: 56px; }
.member-b-profile-identity .member-avatar-editor .member-avatar-picker { width: max-content; min-height: 40px; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.member-b-profile-identity .member-avatar-editor [data-avatar-result] { margin: 0; }

/* Home order: your turn, first steps, learning, people, this month, updates, tools. */
@media (max-width: 899px) {
  #member-turn { order: 1 !important; }
  #member-first-steps { order: 2 !important; }
  #member-learn { order: 3 !important; }
  #member-people { order: 4 !important; }
  #member-month { order: 5 !important; }
  #member-updates { order: 6 !important; }
  #services { order: 7 !important; }
}

.member-service-page { display: grid; gap: var(--sp-5); max-width: 760px; margin: 0 auto; }
.member-service-page .member-back-link { color: var(--blue-text); font-weight: 800; text-decoration: none; }
.member-service-hero { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.member-service-section { display: grid; gap: var(--sp-3); padding: var(--sp-5) 0; border-top: 1px solid var(--rule); }
.member-service-section h2, .member-service-section p { margin: 0; }
.member-service-section .button { justify-self: start; }
.member-service-section ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--sp-2); }
.member-service-hero { display: block; margin-bottom: var(--sp-3); }
.member-service-page .community-page-heading p:last-child { color: var(--ink); }
.member-service-page p { line-height: 1.85; word-break: auto-phrase; text-wrap: pretty; }
.member-service-page h1, .member-service-page h2 { word-break: auto-phrase; text-wrap: balance; }
.member-admin-back-link { display: inline-flex; width: fit-content; margin-bottom: 12px; color: var(--blue-text); font-weight: 800; text-decoration: none; }
.learn-more { display: inline-flex; justify-content: center; margin: 18px auto 0; padding: 10px 18px; border: 1px solid var(--ink); color: var(--ink); font-weight: 800; text-decoration: none; }

/* Code opened from the email in another browser: large, easy to select, with a copy button. */
.login-link-code { margin: var(--sp-3, 13px) 0; font-size: var(--fs-body, 16px); }
.login-link-code.has-code { font-size: 2rem; font-weight: 700; letter-spacing: .2em; user-select: all; }

/* Display preference is intentionally mobile-only. PC chat keeps the existing cascade. */
.community-account-popover > .member-mobile-display-link,
.member-mobile-display-settings { display: none; }
.member-mobile-display-settings .member-pattern-copy-mobile { display: none; }
@media (max-width: 767px) {
  .community-account-popover > .member-mobile-display-link { display: flex; }
  .member-mobile-display-settings { display: grid; scroll-margin-top: var(--sp-7); }
  .member-mobile-display-settings fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
  .member-mobile-display-settings legend { font-size: var(--fs-ui); font-weight: 700; margin-bottom: var(--sp-2); }
  .member-mobile-display-settings label { display: flex; align-items: flex-start; gap: var(--sp-3); min-height: 44px; padding-block: var(--sp-3); cursor: pointer; }
  .member-mobile-display-settings input { flex: 0 0 auto; width: var(--sp-4); height: var(--sp-4); margin: var(--sp-1) 0 0; accent-color: var(--blue-text); }
  .member-mobile-display-settings label span { display: grid; gap: var(--sp-1); }
  .member-mobile-display-settings .member-pattern-copy-mobile { display: block; }
  .member-mobile-display-settings label .member-pattern-copy-mobile { display: grid; }
  .member-mobile-display-settings .member-pattern-copy-desktop { display: none; }
  .member-mobile-display-settings strong { font-size: var(--fs-ui); line-height: var(--lh-ui); }
  .member-mobile-display-settings small { color: var(--muted); font-size: var(--fs-note); line-height: var(--lh-note); }
}

/* Member-only LINE invitation: no public LP invite, no claim that mail has been sent. */
.home-line-guide { margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--rule); background: var(--paper-lifted); scroll-margin-top: var(--sp-7); }
.home-line-guide summary { min-height: 44px; display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-ui); font-weight: 700; }
.home-line-guide summary::before { content: "+"; }
.home-line-guide[open] summary::before { content: "−"; }
.home-line-guide > div { display: grid; gap: var(--sp-3); padding-top: var(--sp-2); }
.home-line-guide p { margin: 0; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.home-line-guide a { justify-self: start; }
.home-line-guide form { display: grid; justify-items: start; gap: var(--sp-2); margin: 0; }
.home-line-guide small { font-size: var(--fs-note); color: var(--muted); }
.home-line-guide .member-line-qr { width: min(180px, 100%); height: auto; justify-self: start; padding: var(--sp-2); background: var(--surface); border: 1px solid var(--rule); }
.line-link-page { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
.line-link-page .profile-section { max-width: 720px; margin-top: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--rule); background: var(--paper-lifted); }
.line-link-page .profile-section form { margin: var(--sp-3) 0; }
.line-link-page .line-link-result { max-width: 720px; padding: var(--sp-5); border: 1px solid var(--rule); background: var(--paper-lifted); }
.line-link-page .line-link-result .community-page-heading { margin-bottom: var(--sp-4); }
.line-link-page .line-link-result h1 { font-size: var(--fs-display); }
.line-link-page .line-link-date { display: grid; gap: var(--sp-1); margin: var(--sp-4) 0 0; color: var(--ink-muted); }
.line-link-page .line-link-date span { color: var(--ink); font-weight: 800; }
.line-link-page .line-link-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.line-link-page .line-link-admin { width: 100%; border-collapse: collapse; margin-top: var(--sp-4); }
.line-link-page .line-link-admin th, .line-link-page .line-link-admin td { padding: var(--sp-2); border-bottom: 1px solid var(--rule); text-align: left; font-size: var(--fs-ui); }
@media (max-width: 767px) { .line-link-page .line-link-admin { display: block; overflow-x: auto; } }

.member-reconcile-page { width: min(calc(100% - 32px), 1320px); padding-top: clamp(28px, 5vw, 58px); padding-bottom: 72px; }
.member-reconcile-page .community-page-heading { max-width: 820px; }
.member-reconcile-search { display: grid; gap: 10px; margin: 0 0 var(--sp-5); padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper-lifted); }
.member-reconcile-search label { font-size: .78rem; font-weight: 850; }
.member-reconcile-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.member-reconcile-search input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.member-reconcile-search p { margin: 0; color: var(--muted); font-size: .72rem; }
.member-reconcile-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--sp-5); }
.member-reconcile-summary > div { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.member-reconcile-summary span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.member-reconcile-summary strong { font-size: 1.35rem; }
.member-reconcile-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.member-reconcile-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.member-reconcile-table th, .member-reconcile-table td { padding: 13px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.member-reconcile-table th { background: var(--paper-deep); color: var(--muted); font-size: .68rem; font-weight: 850; white-space: nowrap; }
.member-reconcile-table tr:last-child td { border-bottom: 0; }
.member-reconcile-cards { display: none; gap: 12px; }
.member-reconcile-card { padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(24, 24, 24, .05); }
.member-reconcile-card h2 { margin: 0; font-size: 1.05rem; }
.member-reconcile-email { margin: 4px 0 16px; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.member-reconcile-card dl { display: grid; gap: 10px; margin: 0; }
.member-reconcile-card dl div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
.member-reconcile-card dt { color: var(--muted); font-size: .72rem; font-weight: 800; }
.member-reconcile-card dd { margin: 0; font-size: .78rem; overflow-wrap: anywhere; }
.member-reconcile-error, .member-reconcile-empty { margin: 0; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-lifted); color: var(--muted); }
.member-reconcile-error { color: var(--accent-text); }
@media (max-width: 767px) {
  .member-reconcile-page { width: min(calc(100% - 24px), 680px); padding-top: 24px; }
  .member-reconcile-page .community-page-heading { margin-bottom: 16px; }
  .member-reconcile-search { margin-bottom: 18px; padding: 14px; }
  .member-reconcile-summary { margin-bottom: 18px; }
  .member-reconcile-search > div { grid-template-columns: 1fr; }
  .member-reconcile-search button { width: 100%; }
  .member-reconcile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-reconcile-table-wrap { display: none; }
  .member-reconcile-cards { display: grid; }
}

/* Logo concept page v2 */
.logo-concept-body { background: var(--paper); }
.logo-concept-page { width: 100%; padding-bottom: var(--member-tab-height); overflow: hidden; }
.logo-concept-hero { background: var(--logo-orange); color: var(--on-fill); }
.logo-hero-inner { display: grid; min-height: min(690px, calc(100svh - 72px)); grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(36px, 8vw, 128px); padding-block: clamp(44px, 8vw, 100px); }
.logo-concept-hero-mark { display: grid; width: min(100%, 500px); aspect-ratio: 1; place-items: center; }
.logo-concept-hero-mark img { display: block; width: 88%; height: auto; }
.logo-concept-hero-copy { max-width: 720px; }
.logo-concept-hero-copy h1 { max-width: 9em; margin: 0; color: var(--on-fill); font-size: clamp(3.4rem, 7.2vw, 7.6rem); font-weight: 950; letter-spacing: -.1em; line-height: .98; text-wrap: balance; }
.logo-concept-hero-copy h1 span { display: block; white-space: nowrap; }
.logo-concept-hero-copy p { max-width: 38rem; margin: clamp(var(--sp-4), 4vw, calc(var(--sp-5) + var(--sp-2))) 0 0; color: var(--logo-charcoal); font-size: clamp(var(--fs-body), calc(var(--fs-body) + 1vw), var(--fs-title)); font-weight: 700; line-height: 1.85; text-wrap: pretty; }
.logo-concept-section { padding-block: clamp(76px, 11vw, 148px); }
.logo-concept-section h2 { margin: 0 0 clamp(36px, 5vw, 68px); color: var(--logo-charcoal); font-size: clamp(2.3rem, 5.3vw, 5.4rem); font-weight: 950; letter-spacing: -.09em; line-height: 1.05; text-wrap: balance; }
.logo-concept-page .heading-line { display: inline-block; max-width: 100%; word-break: keep-all; overflow-wrap: normal; }
.logo-process-section { background: var(--paper); }
.logo-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.logo-process-card { min-width: 0; }
.logo-process-card figure { display: grid; aspect-ratio: 1; margin: 0 0 26px; place-items: center; background: var(--paper-lifted); border: 1px solid rgb(var(--ink-rgb) / .18); }
.logo-process-card figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-process-copy > span { display: block; margin-bottom: var(--sp-2); color: var(--ink); font-size: var(--fs-note); font-weight: 950; letter-spacing: .14em; }
.logo-process-copy h3 { margin: 0; color: var(--logo-charcoal); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.35; }
.logo-process-copy p { max-width: 26rem; margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.85; text-wrap: pretty; }
.logo-reading-section { background: var(--paper-lifted); }
.logo-reading-layout { display: grid; width: fit-content; max-width: 100%; grid-template-columns: minmax(0, 300px) minmax(190px, 260px); gap: clamp(20px, 3vw, 42px); align-items: start; }
.logo-reading-layout article { min-width: 0; }
.logo-reading-layout figure { display: grid; margin: 0 0 28px; place-items: center; background: var(--paper); border: 1px solid rgb(var(--ink-rgb) / .12); }
.logo-reading-main figure { width: min(100%, 300px); aspect-ratio: 1; }
.logo-reading-side figure { width: min(100%, 150px); aspect-ratio: 1; }
.logo-reading-layout figure img { display: block; width: 78%; height: 78%; object-fit: contain; }
.logo-reading-layout h3 { margin: 0; color: var(--logo-charcoal); font-size: clamp(1.18rem, 2.2vw, 1.7rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.4; }
.logo-reading-layout p { max-width: 42rem; margin: 12px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.9; text-wrap: pretty; }
.logo-uses-section { background: var(--surface); }
.logo-uses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.logo-uses-grid figure { display: grid; min-width: 0; margin: 0; }
.logo-uses-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--surface); border: 1px solid rgb(var(--ink-rgb) / .18); border-radius: 18px; }
.logo-uses-grid figcaption { margin-top: 12px; color: var(--logo-charcoal); font-size: .92rem; font-weight: 800; line-height: 1.5; }
.logo-colors-section { background: var(--paper); }
.logo-color-bands { display: grid; grid-template-columns: repeat(3, 1fr); height: 18px; margin-bottom: 28px; }
.logo-color-bands .is-orange { background: var(--logo-orange); }
.logo-color-bands .is-charcoal { background: var(--logo-charcoal); }
.logo-color-bands .is-paper { background: var(--paper); border: 1px solid rgb(var(--ink-rgb) / .18); }
.logo-color-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.logo-color-roles p { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.logo-color-roles strong { color: var(--logo-charcoal); font-size: 1rem; }
.logo-color-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); margin-top: clamp(42px, 7vw, 82px); }
.logo-color-pairs figure { min-width: 0; margin: 0; }
.logo-color-pair { display: grid; min-height: 230px; place-items: center; border: 1px solid rgb(var(--ink-rgb) / .18); border-radius: 14px; }
.logo-color-pair.is-paper { background: var(--paper); }
.logo-color-pair.is-charcoal { background: var(--logo-charcoal); }
.logo-color-pair img { display: block; width: 62%; height: 62%; object-fit: contain; }
.logo-color-pairs figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.logo-color-rule { max-width: 52rem; margin: 32px 0 0; color: var(--logo-charcoal); font-size: .96rem; line-height: 1.85; }
.logo-size-samples { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; margin-top: 42px; }
.logo-size-samples figure { margin: 0; }
.logo-size-sample { display: grid; width: 112px; height: 112px; place-items: center; background: var(--paper); border: 1px solid rgb(var(--ink-rgb) / .18); border-radius: 10px; }
.logo-size-sample img { display: block; height: auto; }
.logo-size-sample img.is-24 { width: 24px; }.logo-size-sample img.is-32 { width: 32px; }.logo-size-sample img.is-48 { width: 48px; }
.logo-size-samples figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.logo-concept-closing { display: grid; min-height: 220px; place-items: center; padding: 46px 16px calc(46px + var(--member-tab-height)); background: var(--logo-charcoal); }
.logo-concept-closing a { display: inline-flex; min-height: 52px; align-items: center; gap: 16px; color: var(--on-fill); font-size: 1.1rem; font-weight: 900; text-decoration: none; }
.logo-concept-closing a:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
.logo-concept-closing img { display: block; width: 48px; height: 48px; }
.community-account-popover > .member-account-logo-link { margin-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .logo-hero-inner { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 34px; }
  .logo-concept-hero-copy h1 { font-size: clamp(3rem, 7.8vw, 5.5rem); }
  .logo-reading-layout { gap: 28px; }
}
@media (max-width: 760px) {
  .logo-hero-inner { display: grid; min-height: calc(100svh - 58px); grid-template-columns: 1fr; align-content: center; gap: 18px; padding-block: 26px 34px; }
  .logo-concept-hero-mark { width: min(70vw, 270px); margin-inline: auto; }
  .logo-concept-hero-mark img { width: 90%; }
  .logo-concept-hero-copy h1 { max-width: 10em; font-size: clamp(3rem, 14vw, 4.8rem); line-height: 1.02; }
  .logo-concept-hero-copy p { margin-top: 18px; font-size: .95rem; line-height: 1.7; }
  .logo-concept-section { padding-block: 72px; }
  .logo-concept-section h2 { margin-bottom: 34px; font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .logo-process-grid { grid-template-columns: 1fr; gap: 48px; }
  .logo-process-card figure { width: 70vw; max-width: 330px; margin-inline: auto; margin-bottom: 18px; }
  .logo-process-copy { width: min(100%, 330px); margin-inline: auto; }
  .logo-reading-layout { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .logo-reading-main figure { width: min(70vw, 300px); }
  .logo-reading-side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; }
  .logo-reading-side figure { width: 120px; margin: 0; }
  .logo-reading-side h3, .logo-reading-side p { grid-column: 2; }
  .logo-reading-side h3 { grid-row: 1; }
  .logo-reading-side p { grid-row: 2; margin-top: -12px; }
  .logo-uses-grid { grid-template-columns: 1fr; gap: 32px; }
  .logo-uses-grid img { aspect-ratio: 16 / 9; }
  .logo-color-roles, .logo-color-pairs { grid-template-columns: 1fr; gap: 18px; }
  .logo-color-pair { min-height: 180px; }
  .logo-size-samples { gap: 14px; }
  .logo-size-sample { width: 92px; height: 92px; }
}
@media (max-width: 390px) {
  .logo-concept-section > .frame, .logo-hero-inner { width: calc(100% - 24px); }
  .logo-concept-section { padding-block: 64px; }
  .logo-concept-hero-copy h1 { font-size: 2.85rem; }
  .logo-concept-hero-copy p { font-size: .9rem; }
}
/* 学ぶの種類タブは下線型。member-learn.css（後から読む）の丸いボタン型より強く効かせる。 */
.member-b-learn-page .learn-tabs { gap: 4px; border-bottom: 1px solid var(--rule); }
.member-b-learn-page .learn-tabs a { min-height: 0; padding: 12px 12px 9px; gap: 6px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: .87rem; font-weight: 800; }
.member-b-learn-page .learn-tabs a[aria-current="page"] { border-bottom-color: var(--vermilion); background: transparent; color: var(--vermilion-text); }
.member-b-learn-page .learn-tabs a span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; background: var(--paper-deep); color: var(--muted); font-size: var(--fs-note); font-weight: 700; }
.member-b-learn-page .learn-tabs a[aria-current="page"] span { color: var(--muted); }
@media (max-width: 700px) {
  .member-b-learn-page .learn-tabs { gap: 0; }
  .member-b-learn-page .learn-tabs a { padding: 10px 7px 8px; gap: 4px; }
}
/* プロフィール：外側のフォームに枠を付けない（中のカードだけ）。画像の操作は丸い画像の右に横並び。 */
.member-b-profile-page .community-profile-form { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.member-b-profile-identity { align-items: center; gap: 16px; }
.member-b-profile-identity .member-avatar-editor { display: grid; grid-template-columns: 56px auto; align-items: center; gap: 8px 12px; width: auto; max-width: none; }
.member-b-profile-identity .member-avatar-editor .member-avatar-current { grid-row: span 2; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons button[data-avatar-save]:disabled,
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons button[data-avatar-remove][hidden] { display: none; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust],
.member-b-profile-identity .member-avatar-editor [data-avatar-result] { grid-column: 1 / -1; }
/* 10/11 軽く：文字と余白を減らす。箱を重ねず、線で区切る。 */
.member-b-card, .member-b-meeting-rule { padding: 16px; }
.member-b-form .member-b-card { gap: 12px; }
.member-b-form .member-b-card > header h2 { font-size: 1.05rem; }
.member-b-form .member-b-card > header { margin-bottom: 0; }
.member-b-form label small { color: var(--muted); font-weight: 400; }
.member-b-form > .button { width: 100%; margin-top: 12px; }
/* 画像：丸い画像と名前を横に、操作はその下に1行。 */
.member-b-profile-identity { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px 12px; padding: 4px 0; }
.member-b-profile-identity .member-avatar-editor { display: contents; }
.member-b-profile-identity .member-avatar-editor .member-avatar-current { grid-column: 1; grid-row: 1; width: 56px; height: 56px; }
.member-b-profile-identity > div:not(.member-avatar-editor) { grid-column: 2; grid-row: 1; }
.member-b-profile-identity .member-avatar-editor .member-avatar-picker { grid-column: 1 / -1; grid-row: 2; justify-self: start; min-height: 36px; padding: 6px 12px; font-size: .82rem; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] { grid-column: 1 / -1; display: grid; gap: 6px; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust][hidden] { display: none; }
.member-b-profile-identity .member-avatar-editor canvas { width: 192px; height: 192px; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] label { display: grid; grid-template-columns: 5em 1fr; align-items: center; margin: 0; font-size: .8rem; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] input[type=range] { width: 100%; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons { grid-column: 1 / -1; display: flex; gap: 8px; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons button { min-height: 40px; padding: 6px 18px; }
.member-b-profile-identity .member-avatar-editor [data-avatar-result] { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.member-b-profile-identity .member-avatar-editor [data-avatar-result]:empty { display: none; }
/* 設定：箱ではなく線で区切った一覧。 */
.member-b-settings-list { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--rule); }
.member-b-settings-item { border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.member-b-settings-item summary { padding: 15px 4px; font-size: .95rem; }
.member-b-settings-content { padding: 0 4px 16px; }
.member-b-settings-value { margin-left: 12px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.member-b-settings-content > p:first-child { margin-top: 0; color: var(--muted); font-size: .85rem; }
/* 通知（運営から）：日付と種類を1行、説明は2行まで。 */
.member-b-notice-row a { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
.member-b-notice-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.member-b-notice-meta .member-b-notice-kind { color: var(--blue-text); font-weight: 800; }
.member-b-notice-meta b { color: var(--vermilion-text); font-size: .72rem; }
.member-b-notice-row strong { white-space: normal; font-size: .95rem; }
.member-b-notice-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.6; }
/* 面談：決まりは1行、メモは入力欄とボタンを横並び。 */
.member-b-meeting-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.member-b-meeting-rule strong { font-size: 1.05rem; }
.member-b-meeting-notes > header { margin: 20px 0 8px; }
.member-b-meeting-note { gap: 8px; padding: 14px 16px; }
.member-b-meeting-note h2 { min-height: 0; margin: 0; font-size: 1rem; }
.member-b-meeting-note ul { min-height: 0; padding-left: 0; list-style: none; }
.member-b-meeting-note li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.member-b-meeting-note li > span { flex: 1; }
.member-b-meeting-note li.is-done > span { color: var(--muted); text-decoration: line-through; }
.member-b-meeting-note li form button { padding: 2px 8px; border: 1px solid var(--rule); background: transparent; color: var(--muted); font-size: .75rem; }
.member-b-meeting-note .member-b-muted { color: var(--muted); font-size: .85rem; }
.member-b-meeting-booking { display: grid; gap: 18px; margin-top: 14px; }
.member-b-meeting-rule-line, .member-b-meeting-no-slots, .member-b-meeting-unavailable { margin: 0; color: var(--muted); font-size: .9rem; }
.member-b-meeting-unavailable a { color: var(--vermilion-text); font-weight: 800; }
.member-b-meeting-picker[hidden], .member-b-meeting-next[hidden], .member-b-meeting-rule-line[hidden], .member-b-meeting-limit[hidden], .member-b-meeting-unavailable[hidden], .member-b-meeting-no-slots[hidden], .member-b-meeting-time-panel[hidden] { display: none !important; }
.member-b-meeting-next, .member-b-meeting-picker, .member-b-meeting-confirm { padding: 20px; border: 1px solid var(--rule); background: var(--paper-lifted); }
.member-b-meeting-label { margin: 0 0 6px; color: var(--vermilion-text); font-size: .78rem; font-weight: 900; letter-spacing: .06em; }
.member-b-meeting-date { margin: 0; font-size: 1.25rem; font-weight: 800; }
.member-b-meeting-meet { margin: 8px 0 14px; color: var(--muted); }
.member-b-meeting-meet a { color: var(--vermilion-text); font-weight: 800; }
.member-b-meeting-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.member-b-meeting-calendar-actions { display: grid; gap: 6px; }
.member-b-meeting-calendar-menu { display: grid; gap: 5px; min-width: 220px; padding: 8px 10px; border: 1px solid var(--rule); background: var(--paper); }
.member-b-meeting-calendar-menu[hidden] { display: none !important; }
.member-b-meeting-calendar-menu a { color: var(--vermilion-text); font-size: .86rem; font-weight: 800; }
.member-b-meeting-picker { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.member-b-meeting-picker h2, .member-b-meeting-confirm p { margin: 0 0 12px; font-size: 1rem; }
.member-b-meeting-days, .member-b-meeting-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.member-b-meeting-day, .member-b-meeting-slot { min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.member-b-meeting-day[aria-pressed="true"], .member-b-meeting-slot:hover, .member-b-meeting-day:hover { border-color: var(--vermilion); color: var(--vermilion-text); }
.member-b-meeting-limit { margin: 0; color: var(--muted); font-size: .86rem; }
.member-b-meeting-status { min-height: 1.5em; margin: 0; color: var(--muted); }
.member-b-meeting-status[data-state="error"] { color: var(--vermilion-text); font-weight: 800; }
.member-b-meeting-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.member-b-admin-calendar-card { display: grid; gap: 12px; max-width: 620px; }
.member-b-note-add { display: flex; gap: 8px; }
.member-b-note-add input { min-height: 40px; }
.member-b-note-add .button { flex: none; min-height: 40px; padding: 0 16px; }
.member-b-meeting-notes { margin-top: 20px; }
@media (max-width: 700px) {
  .member-b-meeting-picker { grid-template-columns: 1fr; gap: 18px; }
}
.member-b-notifications-page .member-b-notice-row a { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
.member-b-notifications-page .member-b-notice-row a > span:nth-child(2) { grid-column: 1; grid-row: 2; gap: 4px; }
.member-b-notifications-page .member-b-notice-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-b-profile-identity .member-avatar-editor .member-avatar-current .community-avatar,
.member-b-profile-identity .member-avatar-editor .member-avatar-current .member-avatar { width: 56px; height: 56px; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 116px; }
.member-b-profile-identity .member-avatar-editor .member-avatar-picker { grid-column: 1 / -1; grid-row: 2; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] { grid-row: 3; }
.member-b-profile-identity .member-avatar-editor [data-avatar-result] { grid-row: 4; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons button { min-height: 36px; padding: 6px 14px; font-size: .82rem; }
.member-b-profile-identity { grid-template-columns: 56px auto minmax(0, 1fr); }
.member-b-profile-identity > div:not(.member-avatar-editor) { grid-column: 2 / 4; }
.member-b-profile-identity .member-avatar-editor .member-avatar-picker { grid-column: 1 / 3; }
.member-b-profile-identity .member-avatar-editor .member-avatar-buttons { grid-column: 3; margin-left: 0; }
.member-b-profile-identity .member-avatar-editor .member-avatar-current > * { width: 56px !important; height: 56px !important; min-width: 0; }
/* 説明は2行まで。タップで全文を開く。 */
.member-b-notice-row a { padding-bottom: 4px; }
.member-b-notice-more { padding: 0 0 12px; }
.member-b-notice-more summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.6; list-style: none; cursor: pointer; }
.member-b-notice-more summary::-webkit-details-marker { display: none; }
.member-b-notice-more[open] summary { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* 画像の切り抜き：丸の外は暗く、指で動かす。拡大は －／＋ の目盛り。 */
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] { justify-items: center; padding: 8px 0; }
.member-b-profile-identity .member-avatar-editor canvas { width: 240px; height: 240px; border: 0; border-radius: 4px; cursor: grab; touch-action: none; }
.member-b-profile-identity .member-avatar-editor canvas:active { cursor: grabbing; }
.member-b-profile-identity .member-avatar-editor .member-avatar-zoom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 240px; margin: 0; color: var(--muted); font-size: .9rem; }
.member-b-profile-identity .member-avatar-editor [data-avatar-adjust] label.member-avatar-zoom { display: grid; grid-template-columns: auto 1fr auto; width: 240px; }
/* 学ぶ：検索は見出しの右の虫めがねから開く。日付の列は細く（セミナーの行も同じ幅）。 */
.learn-head { position: relative; }
.learn-search { margin-left: auto; align-self: center; }
.member-b-learn-page .learn-tabs { margin-top: 4px; }
.member-b-learn-page .learn-row > a,
.member-b-learn-page .learn-row.is-seminar > a { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 4px 10px; }
.member-b-learn-page .member-b-learn-list > header { margin: 10px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.member-b-learn-page .member-b-learn-list > header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.member-b-learn-page .member-b-learn-list > header { justify-content: flex-end; font-size: .8rem; }
.member-b-learn-page .member-b-shelf > header h2 { font-size: .85rem; color: var(--muted); }
/* 通知：「すべて既読」は見出しの行の右端に1つだけ。 */
.member-b-mark-all { margin-left: auto; align-self: center; }
.member-b-mark-all button { min-height: 44px; padding: var(--sp-1) var(--sp-2); border: 0; background: transparent; color: var(--blue-text); font: inherit; font-size: var(--fs-ui); font-weight: 800; cursor: pointer; }
.member-b-mark-all ~ .member-b-notice-read-form [data-member-updates-read-button] { display: none; }
.member-b-mark-all { display: flex; justify-content: flex-end; margin: 2px 0 -6px; }
.member-b-learn-page .learn-head { height: auto; min-height: 0; }
.member-b-learn-page .learn-head h1 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.member-b-learn-page .learn-tabs { margin-bottom: 0; }
.member-b-learn-page .learn-list { margin-top: 0; border-top: 0; }
.member-b-learn-page .member-b-learn-list { margin-top: 0; }
.member-b-learn-page .learn-tabs ~ .member-b-learn-list > header, .member-b-learn-page .learn-tabs ~ .member-b-shelf { margin-top: 6px; }

/* Tips / News editor */
.circle-learn-editor-list, .circle-learn-editor-page { width: min(calc(100% - 32px), 1180px); }
.circle-learn-editor-list .member-b-head, .circle-learn-editor-page .member-b-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.circle-learn-editor-list .member-b-head h1, .circle-learn-editor-page .member-b-head h1 { flex: 1 1 100%; }
.learn-editor-tabs, .learn-editor-mobile-tabs { display: flex; gap: 8px; margin: 12px 0 18px; border-bottom: 1px solid var(--rule); }
.learn-editor-tabs a, .learn-editor-mobile-tabs button { padding: 9px 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.learn-editor-tabs a:hover, .learn-editor-mobile-tabs button[aria-selected="true"] { color: var(--vermilion-text); border-bottom: 2px solid var(--vermilion); }
.learn-editor-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.learn-editor-row a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px 110px; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--rule); background: var(--paper-lifted); color: var(--ink); text-decoration: none; }
.learn-editor-row a:hover { border-color: var(--vermilion); }
.learn-editor-row-status { color: var(--vermilion-text); font-size: .8rem; font-weight: 800; }
.learn-editor-row time, .learn-editor-row > a > span:not(.learn-editor-row-status) { color: var(--muted); font-size: .82rem; }
.learn-editor-workspace { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(460px, 1.2fr); gap: 22px; align-items: start; }
.learn-editor-write form, .learn-editor-section { display: grid; gap: 12px; }
.learn-editor-write label, .learn-editor-section label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.learn-editor-write input, .learn-editor-write textarea, .learn-editor-write select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-lifted); color: var(--ink); font: inherit; font-weight: 400; }
.learn-editor-write textarea { min-height: 100px; resize: vertical; }
.learn-editor-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-editor-sections { display: grid; gap: 12px; margin-top: 8px; }
.learn-editor-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--rule); }
.learn-editor-section legend { padding: 0 6px; color: var(--vermilion-text); font-weight: 900; }
.learn-editor-section-actions, .learn-editor-actions, .learn-editor-preview-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.learn-editor-section-actions { padding-top: 4px; border-top: 1px solid var(--rule); }
.learn-editor-section-actions .learn-editor-image-label { margin-left: auto; }
.learn-editor-image-blocks { display: flex; gap: 6px; flex-wrap: wrap; }
.learn-editor-image-blocks span { padding: 5px 8px; background: var(--paper-deep); color: var(--muted); font-size: .76rem; }
.learn-editor-result { min-height: 1.4em; color: var(--muted); }
.learn-editor-result[data-error="true"] { color: var(--vermilion-text); }
.learn-editor-preview { position: sticky; top: 20px; min-width: 0; padding: 14px; border: 1px solid var(--rule); background: var(--paper-deep); }
.learn-editor-preview-toolbar { justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.learn-editor-preview iframe { display: block; width: 100%; max-width: 100%; height: min(760px, 75vh); margin-inline: auto; border: 1px solid var(--rule); background: var(--paper); }
.learn-editor-empty-preview { min-height: 240px; display: grid; place-items: center; color: var(--muted); }
.learn-editor-mobile-tabs { display: none; }
.learn-preview-mark { margin: 10px 0; padding: 8px 0; border-block: 1px solid var(--vermilion); color: var(--vermilion-text); font-size: .8rem; font-weight: 800; }
@media (max-width: 700px) {
  .circle-learn-editor-list, .circle-learn-editor-page { width: min(calc(100% - 24px), 680px); }
  .learn-editor-row a { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .learn-editor-row-status { grid-row: span 2; }
  .learn-editor-workspace { display: block; }
  .learn-editor-mobile-tabs { display: flex; }
  .circle-learn-editor-page[data-learn-mobile-pane="view"] .learn-editor-write { display: none; }
  .circle-learn-editor-page[data-learn-mobile-pane="write"] .learn-editor-preview { display: none; }
  .learn-editor-preview { position: static; padding: 8px; }
  .learn-editor-preview iframe { height: 680px; }
  .learn-editor-two { grid-template-columns: 1fr; }
  .learn-editor-section-actions .learn-editor-image-label { margin-left: 0; width: 100%; }
}

/* ===== Member theme: 墨 =====
   html[data-theme="dark"] is rendered by the server from the member's saved choice (default 墨).
   Fills keep the brand vermilion/blue (white text stays >= 4.5:1); text uses the lighter *-text tokens. */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211;
  --paper-lifted: #1b1a18;
  --paper-deep: #262521;
  --ink: #f1efe8;
  --ink-rgb: 241 239 232;
  --ink-soft: #d8d5cc;
  --muted: #aba89f;
  --muted-weak: #8f8c83;
  --rule: rgba(241, 239, 232, .22);
  --tape: #6b5f3f;
  --surface: #1c1b19;
  --surface-soft: #201f1c;
  --surface-muted: #2a2926;
  --line: rgba(241, 239, 232, .16);
  --line-strong: rgba(241, 239, 232, .42);
  --accent-soft: rgba(216, 64, 24, .18);
  --accent-text: #f2845e;
  --vermilion-text: #f07a52;
  --blue-text: #a9bde8;
  --blue-soft: rgba(85, 114, 173, .22);
  --ok-soft: rgba(47, 143, 91, .2);
  --ok-text: #86d4a2;
  --inverse-bg: #3b3a36;
  --inverse-ink: #f6f4ee;
  --on-fill: #fffef9;
  --media-bg: #000;
  --image-frame: rgba(241, 239, 232, .16);
}
html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .archive-log,
html[data-theme="dark"] .circle-archive-admin {
  --archive-paper: var(--paper);
  --archive-paper-raised: var(--surface);
  --archive-ink: var(--ink);
  --archive-muted: var(--muted);
  --archive-blue: #5572ad;
  --archive-blue-soft: var(--blue-soft);
  --archive-vermilion: #d84018;
  --archive-rule: var(--rule);
  --archive-grid: rgba(169, 189, 232, .1);
}
html[data-theme="dark"] .archive-log:not(.circle-progress-admin) { --archive-blue-soft: var(--blue-soft); }
/* Header, bottom tabs and menus */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] body .site-header.member-app-header { background: var(--paper); border-bottom-color: var(--rule); color: var(--ink); }
html[data-theme="dark"] .member-mobile-nav { background: var(--paper); border-top-color: var(--rule); }
html[data-theme="dark"] .member-mobile-nav a { color: var(--muted); }
html[data-theme="dark"] .member-mobile-nav a[aria-current="page"],
html[data-theme="dark"] .member-app-header .site-nav > a[aria-current="page"],
html[data-theme="dark"] body .member-app-header .site-nav > a[aria-current="page"] { color: var(--ink); }
html[data-theme="dark"] body .member-app-header .site-nav > a:not(.member-notification-link)::after { background: var(--vermilion); }
html[data-theme="dark"] .member-app-header .site-logo-copy > span,
html[data-theme="dark"] body .member-app-header .site-logo-copy > span { color: var(--muted); }
/* Form fields */
html[data-theme="dark"] :where(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea) {
  background-color: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
html[data-theme="dark"] :is(input, select, textarea)::placeholder { color: var(--muted-weak); opacity: 1; }
html[data-theme="dark"] :is(input, select, textarea, button):disabled { opacity: .55; }
html[data-theme="dark"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: #f07a52; }
/* Pictures with white backgrounds keep their colours and get a quiet frame instead of being inverted. */
html[data-theme="dark"] main :where(img:not([data-member-avatar]):not([src$=".svg"]):not([src^="data:image/svg"])) { outline: 1px solid var(--image-frame); outline-offset: -1px; }
html[data-theme="dark"] main :where(img[src^="data:image/svg"]) { outline: 1px solid var(--image-frame); outline-offset: -1px; }
/* Logo page: the brand bands keep their real colours; its charcoal headings switch to the page ink. */
html[data-theme="dark"] :is(.logo-concept-section h2, .logo-process-copy h3, .logo-reading-layout h3, .logo-uses-grid figcaption, .logo-color-roles strong, .logo-color-rule) { color: var(--ink); }
/* The bundled chat menu writes its colours inline (#181818); in 墨 the theme ink wins. */
html[data-theme="dark"] .branched-menu { --bm-ink: var(--ink) !important; --bm-accent: var(--ink) !important; --bm-line: rgba(241, 239, 232, .3) !important; }

/* Tap feedback (member-site.js enhanceTapFeedback). The finger gets an answer at once, and a thin line
   says the next page is on its way. iOS shows :active only because member-site.js listens to touchstart. */
.member-mobile-nav a, .learn-tabs a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity .12s ease; }
.member-mobile-nav a:active, .member-mobile-nav a.is-pressed,
.learn-tabs a:active, .learn-tabs a.is-pressed,
.site-nav > a.is-pressed { opacity: .55; }
html[data-circle-navigating] body::after { content: ""; position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: 3px; background: var(--vermilion); transform: scaleX(.08); transform-origin: 0 50%; animation: circle-navigating 2.4s cubic-bezier(.1, .7, .2, 1) forwards; pointer-events: none; }
@keyframes circle-navigating { from { transform: scaleX(.08); } to { transform: scaleX(.86); } }
@media (prefers-reduced-motion: reduce) {
  .member-mobile-nav a, .learn-tabs a { transition: none; }
  html[data-circle-navigating] body::after { animation: none; transform: scaleX(.6); }
}

/* Staff members page (/circle/admin/members): four large figures, then one ruled table. Rules, space and
   type separate things; the rows of the table line up with the figures above on the same left edge. */
.member-b-members-back { margin: 24px 0 12px; font-size: .86rem; }
.member-b-members-back a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; }
.member-b-members-back a:hover { color: var(--ink); text-decoration: underline; }
.member-b-members-since { margin: 14px 0 0; color: var(--muted); font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.member-b-members-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.member-b-members-figures > div { min-width: 0; padding: 22px 16px 20px 0; }
.member-b-members-figures > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.member-b-members-figures dt { margin: 0 0 10px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.member-b-members-figures dd { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--ink); }
.member-b-members-figures dd b { font-family: var(--serif); font-size: calc(var(--fs-page) * 2); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.member-b-members-figures dd span { color: var(--muted); font-size: .9rem; }
.member-b-members-note { max-width: 46em; margin: 14px 0 28px; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.member-b-members-table { width: 100%; border-collapse: collapse; }
.member-b-members-table th { padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left; white-space: nowrap; }
.member-b-members-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; vertical-align: top; }
.member-b-members-table td:first-child { min-width: 14em; }
.member-b-members-table strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.member-b-members-email { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.member-b-members-empty { color: var(--muted); }
@media (max-width: 700px) {
  .member-b-members-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-b-members-figures > div { padding: 16px 12px 14px 0; }
  .member-b-members-figures > div + div { padding-left: 0; border-left: 0; }
  .member-b-members-figures > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .member-b-members-figures > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .member-b-members-figures dd b { font-size: calc(var(--fs-page) * 1.7); }
  .member-b-members-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .member-b-members-table, .member-b-members-table tbody { display: block; }
  .member-b-members-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .member-b-members-table td { display: block; min-width: 0; padding: 0; border-bottom: 0; }
  .member-b-members-table td:first-child { grid-column: 1 / -1; min-width: 0; }
  .member-b-members-table td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font-size: .72rem; font-weight: 700; }
}

/* Staff reports page (/circle/admin/feedback): the members table with a wider comment cell. The detail page
   shows the comment first, then the shot at full width, then the facts a fix needs (place, screen size, device). */
.member-b-feedback-path { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.member-b-feedback-table td:last-child { width: 46%; }
.member-b-feedback-table td a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.member-b-feedback-shot { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.member-b-feedback-section { margin: 28px 0 0; }
.member-b-feedback-section h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: .95rem; font-weight: 700; }
.member-b-feedback-comment { max-width: 46em; margin: 0; font-size: 1rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-b-feedback-image { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--rule); background: var(--surface-soft); }
.member-b-feedback-image img { display: block; max-width: 100%; height: auto; }
.member-b-feedback-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 0 24px; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.member-b-feedback-meta > div { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.member-b-feedback-meta dt { margin: 0 0 2px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.member-b-feedback-meta dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .member-b-feedback-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-b-feedback-table td:last-child { grid-column: 1 / -1; width: auto; }
}

/* Operator menu (/circle/admin): the figures come first, then the entrances. Rules, space and type only:
   no card, no coloured band. Each cell is one link to the screen behind the number. */
.member-b-admin-figures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); list-style: none; }
.member-b-admin-figures > li { min-width: 0; }
.member-b-admin-figures > li + li { border-left: 1px solid var(--rule); }
.member-b-admin-figures a { display: grid; gap: 10px; align-content: start; height: 100%; box-sizing: border-box; padding: 22px 16px 20px 20px; color: var(--ink); text-decoration: none; }
.member-b-admin-figures > li:first-child a { padding-left: 0; }
.member-b-admin-figure-label { color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.5; }
.member-b-admin-figures a:hover .member-b-admin-figure-label { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.member-b-admin-figures a:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: -2px; }
.member-b-admin-figure-value { display: flex; align-items: baseline; gap: 6px; min-height: calc(var(--fs-page) * 2); }
.member-b-admin-figure-value b { font-family: var(--serif); font-size: calc(var(--fs-page) * 2); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.member-b-admin-figure-value small { color: var(--muted); font-size: .9rem; }
.member-b-admin-figure-value.is-unreadable { align-items: flex-end; }
.member-b-admin-figure-value.is-unreadable b { color: var(--muted); font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.member-b-admin-figures + .member-b-admin-grid { margin-top: 28px; }
.member-b-admin-card { display: flex; align-items: center; justify-content: space-between; min-height: 0; padding: 22px; }
.member-b-admin-card h2 { margin: 0; }
@media (max-width: 700px) {
  .member-b-admin-figures { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-b-admin-figures > li + li { border-left: 0; }
  .member-b-admin-figures > li:nth-child(even) { border-left: 1px solid var(--rule); }
  .member-b-admin-figures > li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .member-b-admin-figures a { padding: 16px 12px 14px 16px; }
  .member-b-admin-figures > li:nth-child(odd) a { padding-left: 0; }
  .member-b-admin-figure-value b { font-size: calc(var(--fs-page) * 1.7); }
  .member-b-admin-figure-value { min-height: calc(var(--fs-page) * 1.7); }
  .member-b-admin-figure-value.is-unreadable b { font-size: 1rem; }
}

/* Heading rows: a rule and the thing that sits on it end on the same y, and side-by-side columns share one
   header height. The row rule is an inset line (not a border) so the active tab's underline ends exactly
   where the rule ends. Measured with Playwright (getBoundingClientRect().bottom); the test pins the 0px. */
.member-b-head { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--rule); }
.member-b-head h1 { padding-bottom: 11px; }
.member-b-learn-page .learn-head { height: auto; min-height: 40px; }
.member-b-learn-page .learn-head h1 { line-height: 1; }
.member-b-learn-page .learn-tabs { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--rule); }

/* Dead-end pages (not found, not open right now): the sentence, then where to go next. */
.member-b-notice-page .member-b-notice-message { max-width: 34em; margin: 28px 0 20px; font-size: var(--fs-body); line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }
.member-b-notice-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.member-b-notice-links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.archive-player-help { color: inherit; font-size: var(--fs-ui); text-underline-offset: 3px; }
/* 学ぶ list and home: a small filled heart in colour on an article the member has liked. Rows not liked show nothing. */
.liked-mark { flex: none; display: inline-block; width: 1em; height: 1em; margin-left: .4em; vertical-align: -.14em; fill: var(--vermilion); }

/* The full-screen picture view (the shared image viewer script), the same in the chat and in articles. */
.community-image-viewer {
  display: grid;
  position: fixed;
  z-index: 200;
  inset: 0;
  place-items: center;
  padding: 48px 12px 12px;
  background: rgb(0 0 0 / calc(.9 * var(--viewer-fade, 1)));
  cursor: zoom-out;
  touch-action: pinch-zoom;
}
.community-image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}
.community-image-viewer.is-dragging img { transition: none; }
.community-image-viewer-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.community-image-viewer-save {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 999px;
  background: none;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
body.community-image-viewer-open { overflow: hidden; }
/* 学びを探す: the suggestions open right under the box (member-site.js enhanceLearnSuggest), never from the bottom. */
form[data-learn-suggest] { position: relative; }
.learn-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  list-style: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.learn-suggest[hidden] { display: none; }
.learn-suggest [role="option"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
.learn-suggest [role="option"]:hover,
.learn-suggest [aria-selected="true"] { background: var(--surface-muted); }
.learn-suggest-kind { color: var(--blue-text); font-size: 12px; font-weight: 700; }
.learn-suggest-title { display: -webkit-box; overflow: hidden; font-weight: 600; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.learn-suggest-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.learn-suggest .learn-suggest-all { display: block; color: var(--accent-text); font-weight: 700; }

@media (min-width: 1200px) {
  .member-b-page, .member-b-page.member-b-learn-page.learn-page { width: min(calc(100% - 2 * var(--sp-3) - var(--sp-1)), 1200px); }
  .member-b-learn-page .learn-list, .member-b-learn-page .member-b-shelf ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--sp-6) - var(--sp-3)); }
  .member-b-learn-page .learn-list .member-b-learn-month { grid-column: 1 / -1; }
  .member-b-settings-list { display: block; columns: 2; column-gap: calc(var(--sp-6) - var(--sp-3)); }
}
@media (min-width: 1600px) {
  .member-b-admin-page.frame, .member-event-admin.member-experience-page { width: min(calc(100% - 2 * var(--sp-3) - var(--sp-1)), 1500px); }
  .member-b-page, .member-b-page.member-b-learn-page.learn-page { width: min(calc(100% - 2 * var(--sp-3) - var(--sp-1)), 1400px); }
}

.ev-summary { display: grid; gap: var(--sp-4); }
.ev-summary-card { border: 1px solid var(--rule); background: var(--paper-lifted); }
.ev-summary-card h3 { margin: 0; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--ink); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 800; }
.ev-summary-card dl { display: grid; gap: 0; margin: 0; }
.ev-summary-card dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--rule); }
.ev-summary-card dl div:last-child { border-bottom: 0; }
.ev-summary-card dt { color: var(--muted); font-size: var(--fs-ui); line-height: var(--lh-body); font-weight: 700; }
.ev-summary-card dd { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.ev-value { font-weight: 800; }
.ev-value.is-yes { color: var(--ink); }
.ev-value.is-no { color: var(--muted); font-weight: 600; }
.ev-value.is-maybe { color: var(--blue-text); }
.ev-value.is-paid { color: var(--ok-text); }
.ev-value.is-unpaid { color: var(--vermilion-text); }
.ev-answer .ev-summary { margin-bottom: var(--sp-2); }
.member-event-admin .member-event-table-wrap td.ev-cell { font-weight: 800; }
.member-event-admin .member-event-table-wrap td.is-no { color: var(--muted); font-weight: 600; }
.member-event-admin .member-event-table-wrap td.is-maybe { color: var(--blue-text); }
.member-event-admin .member-event-table-wrap td.is-unpaid { color: var(--vermilion-text); }
.member-event-admin .member-event-table-wrap .ev-col-group { border-left: 2px solid var(--ink); }
@media (max-width: 560px) { .ev-summary-card dl div { grid-template-columns: 7.5em minmax(0, 1fr); } }
@media (min-width: 840px) { .member-event-page { max-width: 720px !important; } .member-event-readonly .ev-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .member-event-readonly .ev-summary-card:first-child { grid-row: span 2; } }
.member-home-checkin-qr { display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 14px; border: 1px solid rgba(24,24,24,.16); border-radius: 12px; background: #faf9f2; color: #181818; }
.member-home-checkin-qr > div:first-child { display: grid; gap: 5px; }
.member-home-checkin-qr strong { font-size: .95rem; }
.member-home-checkin-qr small { color: #64615a; font-size: .8rem; }
.member-home-checkin-qr > div:last-child { width: min(220px, 45vw); aspect-ratio: 1; padding: 10px; border-radius: 8px; background: #fff; }
.member-home-checkin-qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) { .member-home-checkin-qr { width: 100%; gap: 12px; } .member-home-checkin-qr > div:last-child { width: min(200px, 48vw); } }
