@font-face {
  font-family: "Anonymous Pro";
  src: url("/fonts/anonymous-pro-v22-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anonymous Pro";
  src: url("/fonts/anonymous-pro-v22-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f9f9f9;
  --bg-elevated: #fafaf8;
  --bg-muted: #ecece8;
  --surface: #fff;
  --surface-strong: #fff;
  --surface-soft: rgba(255, 255, 255, 0.66);
  --surface-muted: #efefeb;
  --text: #1f1f1c;
  --text-strong: #2b2b2b;
  --text-soft: #696963;
  --text-faint: #8a8a84;
  --text-inverse: #fafaf8;
  --accent: #4a4a47;
  --accent-hover: #3a3a37;
  --accent-weak: rgba(74, 74, 71, 0.12);
  --focus-ring: rgba(74, 74, 71, 0.22);
  --field-bg: #f7f6f3;
  --field-border-hover: rgba(74, 74, 71, 0.42);
  --button-outline-bg: #f8f7f4;
  --button-outline-hover: #f0f0ee;
  --border: rgba(17, 17, 17, 0.1);
  --border-strong: rgba(17, 17, 17, 0.18);
  --button: #1c1c1a;
  --button-hover: #000;
  --button-danger: #b84b3a;
  --button-danger-hover: #a33d2d;
  --button-danger-focus: rgba(184, 75, 58, 0.2);
  --button-muted: rgba(17, 17, 17, 0.04);
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
  --shadow-soft: 0 10px 24px rgba(17, 17, 17, 0.04);
  --container: min(980px, calc(100vw - 32px));
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-scale: 1;
  --font-size-display: 1.8rem;
  --font-size-section: 1.5rem;
  --font-size-subheading: 1.25rem;
  --font-size-body: 1rem;
  --font-size-support: 0.875rem;
  --font-size-caption: 0.75rem;
  --font-size-category-label: 0.75rem;
  --font-size-search-input: 1rem;
  --font-family-base: "Noto Sans JP", sans-serif;
  --font-family-numeric: "Noto Sans JP", sans-serif;
  --guest-home-overlay: rgba(255, 255, 255, 0.34);
  --shibo-bg-color: #fff;
  --shibo-bg-image: url("/images/shibo-white.svg");
  --shibo-bg-repeat: repeat;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f9f9f9;
  --bg-elevated: #fafaf8;
  --bg-muted: #ecece8;
  --button-bg-color: #fff;
  --surface: #fff;
  --surface-strong: #fff;
  --surface-soft: rgba(255, 255, 255, 0.66);
  --surface-muted: #efefeb;
  --text: #1f1f1c;
  --text-strong: #2b2b2b;
  --text-soft: #696963;
  --text-faint: #8a8a84;
  --text-inverse: #fafaf8;
  --accent: #4a4a47;
  --accent-hover: #3a3a37;
  --accent-weak: rgba(74, 74, 71, 0.12);
  --focus-ring: rgba(74, 74, 71, 0.22);
  --field-bg: #f7f6f3;
  --field-border-hover: rgba(74, 74, 71, 0.42);
  --button-outline-bg: #f8f7f4;
  --button-outline-hover: #f0f0ee;
  --border: rgba(17, 17, 17, 0.1);
  --border-strong: rgba(17, 17, 17, 0.18);
  --button: #1c1c1a;
  --button-hover: #000;
  --button-danger: #b84b3a;
  --button-danger-hover: #a33d2d;
  --button-danger-focus: rgba(184, 75, 58, 0.2);
  --button-muted: rgba(17, 17, 17, 0.04);
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
  --shadow-soft: 0 10px 24px rgba(17, 17, 17, 0.04);
  --container: min(980px, calc(100vw - 32px));
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-scale: 1;
  --font-size-display: 1.8rem;
  --font-size-section: 1.5rem;
  --font-size-subheading: 1.25rem;
  --font-size-body: 1rem;
  --font-size-support: 0.875rem;
  --font-size-caption: 0.75rem;
  --font-size-category-label: 0.75rem;
  --font-size-search-input: 1rem;
  --font-family-base: "Noto Sans JP", sans-serif;
  --font-family-numeric: "Noto Sans JP", sans-serif;
  --guest-home-overlay: rgba(255, 255, 255, 0.34);
  --shibo-bg-color: #fff;
  --shibo-bg-image: url("/images/shibo-white.svg");
  --shibo-bg-repeat: repeat;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0c;
  --bg-elevated: #141412;
  --bg-muted: #1c1c1a;
  --button-bg-color: #0e0e0c;
  --surface: #141412;
  --surface-strong: #181816;
  --surface-soft: rgba(14, 14, 12, 0.84);
  --surface-muted: #202020;
  --text: #f4f4f2;
  --text-strong: #fff;
  --text-soft: #c8c8c6;
  --text-faint: #9a9a98;
  --text-inverse: #141412;
  --accent: #c8c8c4;
  --accent-hover: #d4d4d0;
  --accent-weak: rgba(200, 200, 196, 0.16);
  --focus-ring: rgba(200, 200, 196, 0.28);
  --field-bg: #161614;
  --field-border-hover: rgba(200, 200, 196, 0.5);
  --button-outline-bg: #1e1e1c;
  --button-outline-hover: #262624;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --button: #f0f0ee;
  --button-hover: #fff;
  --button-danger: #d66c5d;
  --button-danger-hover: #ea8172;
  --button-danger-focus: rgba(214, 108, 93, 0.24);
  --button-muted: rgba(255, 255, 255, 0.06);
  --shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.22);
  --guest-home-overlay: rgba(10, 10, 8, 0.62);
  --shibo-bg-color: #141412;
  --shibo-bg-image: url("/images/shibo-black.svg");
  --shibo-bg-repeat: repeat;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #0e0e0c;
    --bg-elevated: #141412;
    --bg-muted: #1c1c1a;
    --surface: rgba(20, 20, 18);
    --surface-strong: #181816;
    --surface-soft: rgba(14, 14, 12, 0.84);
    --surface-muted: #202020;
    --text: #f4f4f2;
    --text-strong: #fff;
    --text-soft: #c8c8c6;
    --text-faint: #9a9a98;
    --text-inverse: #141412;
    --accent: #c8c8c4;
    --accent-hover: #d4d4d0;
    --accent-weak: rgba(200, 200, 196, 0.16);
    --focus-ring: rgba(200, 200, 196, 0.28);
    --field-bg: #161614;
    --field-border-hover: rgba(200, 200, 196, 0.5);
    --button-outline-bg: #1e1e1c;
    --button-outline-hover: #262624;
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.24);
    --button: #d08050;
    --button-hover: #b86c3e;
    --button-danger: #d66c5d;
    --button-danger-hover: #ea8172;
    --button-danger-focus: rgba(214, 108, 93, 0.24);
    --button-muted: rgba(255, 255, 255, 0.06);
    --shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.22);
    --guest-home-overlay: rgba(10, 10, 8, 0.62);
  }
}

:root[data-font-scale="small"] {
  --font-scale: 0.94;
}

:root[data-font-scale="medium"] {
  --font-scale: 1;
}

:root[data-font-scale="large"] {
  --font-scale: 1.1;
}

::placeholder {
  color: #c3c3c3;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

button {
  font: inherit;
}

input {
  font: inherit;
}

textarea {
  font: inherit;
}

select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button[disabled] {
  cursor: not-allowed;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

body.has-floating-record-link .page-shell {
  padding-bottom: 5rem;
}

.page-shell--editor {
  width: min(1320px, calc(100vw - 24px));
}

.editor-body {
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
}

.site-header__inner {
  padding: 0.85rem 0;
}

.site-header__shell {
  width: var(--container);
  margin: 0 auto;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-left: 0;
}

.site-header__utility {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.7rem;
  justify-content: flex-end;
}

.site-header__account {
  display: flex;
  align-items: center;
  font-size: var(--font-size-support);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guest-actions > button {
  width: 100%;
}

.guest-actions > a {
  width: 100%;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.profile-header__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-row {
  display: flex;
  align-items: center;
  color: var(--text-soft);
}

.avatar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.composer-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reference-editor__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr) auto;
  align-items: center;
}

.brand-mark__icon-set {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark__logo-set {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark__logo {
  width: 70px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

:root[data-theme="light"] .brand-mark__icon--dark {
  display: none;
}

:root[data-theme="light"] .brand-mark__logo--dark {
  display: none;
}

:root[data-theme="dark"] .brand-mark__icon--light {
  display: none;
}

:root[data-theme="dark"] .brand-mark__logo--light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .brand-mark__icon--light {
    display: none;
  }

  :root[data-theme="system"] .brand-mark__logo--light {
    display: none;
  }

  :root[data-theme="system"] .brand-mark__icon--dark {
    display: block;
  }

  :root[data-theme="system"] .brand-mark__logo--dark {
    display: block;
  }
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .brand-mark__icon--dark {
    display: none;
  }

  :root[data-theme="system"] .brand-mark__logo--dark {
    display: none;
  }

  :root[data-theme="system"] .brand-mark__icon--light {
    display: block;
  }

  :root[data-theme="system"] .brand-mark__logo--light {
    display: block;
  }
}

.section-lead {
  color: var(--text-soft);
}

.hero-copy {
  color: var(--text-soft);
  max-width: 38rem;
  margin: 0;
  font-size: var(--font-size-body);
}

.record-card__description {
  color: var(--text-soft);
}

.profile-meta {
  color: var(--text-soft);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.quiet-list-item p {
  color: var(--text-soft);
}

.maker-card p {
  color: var(--text-soft);
}

.site-footer p {
  color: var(--text-soft);
}

.site-footer a {
  color: var(--text-soft);
}

.field-note {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.form-note {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.editor-placeholder {
  color: var(--text-soft);
}

.reference-list__label {
  color: var(--text-soft);
}

.nav-links a {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.nav-links a:hover {
  color: var(--text-strong);
}

.site-footer a:hover {
  color: var(--text-strong);
}

.link-button:hover {
  color: var(--text-strong);
}

.nav-search input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.search-bar input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.stack-form input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.stack-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.stack-form select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.composer-image-card__caption textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.reference-editor__row input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.upload-field input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.nav-search input {
  min-height: 3.5rem;
}

.search-bar input {
  min-height: 3.5rem;
}

.stack-form input {
  min-height: 3.5rem;
}

.stack-form select {
  min-height: 3.5rem;
}

.reference-editor__row input {
  min-height: 3.5rem;
}

.upload-field input {
  min-height: 3.5rem;
}

.stack-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.composer-image-card__caption textarea {
  resize: vertical;
  min-height: 7rem;
}

.stack-form .material-outlined-field {
  position: relative;
  padding-top: 0.5rem;
}

.search-bar .material-outlined-field {
  position: relative;
  padding-top: 0.5rem;
}

.stack-form .material-outlined-field--select {
  cursor: pointer;
  padding-top: 0;
}

.stack-form .material-outlined-field--select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--text-soft);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.outlined-select-field {
  position: relative;
  cursor: pointer;
  padding-top: 0;
}

.outlined-select-field::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  margin-top: -3px;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--text-soft);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.stack-form .material-outlined-field-group {
  display: grid;
  gap: 0.4rem;
}

.stack-form .material-outlined-field__input {
  min-height: 3.5rem;
  padding: 1.45rem 1rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--field-bg);
}

.search-bar .material-outlined-field__input {
  min-height: 3.5rem;
  padding: 1.45rem 1rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--field-bg);
}

.stack-form .material-outlined-field__input--select {
  appearance: none;
  padding: 0.95rem 3rem 0.95rem 1rem;
  padding-right: 3rem;
  cursor: pointer;
}

.outlined-select-input {
  width: 100%;
  min-height: 3.5rem;
  appearance: none;
  padding: 0.95rem 3rem 0.95rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.outlined-select-input:hover {
  border-color: var(--field-border-hover);
}

.outlined-select-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.stack-form .material-outlined-field__label {
  position: absolute;
  top: 50%;
  left: 1rem;
  padding: 0 0.25rem;
  color: var(--text-soft);
  transform: translateY(-35%);
  transform-origin: left top;
  pointer-events: none;
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.search-bar .material-outlined-field__label {
  position: absolute;
  top: 50%;
  left: 1rem;
  padding: 0 0.25rem;
  color: var(--text-soft);
  background: var(--field-bg);
  transform: translateY(-35%);
  transform-origin: left top;
  pointer-events: none;
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.stack-form .material-outlined-field__input:hover {
  border-color: var(--field-border-hover);
}

.search-bar .material-outlined-field__input:hover {
  border-color: var(--field-border-hover);
}

.stack-form .material-outlined-field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-bar .material-outlined-field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.stack-form
  .material-outlined-field__input:focus
  + .material-outlined-field__label {
  top: 0.55rem;
  transform: translateY(0) scale(0.78);
}

.stack-form
  .material-outlined-field__input:not(:placeholder-shown)
  + .material-outlined-field__label {
  top: 0.55rem;
  transform: translateY(0) scale(0.78);
}

.search-bar
  .material-outlined-field__input:focus
  + .material-outlined-field__label {
  top: 0.55rem;
  transform: translateY(0) scale(0.78);
}

.search-bar
  .material-outlined-field__input:not(:placeholder-shown)
  + .material-outlined-field__label {
  top: 0.55rem;
  transform: translateY(0) scale(0.78);
}

.stack-form
  .material-outlined-field__input:focus
  + .material-outlined-field__label {
  color: var(--accent);
}

.search-bar
  .material-outlined-field__input:focus
  + .material-outlined-field__label {
  color: var(--accent);
}

.nav-search input:hover {
  border-color: var(--field-border-hover);
}

.search-bar input:hover {
  border-color: var(--field-border-hover);
}

.stack-form input:hover {
  border-color: var(--field-border-hover);
}

.stack-form textarea:hover {
  border-color: var(--field-border-hover);
}

.stack-form select:hover {
  border-color: var(--field-border-hover);
}

.composer-image-card__caption textarea:hover {
  border-color: var(--field-border-hover);
}

.reference-editor__row input:hover {
  border-color: var(--field-border-hover);
}

.upload-field input:hover {
  border-color: var(--field-border-hover);
}

.nav-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.stack-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.stack-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.stack-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.composer-image-card__caption textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.reference-editor__row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.upload-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.color-picker-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.75rem;
  min-height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--field-bg);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.color-picker-field:hover {
  border-color: var(--field-border-hover);
}

.color-picker-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.color-picker-field input[type="color"] {
  width: 3rem;
  max-width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  flex: 0 0 3rem;
}

.color-picker-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-field input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: 0.85rem;
}

.color-picker-field input[type="color"]::-moz-color-swatch {
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--field-border-hover);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12);
  background: var(--button-outline-bg);
  color: var(--text);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--button);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12);
  background: var(--button);
  color: var(--text-inverse);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--button-danger);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12);
  background: var(--button-danger);
  color: #fff7f5;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button-primary:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
}

.button:active {
  box-shadow: var(--shadow-soft);
}

.button-secondary:active {
  box-shadow: var(--shadow-soft);
}

.button-primary:active {
  box-shadow: var(--shadow-soft);
}

.button-danger:active {
  box-shadow: var(--shadow-soft);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.button-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.button-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.button-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.link-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn-sub {
  font-size: 0.75em;
}

.button:has(.btn-sub) {
  gap: 0;
}

.theme-menu__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.account-menu__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.theme-menu__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.account-menu__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.button-danger:hover {
  background: var(--button-danger-hover);
  border-color: var(--button-danger-hover);
}

.button-danger:focus-visible {
  box-shadow: 0 0 0 4px var(--button-danger-focus);
}

.button-block {
  width: 100%;
}

.detail-author-link {
  width: 100%;
  word-break: auto-phrase;
  line-height: 1.4;
  text-align: center;
}
.detail-author-link br {
  display: none;
}
@media (max-width: 760px) {
  .detail-author-link br {
    display: block;
  }
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  cursor: pointer;
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}

.button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.button-secondary[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.button-primary[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.button-danger[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.link-button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.account-menu__item--button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.button[data-submitting="true"] {
  cursor: progress;
}

.button-secondary[data-submitting="true"] {
  cursor: progress;
}

.button-primary[data-submitting="true"] {
  cursor: progress;
}

.button-danger[data-submitting="true"] {
  cursor: progress;
}

.link-button[data-submitting="true"] {
  cursor: progress;
}

.account-menu__item--button[data-submitting="true"] {
  cursor: progress;
}

.button-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  flex-shrink: 0;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.header-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.notification-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.account-menu {
  position: relative;
}

.theme-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--button-bg-color);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.account-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--button-bg-color);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.notification-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--button-bg-color);
  color: var(--text-soft);
  cursor: pointer;
  position: relative;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.theme-menu__trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.account-menu__trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.notification-menu__trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.theme-menu__trigger svg {
  width: 1.05rem;
  height: 1.05rem;
}

.account-menu__trigger svg {
  width: 1.05rem;
  height: 1.05rem;
}

.notification-menu__dot {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #e04934;
}

.theme-menu__popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  gap: 0.15rem;
  min-width: 8.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  z-index: 30;
}

.theme-menu__popover[hidden] {
  display: none;
}

.theme-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  text-align: left;
  cursor: pointer;
}

.theme-menu__item:hover {
  background: var(--button-muted);
  color: var(--text-strong);
}

.theme-menu__item.is-active {
  background: var(--button-muted);
  color: var(--text-strong);
}

.account-menu__popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  gap: 0.15rem;
  min-width: 12rem;
  max-height: min(80vh, 36rem);
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: none;
}

.account-menu__popover::-webkit-scrollbar {
  display: none;
}

.notification-menu__popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 24px));
  max-height: min(80vh, 36rem);
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}

.notification-menu__popover[hidden] {
  display: none;
}

.notification-menu__header {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.notification-menu__list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
}

.notification-menu__list::-webkit-scrollbar {
  display: none;
}

.notification-menu__item {
  display: grid;
  gap: 0.3rem;
}

.notification-menu__item p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  line-height: 1.6;
}

.notification-menu__empty {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  line-height: 1.6;
}

.notification-menu__item a {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.account-menu__popover[hidden] {
  display: none;
}

.account-menu__identity {
  padding: 0.65rem 0.72rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.account-menu__section {
  display: grid;
  gap: 0.15rem;
}

.account-menu__name {
  display: block;
  color: var(--text-strong);
  font-size: var(--font-size-support);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.account-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.58rem 0.72rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  text-align: left;
}

.account-menu__item:hover {
  background: var(--button-muted);
  color: var(--text-strong);
}

.account-menu__item--button:hover {
  background: var(--button-muted);
  color: var(--text-strong);
}

.account-menu__item--bar {
  border-bottom: 1px solid var(--border);
}

.account-menu__item--button {
  cursor: pointer;
}

.surface-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.record-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  width: min(40rem, 100%);
}

.error-page__message {
  margin-bottom: 1.5rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  gap: 0.75rem;
}

.comment-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.maker-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.profile-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing-login-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.auth-gate__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  max-width: 48rem;
}

.legal-sidecard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.legal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  place-items: start;
}

.creator-stats-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.creator-stats-panel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.creator-stats-panel-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
}

.reaction-summary-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.danger-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  margin-top: 1.5rem;
}

.record-reactions-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.composer-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1.5rem;
}

.detail-media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.activity-density-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-x: auto;
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem;
  margin-bottom: 3rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-strong) 88%, transparent),
    color-mix(in srgb, var(--surface) 96%, transparent)
  );
}

.hero {
  height: calc(100vh - 170px);
  display: flex;
  align-items: center;
}

.hero--guest {
  min-height: calc(100vh - 100px);
  height: auto;
  padding: 2rem 0 3rem;
  position: relative;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (max-width: 760px) {
  .scroll-hint {
    display: none;
  }
}

.scroll-hint.is-hidden {
  opacity: 0;
}

.scroll-hint svg {
  width: 1.5rem;
  height: 1.5rem;
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ─── Landing Page (guest top) ───────────────────────────── */

body.guest-home-body .page-shell {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.lp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(92svh, 54rem);
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 52%, transparent) 0%,
      color-mix(in srgb, var(--bg) 72%, transparent) 44%,
      color-mix(in srgb, var(--bg) 90%, transparent) 100%
    ),
    image-set(
      url("/images/hero-image.webp") type("image/webp"),
      url("/images/hero-image.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lp-hero .home-section-container {
  padding: 0;
}

.lp-hero__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.lp-gallery {
  margin-top: 2rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.lp-gallery__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1rem;
}

.lp-gallery__card {
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--text) 10%, transparent);
  min-height: 15rem;
}

.lp-gallery__card--large {
  min-height: 20rem;
}

.lp-gallery__card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

:root[data-theme="dark"] .lp-hero {
  background:
    linear-gradient(
      180deg,
      rgba(18, 18, 18, 0.36) 0%,
      rgba(18, 18, 18, 0.58) 44%,
      rgba(18, 18, 18, 0.82) 100%
    ),
    image-set(
      url("/images/hero-image.webp") type("image/webp"),
      url("/images/hero-image.jpg") type("image/jpeg")
    );
}

:root[data-theme="dark"] .lp-gallery__card {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-hero {
    background:
      linear-gradient(
        180deg,
        rgba(18, 18, 18, 0.36) 0%,
        rgba(18, 18, 18, 0.58) 44%,
        rgba(18, 18, 18, 0.82) 100%
      ),
      image-set(
        url("/images/hero-image.webp") type("image/webp"),
        url("/images/hero-image.jpg") type("image/jpeg")
      );
  }

  :root:not([data-theme="light"]) .lp-gallery__card {
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }
}

.lp-hero__title {
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0;
}

.lp-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin: 0;
  word-break: auto-phrase;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.lp-hero__actions .button,
.lp-cta__actions .button {
  flex: 1;
  min-width: 12rem;
  max-width: 16rem;
}

/* ─── Philosophy section ─────────────────────────────────── */

.lp-philosophy {
  padding: 4rem 0;
  background: var(--surface);
}

.lp-philosophy__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lp-philosophy__heading {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-strong);
  margin: 0;
  text-align: center;
}

.lp-philosophy__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.lp-philosophy__body p {
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 2;
  color: var(--text-soft);
  margin: 0;
  word-break: auto-phrase;
}

.lp-philosophy__browse {
  text-align: center;
}

.lp-philosophy__browse-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-philosophy__browse-link:hover {
  opacity: 0.7;
}

.lp-philosophy__browse-note {
  margin-top: 0.375rem;
  font-size: var(--font-size-caption);
  color: var(--text-faint);
  letter-spacing: 0.02em;
  display: block;
}

/* ─── LP shared section headings ────────────────────────── */

.lp-section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-strong);
  margin: 0 0 0.75rem;
  word-break: auto-phrase;
}

.lp-section-lead {
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: var(--text-soft);
  line-height: 1.8;
  margin: 0 0 3rem;
  word-break: auto-phrase;
}

/* ─── Features ───────────────────────────────────────────── */

.lp-features {
  padding: 4rem 0;
}

.lp-features__inner {
  max-width: 640px;
  margin: 0 auto;
}

.lp-features__list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.lp-feature {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.lp-feature__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  width: 32px;
}

.lp-feature__icon svg {
  width: 100%;
  height: auto;
}

.lp-feature__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 0.625rem;
}

.lp-feature__body p {
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin: 0;
  word-break: auto-phrase;
}

/* ─── Steps ──────────────────────────────────────────────── */

.lp-steps {
  padding: 4rem 0 8rem;
}

@media (max-width: 640px) {
  .lp-steps {
    padding: 2rem 0 4rem 0;
  }
}

.lp-steps__inner {
  max-width: 640px;
  margin: 0 auto;
}

.lp-steps__list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.lp-step {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.lp-step__number {
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  min-width: 2.75rem;
}

.lp-step__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 0.5rem;
}

.lp-step__body p {
  font-size: clamp(1rem, 2vw, 1rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin: 0;
  word-break: auto-phrase;
}

/* ─── Tag Cloud ──────────────────────────────────────────── */

.lp-tagcloud {
  padding: 4rem 0;
  background: var(--surface);
}

.lp-tagcloud__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.lp-tagcloud__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-top: 2rem;
}

.lp-tagcloud__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.45em 0.875em;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-soft);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.lp-tagcloud__tag-icon {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  opacity: 0.6;
}

.lp-tagcloud__etc {
  font-size: 0.875rem;
  color: var(--text-faint);
  align-self: center;
}

/* ─── Final CTA ──────────────────────────────────────────── */

.lp-cta {
  border-radius: var(--radius-lg);
  margin: 0 2rem 4rem 2rem;
  padding: clamp(4rem, 12vw, 10rem) 1rem;
  text-align: center;
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
}

@media (max-width: 640px) {
  .lp-cta {
    margin: 0 1rem 4rem 1rem;
  }
}

.lp-cta__inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lp-cta__heading {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-strong);
  margin: 0;
  word-break: auto-phrase;
}

.lp-cta__lead {
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin: 0;
}

.lp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 0.75rem;
}

/* ─── End Landing Page ───────────────────────────────────── */

.hero-logged {
  margin-bottom: 2rem;
}

.home-auth-shell {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(21rem, 0.8fr);
  align-items: center;
}

.home-pulse-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.home-section-container {
  width: min(980px, 100%);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .home-section-container {
    padding: 0 1rem;
  }
}

.auth-gate__shell {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.legal-page-shell {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.footer-minimal-shell {
  width: var(--container);
  margin: 0 auto;
}

.profile-page-shell {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.mypage-profile-shell {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.detail-page-shell {
  --detail-solo-width: 36rem;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 0 0 2rem;
}

.section:has(.supporter-strip[hidden]) {
  padding: 0;
}

.section:last-of-type {
  padding: 0;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.9fr);
  align-items: stretch;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.composer-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: center;
}

.hero-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.landing-split {
  grid-template-columns: minmax(0, 1.2fr) minmax(21rem, 0.8fr);
  align-items: center;
}

.hero-copy-block {
  display: grid;
  gap: 1rem;
}

.hero-note {
  display: grid;
  gap: 1rem;
}

.landing-copy {
  display: grid;
  gap: 1rem;
}

.landing-copy--teaser {
  position: relative;
  padding: 1.5rem 0;
}

.guest-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--text-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.guest-hero-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--surface-strong) 90%, transparent)
  );
  color: var(--accent);
}

.guest-hero-chip__icon svg {
  width: 1rem;
  height: 1rem;
}

.guest-preview-stack {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.guest-preview-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: var(--radius-md);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.guest-preview-card--wide {
  padding: 1.3rem 1.35rem;
}

.guest-preview-card strong {
  margin: 0;
}

.guest-preview-card p {
  margin: 0;
}

.guest-preview-card strong {
  color: var(--text-strong);
  font-size: 1.05rem;
}

.guest-preview-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.guest-preview-card__label {
  color: var(--text-faint);
  font-size: var(--font-size-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.composer-preview-article {
  display: grid;
  gap: 1rem;
}

.comment-stack {
  display: grid;
  gap: 1rem;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.consultation-form__consent-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-strong);
}

.consultation-form__consent-label a {
  text-decoration: underline;
}

.consultation-form__consent-label a:hover {
  text-decoration: none;
}

.stack-form input.consultation-form__consent-input {
  width: 1.1rem;
  min-height: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border-radius: 0.3rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consultation-inbox__header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.consultation-detail__header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.consultation-inbox__title {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.consultation-detail__title {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.consultation-detail__panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.consultation-inbox__subject {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--font-size-body);
}

.consultation-detail__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.consultation-detail__body p {
  margin: 0;
}

.consultation-detail__subject {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.consultation-inbox__subject--muted {
  color: var(--text-faint);
}

.consultation-inbox__table-shell {
  overflow-x: auto;
}

.consultation-inbox__panel {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.consultation-inbox__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.consultation-inbox__table th {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.consultation-inbox__table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.consultation-inbox__table th {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.consultation-inbox__table thead th {
  border-bottom: 1px solid var(--border);
}

.consultation-inbox__table tbody tr:last-child td {
  border-bottom: 0;
}

.consultation-inbox__cell {
  color: var(--text);
  font-size: 1rem;
}

.consultation-inbox__cell--sender strong {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
}

.consultation-inbox__cell--subject {
  min-width: 0;
}

.consultation-inbox__cell--subject a {
  text-decoration: underline;
}

.consultation-inbox__cell--subject a:hover {
  text-decoration: none;
}

.consultation-inbox__cell--actions {
  width: 1%;
  white-space: nowrap;
}

.consultation-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.consultation-inbox__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.consultation-detail__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.consultation-inbox__status--unread {
  border-color: var(--border);
  background: var(--button-muted);
}

.consultation-detail__status--unread {
  border-color: var(--border);
  background: var(--button-muted);
}

.consultation-inbox__status--read {
  border-color: var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
}

.consultation-detail__status--read {
  border-color: var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
}

.consultation-inbox__status--archived {
  border-color: var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
}

.consultation-detail__status--archived {
  border-color: var(--border);
  background: var(--button-muted);
  color: var(--text-strong);
}

.consultation-inbox__status--admin-unchecked {
  border-color: color-mix(in srgb, #c24d2c 22%, var(--border));
  background: color-mix(in srgb, #c24d2c 10%, var(--surface-strong));
  color: #8c381f;
}

.consultation-detail__status--admin-unchecked {
  border-color: color-mix(in srgb, #c24d2c 22%, var(--border));
  background: color-mix(in srgb, #c24d2c 10%, var(--surface-strong));
  color: #8c381f;
}

.consultation-inbox__status--admin-checked {
  border-color: color-mix(in srgb, #3f6b4f 18%, var(--border));
  background: color-mix(in srgb, #3f6b4f 10%, var(--surface-strong));
  color: #2d5540;
}

.consultation-detail__status--admin-checked {
  border-color: color-mix(in srgb, #3f6b4f 18%, var(--border));
  background: color-mix(in srgb, #3f6b4f 10%, var(--surface-strong));
  color: #2d5540;
}

.consultation-detail__body {
  line-height: 1.8;
  color: var(--text-strong);
}

.consultation-detail__actions {
  display: flex;
  gap: 0.75rem;
}

#consultation-reply-modal .app-modal__heading {
  font-size: var(--font-size-body);
}

.consultation-reply-modal__email-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.consultation-reply-modal__copy-wrapper {
  position: relative;
  display: inline-flex;
}

.consultation-reply-modal__message {
  font-size: var(--font-size-support);
}

.consultation-reply-modal__email {
  flex: 1;
  font-family: monospace;
  font-size: 0.9375rem;
  color: var(--text-strong);
  word-break: break-all;
}

.consultation-reply-modal__copy-feedback {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-support);
  font-weight: 500;
  color: var(--text-inverse);
  background: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}

.consultation-reply-modal__copy-feedback::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.consultation-inbox__empty {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.consultation-inbox__empty-title {
  margin: 0;
  font-weight: 500;
  color: var(--text-strong);
  font-size: var(--font-size-body);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.landing-brand strong {
  display: none;
}

.auth-gate__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-display);
}

.legal-hero__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-display);
}

.form-card__page-title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-display);
  margin-bottom: 0.5rem;
}

.auth-verify__description {
  margin: 0 0 0.3rem;
  font-size: var(--font-size-support);
}

.auth-verify__help {
  margin: 1rem 0 1.25rem;
  font-size: var(--font-size-support);
}

.composer-header__page-title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.section-heading__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.landing-login-card__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  line-height: 1;
}

.detail-section__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.creator-stats-panel__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.creator-stats-panel-free__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  margin-bottom: 0.5rem;
}

.reaction-summary-panel__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.mypage-records__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

.empty-state__title {
  font-weight: 500;
  color: var(--text-strong);
  font-size: var(--font-size-body);
}

.app-modal__heading {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  margin: 0;
}

.legal-content__section {
  margin-bottom: 2rem;
  color: var(--text-soft);
}

.legal-content__section-title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  margin-bottom: 0.3rem;
}

.home-section-panel__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
}

@media (max-width: 760px) {
  .home-section-panel__title {
    line-height: 1.5;
  }

  .home-section-panel__title + .section-lead {
    margin-top: 0.5rem;
  }
}

.landing-copy__title {
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.landing-copy__eyebrow {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.home-pulse__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: clamp(1.75rem, 4vw, var(--font-size-display));
}

.guest-teaser-section {
  padding-top: 0.5rem;
}

.guest-teaser-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.guest-flow-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
  border-radius: var(--radius-lg);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.guest-teaser-panel__pill {
  margin-bottom: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--button-muted) 84%, transparent);
}

.guest-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-flow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-feature-card {
  display: grid;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.guest-flow-step {
  display: grid;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.guest-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 20%, transparent),
    color-mix(in srgb, var(--surface-muted) 85%, transparent)
  );
  color: var(--accent);
}

@media (max-width: 760px) {
  .guest-feature-card__icon {
    margin-bottom: 0;
  }
}

.guest-feature-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.guest-feature-card__body {
  display: grid;
  gap: 0.45rem;
}

.guest-feature-card__body h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
}

.guest-flow-step h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
}

.guest-feature-card__body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.guest-flow-step p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.guest-flow-step__number {
  color: var(--accent);
  font-size: var(--font-size-display);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.section-heading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .section-heading-card {
    display: grid;
    gap: 0.3rem;
    justify-content: normal;
  }
}

.mypage-record-count {
  margin-bottom: 1rem;
}

.section-heading-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .section-heading-block {
    margin-bottom: 0.5rem;
  }
}

.section-heading-block__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.section-heading-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

/* ── field-info-trigger (infoアイコンボタン) ──────────────── */

.field-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}

.field-info-trigger:hover {
  color: var(--text-soft);
  background: var(--button-muted);
}

.field-info-trigger[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-weak);
}

.field-info-trigger .icon {
  width: 1.15em;
  height: 1.15em;
}

/* ── field-info-note (浮遊ポップオーバー) ────────────────── */

.field-info-note {
  position: fixed;
  z-index: 200;
  width: 18rem;
  max-width: calc(100vw - 1.5rem);
  display: flex;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: field-info-fade-in 0.15s ease;
}

.field-info-note[hidden] {
  display: none;
}

@keyframes field-info-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field-info-note__icon {
  font-size: 1.1rem;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.field-info-note__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-info-note__text {
  font-size: var(--font-size-support);
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.section-heading--wide {
  align-items: end;
}

.section-heading--compact {
  margin-bottom: 0;
}

.section-heading--card-spaced {
  margin-bottom: 1rem;
}

.section-heading--block-spaced {
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maker-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maker-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-card__image-link {
  display: block;
  background: linear-gradient(135deg, #f0e7dc 0%, #ede2d4 100%);
}

.record-card__image-link--empty {
  display: grid;
  place-items: center;
  min-height: 10rem;
}

.record-card__image-placeholder {
  font-size: var(--font-size-support);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.record-card__body {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.3rem;
}

.record-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.record-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.record-card__record-code {
  font-family: "Anonymous Pro", sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1.1rem);
  line-height: 1.3;
  color: #fff;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: nowrap;
  padding: 0.72rem 1rem;
  border-radius: 1rem;
  background: var(--record-accent-color, #8b5e3c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(17, 17, 17, 0.1);
}

.record-card__date {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  white-space: nowrap;
}

.record-card__author {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-strong);
  font-size: var(--font-size-support);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card__author:hover {
  text-decoration: underline;
}

.record-card__author--guest {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.record-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.record-card__tag,
.record-card__tag-more {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, var(--accent-weak));
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  line-height: 1;
}

.record-card__tag {
  max-width: min(100%, 8rem);
}

.record-card__tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card__tag .icon,
.record-card__tag-more .icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}

.record-card__status {
  display: inline-flex;
}

.record-card__good-log {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  margin: 0 0 0 auto;
}

.record-card__good-log i {
  font-style: normal;
  font-weight: 700;
  margin: 0 0 0 0.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--font-size-caption);
}

.step-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: var(--button-muted);
  color: var(--text-soft);
  font-size: var(--font-size-caption);
}

.status-pill--link {
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.status-pill--link:hover {
  background: var(--accent-weak);
  color: var(--text-strong);
}

.status-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--button-bg-color);
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.status-pill-link:hover {
  color: var(--text-strong);
}

.record-category-icon {
  font-size: 1rem;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.record-category-label {
  font-size: var(--font-size-category-label);
  line-height: 1;
}

.status-pill--color {
  gap: 0.45rem;
}

.status-pill__swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--swatch-color, #8b5e3c);
  border: 1px solid rgba(28, 28, 28, 0.14);
  flex: 0 0 auto;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.detail-page {
  --detail-solo-width: 36rem;
  display: grid;
  gap: 1.5rem;
}

.detail-layout--with-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-layout--solo {
  width: min(100%, var(--detail-solo-width));
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
}

.detail-header--solo {
  width: min(100%, var(--detail-solo-width));
  margin-inline: auto;
}

.detail-main {
  display: grid;
  gap: 1.25rem;
}

.detail-side {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 6.25rem;
}

.detail-header__record-code {
  font-family: "Anonymous Pro", sans-serif;
  font-size: var(--font-size-display);
  line-height: 1.3;
  display: inline-block;
  max-width: 100%;
  color: #fff;
  padding: 0.72rem 1rem;
  border-radius: 1rem;
  background: var(--record-accent-color, #8b5e3c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(17, 17, 17, 0.1);
  overflow-wrap: anywhere;
}

.detail-header {
  display: grid;
  gap: 1rem;
}

.detail-header__copy {
  display: grid;
  gap: 0.85rem;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.detail-header__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.detail-header__tag-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.detail-header__tag,
.detail-header__tag-more {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, var(--accent-weak));
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  line-height: 1;
}

.detail-header__tag {
  max-width: min(100%, 12rem);
}

.detail-header__tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-header__tag .icon,
.detail-header__tag-more .icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}

.detail-share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.detail-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  padding: 0;
  background: #555;
  color: #fff;
}

.detail-share-button:hover {
  opacity: 0.7;
}

.detail-share-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.detail-share-button--copy {
  position: relative;
}

.detail-share-button--copy.is-copied {
  background: #333;
}

.detail-share-button--copy.is-copied::after {
  content: "コピーしました";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

.detail-header__good-log-form {
  margin-left: auto;
  display: inline-flex;
}

.detail-good-log-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.2rem 0.3rem 0.2rem 0.95rem;
  border: 1px solid var(--field-border-hover);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--text-strong);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.good-log-button--pill {
  padding: 0.55rem 0.95rem;
  font-size: var(--font-size-support);
  font-weight: 600;
}

.good-log-button--pill .good-log-button__icon {
  font-size: 1rem;
}

.detail-good-log-button .good-log-button__icon {
  font-size: 1rem;
  color: var(--accent);
}

.detail-good-log-button [data-good-log-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  min-height: 1.85rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1;
}

.detail-good-log-button[data-good-logged="true"] {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border-strong));
  background: color-mix(in srgb, var(--accent-weak) 78%, var(--surface));
}

.detail-good-log-button[data-good-logged="true"] .good-log-button__icon {
  color: color-mix(in srgb, var(--accent) 82%, var(--text-strong));
}

.detail-good-log-button[data-good-logged="true"] [data-good-log-count] {
  background: color-mix(in srgb, var(--accent-weak) 88%, var(--surface));
  color: var(--text-strong);
}

.detail-good-log-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.detail-good-log-button:disabled {
  cursor: not-allowed;
  opacity: 0.88;
  transform: none;
}

.detail-header__meta {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-soft);
}

.detail-header__meta .avatar-link {
  min-width: 0;
}

.detail-header__meta time {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.detail-media-stack {
  display: grid;
  gap: 1rem;
}

.composer-image-editor {
  display: grid;
  gap: 1rem;
}

.composer-preview-images {
  display: grid;
  gap: 1rem;
}

.detail-media-card--empty {
  padding: 1rem;
}

.detail-media-card__placeholder {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-muted) 84%, transparent),
    color-mix(in srgb, var(--surface) 94%, transparent)
  );
  color: var(--text-soft);
  text-align: center;
}

.detail-media-card__placeholder .icon {
  width: 2rem;
  height: 2rem;
}

.detail-media-card__placeholder p {
  margin: 0;
}

.detail-media-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.composer-image-card__preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.composer-preview-images__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.detail-media-card__caption {
  color: var(--text-soft);
  line-height: 1.75;
}

.composer-preview-images__item figcaption {
  color: var(--text-soft);
  line-height: 1.75;
}

.maker-note p {
  margin: 0 0 1rem;
}

.reference-list {
  display: grid;
  gap: 0.75rem;
}

.reference-list__item {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}

.reference-list__url {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.reference-list__url-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-list__url::after {
  content: attr(data-tooltip-url);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 10;
  width: max-content;
  max-width: min(32rem, calc(100vw - 5rem));
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-size: var(--font-size-support);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.2rem);
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    transform 0.15s ease;
  pointer-events: none;
}

.reference-list__url:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reference-list__url:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-header__name {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-display);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.profile-header__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.profile-header__identity .profile-header__name {
  margin-bottom: 0;
}

.profile-page__title {
  margin-bottom: 0.55rem;
}

.profile-panel__edit {
  align-self: flex-end;
}

.profile-panel-edit-link {
  align-self: flex-end;
}

@media (max-width: 760px) {
  .profile-panel-edit-link {
    align-self: flex-start;
  }
}

.profile-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 2rem;
  object-fit: cover;
}

.profile-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.profile-socials__link:hover {
  border-color: var(--field-border-hover);
}

.profile-socials__icon {
  width: 55%;
  height: auto;
}

.profile-socials__icon--sm {
  width: 42%;
}

:root[data-theme="dark"] .profile-socials__icon {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .profile-socials__icon {
    filter: invert(1);
  }
}

.activity-panel {
  overflow-x: auto;
}

.activity-panel--density {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 3rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-strong) 88%, transparent),
    color-mix(in srgb, var(--surface) 96%, transparent)
  );
}

.activity-panel__header {
  display: grid;
  gap: 0.35rem;
}

.activity-feed__item {
  display: grid;
  gap: 0.35rem;
}

.activity-feed__content {
  display: grid;
  gap: 0.35rem;
}

.activity-panel__title {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  color: var(--text-strong);
}

.activity-feed__title {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  color: var(--text-strong);
}

.activity-panel__header p {
  margin: 0;
  color: var(--text-soft);
}

.activity-feed__content p {
  margin: 0;
  color: var(--text-soft);
}

.home-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: min(980px, 100%);
  margin: 0 auto;
}

.home-section-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.home-pulse__main {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.home-pulse__side {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.home-pulse__chart {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.home-pulse__stat {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
}

.home-pulse-record {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.home-section-panel {
  display: grid;
  gap: 1rem;
}

.home-pulse__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--button-muted);
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.home-pulse__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-pulse__stat-label {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.home-pulse__stat-note {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.pulse-bars__label {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.pulse-bars__count {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.home-pulse-record__footer {
  color: var(--text-soft);
  font-size: var(--font-size-support);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-pulse__stat-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--text-strong);
  font-family: var(--font-family-numeric);
  letter-spacing: 0.1rem;
}

.home-pulse__stat-value span {
  margin: 0 0 0 0.1rem;
  font-size: var(--font-size-subheading);
}

.pulse-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: end;
  min-height: 12rem;
  height: 12rem;
}

.pulse-bars__item {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  height: 100%;
  justify-items: center;
}

.pulse-bars__bar {
  width: 100%;
  height: var(--bar-height);
  min-height: 0.75rem;
  border-radius: 6px 6px 0 0;
  align-self: end;
}

.pulse-bars__bar[data-color="Mon"] {
  background: #8fa3b8;
}

.pulse-bars__bar[data-color="Tue"] {
  background: #b88a8a;
}

.pulse-bars__bar[data-color="Wed"] {
  background: #7fafb0;
}

.pulse-bars__bar[data-color="Thu"] {
  background: #8faf8f;
}

.pulse-bars__bar[data-color="Fri"] {
  background: #b8a88a;
}

.pulse-bars__bar[data-color="Sat"] {
  background: #8f8fa8;
}

.pulse-bars__bar[data-color="Sun"] {
  background: #c2a89a;
}

.pulse-bars__item.is-today .pulse-bars__label {
  color: var(--text-strong);
}

.pulse-bars__item.is-today .pulse-bars__count {
  color: var(--text-strong);
}

.home-pulse-record:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-pulse-record__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-pulse-record__meta strong {
  color: var(--text-strong);
}

.home-pulse-record p {
  margin: 0;
}

.home-news-panel {
  display: grid;
  gap: 1rem;
}

.home-news-panel__title {
  margin: 0;
  font-size: var(--font-size-section);
  color: var(--text-strong);
}

.home-news-list {
  gap: 0.85rem;
}

.activity-density-card {
  display: grid;
  gap: 1rem;
}

.activity-density__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-size: var(--font-size-support);
  letter-spacing: 0.08em;
}

.activity-density__summary {
  color: var(--text-soft);
  font-size: var(--font-size-support);
  line-height: 1.75;
}

.activity-density__footer {
  color: var(--text-faint);
  font-size: var(--font-size-support);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.activity-heatmap__hint {
  color: var(--text-faint);
  font-size: var(--font-size-support);
  transition: color 0.15s ease;
}

.activity-heatmap__legend {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  white-space: nowrap;
  color: var(--text-faint);
}

.activity-density {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
}

.activity-density__segment {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 8.5rem;
  padding: 0;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.activity-density__legend-segment {
  display: block;
  width: 0.7rem;
  height: 1rem;
  border-radius: 0.22rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background: color-mix(in srgb, #1b2539 18%, var(--surface-muted));
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.activity-density__segment::before {
  content: "";
  display: block;
  width: 100%;
  height: 5.25rem;
  margin-top: auto;
  border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background: color-mix(in srgb, #1b2539 18%, var(--surface-muted));
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.activity-density__segment:hover::before {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.activity-density__segment.is-selected {
  background: color-mix(in srgb, var(--button-muted) 45%, transparent);
}

.activity-density__month-label {
  padding: 0.65rem 0.35rem 0.55rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.activity-density__segment--level-0::before {
  height: 1rem;
}

.activity-density__segment--level-1::before {
  background: #7f8ba0;
}

.activity-density__legend-segment--level-1 {
  background: #7f8ba0;
}

.activity-density__segment--level-2::before {
  background: #5e6a81;
}

.activity-density__legend-segment--level-2 {
  background: #5e6a81;
}

.activity-density__segment--level-3::before {
  background: #3d485f;
}

.activity-density__legend-segment--level-3 {
  background: #3d485f;
}

.activity-density__segment--level-4::before {
  background: #1b2539;
}

.activity-density__legend-segment--level-4 {
  background: #1b2539;
}

.activity-density__segment--level-1::before {
  height: 2.35rem;
}

.activity-density__segment--level-2::before {
  height: 3.45rem;
}

.activity-density__segment--level-3::before {
  height: 4.4rem;
}

.activity-density__segment--level-4::before {
  height: 5.25rem;
}

@media (max-width: 640px) {
  .activity-density {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .activity-density__segment {
    min-height: 6.9rem;
  }

  .activity-density__segment::before {
    height: 4rem;
  }

  .activity-density__segment--level-0::before {
    height: 0.85rem;
  }

  .activity-density__segment--level-1::before {
    height: 1.85rem;
  }

  .activity-density__segment--level-2::before {
    height: 2.6rem;
  }

  .activity-density__segment--level-3::before {
    height: 3.3rem;
  }

  .activity-density__segment--level-4::before {
    height: 4rem;
  }

  .activity-density__month-label {
    font-size: 0.68rem;
  }
}

.activity-heatmap__hint:hover {
  color: var(--text-soft);
}

.activity-heatmap__legend-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.activity-heatmap__legend-scale {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.maker-card__avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.25rem;
  object-fit: cover;
}

.maker-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-strong);
}

.maker-card p {
  margin: 0 0 0.75rem;
}

.maker-card span {
  color: var(--text-faint);
}

.maker-card--large {
  grid-template-columns: 1fr;
  align-items: start;
}

.search-bar {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.composer-steps {
  display: grid;
  gap: 1rem;
}

.composer-subgrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-preview-meta {
  display: grid;
  gap: 1rem;
}

.mypage-toolbar {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.mypage-filter-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mypage-filter-group a span {
  font-family: var(--font-family-numeric);
}

.mypage-filter-group::-webkit-scrollbar {
  display: none;
}

.mypage-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.mypage-filter-chip span {
  color: var(--text-faint);
}

.mypage-filter-chip:hover {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-strong);
}

.mypage-filter-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background: var(--surface);
  color: var(--text-strong);
}

.mypage-filter-chip.is-active span {
  color: var(--text-soft);
}

.mypage-more {
  display: grid;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.upload-field {
  display: grid;
  gap: 0.75rem;
}

.auth-gate {
  display: grid;
  gap: 1.5rem;
}

.auth-gate__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-shell {
  display: grid;
  gap: 1rem;
}

.legal-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.75rem;
}

.legal-nav {
  display: grid;
  gap: 1rem;
}

.legal-nav-compact {
  display: grid;
  gap: 1rem;
}

.legal-signoff {
  margin-top: 2rem;
}

.record-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.record-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--field-border-hover);
  border-radius: 999px;
  background: var(--button-outline-bg);
  font-size: var(--font-size-support);
  color: var(--text-soft);
}

.record-filter-label__clear {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
}

.mypage-filter-group a {
  white-space: nowrap;
  flex: 0 0 auto;
}

.mypage-filter-group button {
  white-space: nowrap;
  flex: 0 0 auto;
}

.composer-subgrid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-code-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: "Anonymous Pro", sans-serif;
}

.record-code-note--panel {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  justify-content: space-between;
}

.record-code-note-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: "Anonymous Pro", sans-serif;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  justify-content: space-between;
}

.search-bar__field {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--surface-strong);
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.06);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.record-search-input-field {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
}

.record-search-chips {
  min-height: 0;
}

.record-search-input-row {
  position: relative;
  display: block;
}

.search-bar__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.search-bar__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--accent);
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
}

.search-bar input.search-bar__input {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--font-size-search-input);
  line-height: 1.3;
  padding: 1rem 1rem 1rem 3.2rem;
}

.search-bar__input:focus {
  outline: none;
}

.search-bar__hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0 0.2rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.record-search-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.record-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: none;
  border-radius: 0.8rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.record-search-suggestion:hover,
.record-search-suggestion[data-suggestion-highlighted] {
  background: var(--surface-soft);
}

.record-search-suggestion__main {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.record-search-suggestion__main .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex: 0 0 auto;
}

.record-search-suggestion__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-search-suggestion__count {
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  white-space: nowrap;
}

.tag-chip--keyword {
  background: color-mix(in srgb, var(--surface) 70%, var(--button-muted));
  border-color: color-mix(in srgb, var(--text-soft) 18%, var(--border));
}

.tag-chip--keyword .icon {
  width: 0.85rem;
  height: 0.85rem;
}

@media (max-width: 640px) {
  .mypage-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .mypage-filter-group {
    justify-content: flex-start;
  }

  .search-bar__input {
    font-size: var(--font-size-search-input);
    padding-left: 3.2rem;
  }

  .search-bar__hint {
    font-size: 0.78rem;
  }

  .search-bar__icon {
    left: 0.85rem;
    width: 1.35rem;
    height: 1.35rem;
  }
}

.auth-gate__panel p:last-of-type {
  margin: 0;
}

.auth-gate-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.auth-gate-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    var(--surface-muted) 0%,
    var(--bg-muted) 100%
  );
  filter: blur(0.2px);
}

.auth-gate-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.auth-gate-card__body p {
  margin: 0;
  color: var(--text-soft);
}

/* ゲストゲート */
.guest-gate {
  position: relative;
}

.guest-gate__overlay {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  background: linear-gradient(to bottom, transparent, var(--bg-base) 60%);
}

.guest-gate__cta {
  pointer-events: auto;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.guest-gate__message {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.guest-gate__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.avatar-link--button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-state p {
  margin: 0;
}

.news-item p {
  margin: 0;
}

.home-news-card {
  padding: 1rem 1.2rem;
}

.home-news-card__line {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.home-news-card__date {
  color: var(--text-soft);
  white-space: nowrap;
}

.home-news-card__separator {
  color: var(--text-soft);
  white-space: nowrap;
}

.home-news-card__body {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.form-shell {
  min-height: calc(100vh - 12rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}

.stack-form {
  display: grid;
  gap: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.75rem;
}

.form-field__label {
  display: inline-block;
  line-height: 1.4;
  font-weight: 500;
}

.form-field__note {
  font-size: var(--font-size-support);
  color: var(--text-soft);
  line-height: 1.6;
}

.form-field__hint {
  font-size: var(--font-size-support);
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}

.input-prefix-field {
  display: flex;
  align-items: stretch;
}

.input-prefix-field__prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.input-prefix-field input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex: 1;
  min-width: 0;
}

.admin-checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  cursor: pointer;
}

.stack-form input.admin-checkbox-field__input {
  width: 1.1rem;
  min-height: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  border-radius: 0.3rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.stack-form button {
  justify-self: start;
}

.upload-field small {
  font-size: var(--font-size-support);
}

/* ── Tag Input ─────────────────────────────── */
.tag-input-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-input-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.5rem;
}

.tag-input-chips:empty {
  display: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-weak);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 999px;
  padding: 0.15rem 0.55rem 0.15rem 0.75rem;
  font-size: var(--font-size-support);
  color: var(--text);
  line-height: 1.4;
}

.tag-chip__remove {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
}

.tag-chip__remove:hover {
  color: var(--text);
}

.tag-chip__remove .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.tag-input-text {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: var(--font-family-base);
  outline: none;
  transition: border-color 0.15s;
}

.tag-input-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.tag-suggestions {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 0;
  right: 0;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  max-height: 200px;
  overflow-y: auto;
}

.tag-suggestion-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: var(--font-size-support);
  color: var(--text);
  transition: background 0.1s;
}

.tag-suggestion-item:hover,
.tag-suggestion-item[data-suggestion-highlighted] {
  background: var(--accent-weak);
}

/* ── Date input ────────────────────────────── */
.outlined-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: var(--font-family-base);
  outline: none;
  transition: border-color 0.15s;
  accent-color: var(--accent);
}

.outlined-input[type="date"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"].createTextInput {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  padding-right: 14px;
  text-align: left;
}

input[type="date"].createTextInput::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"].createTextInput::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

input[type="date"].createTextInput {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' width='20' viewBox='0 -960 960 960' fill='%234a4a47'%3E%3Cpath d='M320-400h80v-80h-80v80Zm120 0h80v-80h-80v80Zm120 0h80v-80h-80v80ZM320-520h80v-80h-80v80Zm120 0h80v-80h-80v80Zm120 0h80v-80h-80v80ZM240-120q-33 0-56.5-23.5T160-200v-560q0-33 23.5-56.5T240-840h40v-80h80v80h240v-80h80v80h40q33 0 56.5 23.5T800-760v560q0 33-23.5 56.5T720-120H240Zm0-80h480v-360H240v360Zm0-440h480v-120H240v120Zm0 0v-120 120Z'/%3E%3C/svg%3E");
}

.outlined-input:hover {
  border-color: var(--field-border-hover);
}

.outlined-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field-note--error {
  color: #c24d2c;
}

.field-note-error {
  color: #c24d2c;
  font-size: var(--font-size-support);
}

.account-settings-page {
  padding: 0;
}

.account-settings-page__title {
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--font-size-section);
  margin-bottom: 1rem;
}

.account-settings-page__export-panel {
  margin-top: 1.5rem;
}

.account-settings-page__export-heading {
  margin-bottom: 0.75rem;
  font-size: var(--font-size-section);
}

.account-settings-page__export-note {
  margin-top: 0.4rem;
  font-size: var(--font-size-support);
  color: var(--text-soft);
}

.account-settings-page__export-form {
  margin-top: 1rem;
}

.account-settings-page__export-message {
  margin: 0.75rem 0 0;
  font-size: var(--font-size-support);
}

.account-settings-page__export-message[data-state="success"] {
  color: var(--success, #2e7d32);
}

.account-settings-page__export-message[data-state="error"] {
  color: var(--error, #c62828);
}

.danger-panel p {
  margin: 0 0 1rem;
}

.account-settings-page__danger-heading {
  margin-bottom: 0.75rem;
  font-size: var(--font-size-section);
}

.composer-shell {
  padding: 0.25rem 0 2rem;
}

.composer {
  display: grid;
  gap: 1.25rem;
  width: min(58rem, 100%);
  margin: 0 auto;
}

.composer-header__actions button br {
  display: none;
}

.composer-footer__actions {
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.composer-footer-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.hero-copy-block .hero-actions {
  gap: 1rem;
  margin-top: 1rem;
}

.auth-gate__panel .hero-actions {
  gap: 1rem;
  margin-top: 1rem;
}

.auth-login__actions {
  margin-top: 1rem;
}

.admin-users-page__filters-panel {
  margin-bottom: 1rem;
}

.admin-users-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-announcements-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-announcement-edit-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-announcement-edit-page__delete-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-consultations-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.consultation-new-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-profile-page__consultation-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.account-settings-page__billing-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.account-settings-page__billing-expires {
  margin: 0;
  font-size: var(--font-size-support);
  color: var(--text-soft);
}

.admin-announcements-page__list-panel {
  margin-top: 1rem;
}

.admin-announcements-page__empty-state {
  margin-top: 1rem;
}

.admin-user-show-page__form {
  margin-top: 1rem;
}

.admin-consultation-show-page__form {
  margin-top: 1rem;
}

.admin-announcement-edit-page__delete-form {
  margin-top: 1rem;
}

.admin-user-show-page__consultations {
  padding-inline: 0;
}

.admin-consultation-show-page__message {
  font-size: var(--font-size-body);
}

.consultation-new-page__honeypot {
  display: none;
}

.account-settings-page__billing-panel {
  margin-top: 1.5rem;
}

.account-settings-page__billing-heading {
  margin-bottom: 0.75rem;
  font-size: var(--font-size-section);
}

.account-settings-page__checkout-form {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-settings-page__checkout-form button {
  justify-self: start;
}

.composer-main {
  display: grid;
  gap: 1.25rem;
}

.composer-stack {
  display: grid;
  gap: 1rem;
}

.composer-dual-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.composer-field-group {
  display: grid;
  gap: 0.75rem;
}

.composer-section__label {
  margin: 0;
  font-weight: 500;
  color: var(--text-strong);
}

.composer-section--nested {
  margin-top: 0.5rem;
}

.composer-subgrid--single {
  grid-template-columns: minmax(0, 1fr);
}

.composer-fields-single {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.composer-image-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.composer-image-card__preview {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.composer-image-card__caption {
  display: grid;
  gap: 0.65rem;
}

.composer-image-slot {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

[hidden] {
  display: none !important;
}

.composer-image-slot__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.composer-image-slot__actions--footer {
  justify-content: flex-end;
  align-self: end;
}

.composer-image-slot-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
  align-self: end;
}

.composer-image-slot--empty {
  background: var(--surface);
}

.composer-image-slot-empty {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.composer-image-slot__picker {
  justify-items: start;
  margin: 0;
}

.composer-image-picker {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin: 0;
}

.composer-image-slot__picker input[data-image-file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.composer-image-picker input[data-image-file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.composer-image-slot__picker-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--field-border-hover);
  border-radius: 999px;
  background: var(--button-outline-bg);
  color: var(--text-strong);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.composer-image-slot__picker:hover .composer-image-slot__picker-button {
  border-color: var(--accent);
  background: var(--button-outline-hover);
  box-shadow: var(--shadow-soft);
}

.composer-image-picker:hover .composer-image-slot__picker-button {
  border-color: var(--accent);
  background: var(--button-outline-hover);
  box-shadow: var(--shadow-soft);
}

.composer-image-slot__picker:focus-within .composer-image-slot__picker-button {
  border-color: var(--accent);
  background: var(--button-outline-hover);
  box-shadow: var(--shadow-soft);
}

.composer-image-picker:focus-within .composer-image-slot__picker-button {
  border-color: var(--accent);
  background: var(--button-outline-hover);
  box-shadow: var(--shadow-soft);
}

.news-item__title {
  margin: 0;
  font-size: var(--font-size-subheading);
  color: var(--text-strong);
}

.mini-card__title {
  margin: 0;
  font-size: var(--font-size-subheading);
  color: var(--text-strong);
}

.good-log-button {
  gap: 0.6rem;
  padding-inline: 0.92rem 0.98rem;
}

.good-log-button--pill:hover {
  background: var(--button-muted);
  border-color: transparent;
  box-shadow: none;
}

.detail-good-log-button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border-strong));
  background: color-mix(
    in srgb,
    var(--button-outline-hover) 84%,
    var(--surface)
  );
}

.good-log-button--pill:active {
  box-shadow: none;
}

.detail-good-log-button:active {
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
}

.good-log-button__icon {
  display: inline-flex;
  font-size: 1.1rem;
  line-height: 1;
}

.detail-report-link {
  justify-self: end;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: var(--font-size-support);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.detail-report-link:hover {
  color: var(--text-soft);
}

.detail-report-modal .app-modal__message {
  color: var(--text-soft);
}

.detail-report-dialog .app-modal__message {
  color: var(--text-soft);
}

.detail-reaction-dialog .app-modal__message {
  color: var(--text-strong);
}

.detail-reaction-dialog {
  inset: 0;
  width: min(36rem, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-reaction-dialog::backdrop {
  background: color-mix(in srgb, var(--text) 38%, transparent);
  backdrop-filter: blur(3px);
}

.detail-reaction-dialog__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-report-dialog {
  inset: 0;
  width: min(32rem, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-report-dialog::backdrop {
  background: color-mix(in srgb, var(--text) 38%, transparent);
  backdrop-filter: blur(3px);
}

.record-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.record-reaction-form {
  margin: 0;
}

.record-reaction-chip {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--button-outline-bg);
  color: var(--text-soft);
  box-shadow: none;
}

.record-reaction-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--text-strong);
}

.creator-stats-panel__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reaction-summary-panel__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-summary-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.creator-stats-panel__card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.reaction-summary-panel__card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.admin-summary-panel__card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.creator-stats-panel__card strong {
  font-size: 1.6rem;
  line-height: 1;
  font-family: var(--font-family-numeric);
}

.reaction-summary-panel__card strong {
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  font-family: var(--font-family-numeric);
}

.admin-summary-panel__card strong {
  font-size: 1.6rem;
  line-height: 1;
  font-family: var(--font-family-numeric);
}

.creator-stats-panel__card span {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.reaction-summary-panel__card span {
  color: #fff;
  font-size: var(--font-size-support);
}

.admin-summary-panel__card span {
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

[data-type="beautiful_finish"] {
  background: #8fa7a3;
}

[data-type="helpful_process"] {
  background: #9daa9f;
}

[data-type="careful_craft"] {
  background: #afa89a;
}

[data-type="great_idea"] {
  background: #9a9faa;
}

[data-type="want_to_make"] {
  background: #b3a19b;
}

.reference-editor__row input:first-child {
  max-width: 12rem;
}

.reference-editor {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.reference-editor:empty {
  margin-top: 0;
}

.profile-link-actions {
  display: flex;
  justify-content: flex-start;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-button:hover {
  border-color: var(--field-border-hover);
  color: var(--text-strong);
}

.app-modal__close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  flex-shrink: 0;
}

.app-modal__close-button:hover {
  border-color: var(--field-border-hover);
  color: var(--text-strong);
}

.app-modal__close-button:focus-visible {
  border-color: var(--field-border-hover);
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.icon-button:focus-visible {
  border-color: var(--field-border-hover);
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.prose-block p:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block ul:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block ol:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block blockquote:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block pre:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block img:not(:last-child) {
  margin-bottom: 1rem;
}

.prose-block ul {
  padding-left: 1.35rem;
}

.prose-block ol {
  padding-left: 1.35rem;
}

.prose-block__heading-1 {
  margin: 0 0 0.85rem;
  color: var(--text-strong);
  font-size: var(--font-size-display);
}

.prose-block__heading-2 {
  margin: 0 0 0.85rem;
  color: var(--text-strong);
  font-size: var(--font-size-subheading);
}

.prose-block__heading-3 {
  margin: 0 0 0.85rem;
  color: var(--text-strong);
  font-size: var(--font-size-subheading);
}

.prose-block__heading-2:not(:first-child) {
  margin-top: 1.8rem;
}

.prose-block__heading-3:not(:first-child) {
  margin-top: 1.8rem;
}

.prose-block blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--border-strong);
  color: var(--text-soft);
}

.prose-block pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
}

.prose-block code {
  padding: 0.1em 0.4em;
  border-radius: 0.45rem;
  background: var(--button-muted);
}

.prose-block pre code {
  padding: 0;
  background: transparent;
}

.prose-block img {
  border-radius: var(--radius-md);
}

.prose-block a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-item a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.quiet-list-item {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quiet-list-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.quiet-list-item strong {
  color: var(--text-strong);
}

.supporter-strip .surface-panel {
  padding: 1.6rem;
}

.supporter-strip__close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.supporter-strip__close:hover {
  border-color: var(--field-border-hover);
  color: var(--text-strong);
}

.admin-table-shell {
  overflow-x: auto;
}

.admin-users-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-table td {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .lp-hero {
    min-height: auto;
    padding: 6.5rem 0 5rem;
    background-position: center top;
  }

  .lp-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lp-gallery__card,
  .lp-gallery__card--large {
    min-height: 13rem;
  }

  .admin-users-filters {
    grid-template-columns: 1fr;
  }

  .admin-users-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-announcements-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-announcement-edit-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-announcement-edit-page__delete-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-consultations-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consultation-new-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-profile-page__consultation-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-settings-page__billing-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.admin-subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.admin-subnav__link:hover {
  border-color: var(--text-strong);
}

.admin-subnav__link.is-active {
  border-color: var(--text-strong);
  background: var(--button-muted);
  color: var(--text-strong);
}

@media (max-width: 640px) {
  .home-news-card__line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-news-card__separator {
    display: none;
  }

  .home-news-card__date {
    grid-column: 1 / -1;
  }
}

.mini-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.mini-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mini-card div {
  padding: 1.2rem;
}

.flash-stack {
  position: fixed;
  top: 5.25rem;
  left: 50%;
  z-index: 1200;
  display: grid;
  gap: 0.75rem;
  width: min(32rem, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.flash {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: auto;
}

.flash.is-dismissing {
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
}

.app-modal {
  inset: 0;
  width: min(32rem, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-modal::backdrop {
  background: color-mix(in srgb, var(--text) 38%, transparent);
  backdrop-filter: blur(3px);
}

.app-modal__content {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.app-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-modal__message {
  margin: 0;
}

.app-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.floating-record-link {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.9rem;
  min-height: 4.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 1.3rem;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  color: var(--text-strong);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.floating-record-link:hover {
  border-color: var(--field-border-hover);
}

.floating-record-link:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    var(--shadow),
    0 0 0 4px var(--focus-ring);
}

.floating-record-link__icon {
  font-size: 2rem;
}

.floating-record-link__label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.legal-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.legal-nav a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.legal-nav a.is-active {
  background: var(--button-muted);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.legal-content section + section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 0.65rem;
}

.commercial-table__row {
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.commercial-table__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.commercial-table__term {
  color: var(--text-strong);
  font-weight: 500;
}

.commercial-table__description {
  color: var(--text-soft);
}

.site-footer {
  padding: 2rem 0 1rem;
  background-color: var(--shibo-bg-color);
  background-image: var(--shibo-bg-image);
  background-repeat: var(--shibo-bg-repeat);
}

.footer-minimal {
  display: grid;
  justify-items: center;
  text-align: center;
}

.footer-minimal__brand {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  margin: 0 0 2rem;
}

.footer-minimal__brand p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.footer-minimal__sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-minimal__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.55;
  transition: opacity 0.2s;
  background: var(--surface);
}

.footer-minimal__sns-link:hover {
  opacity: 1;
}

.footer-minimal__sns-icon {
  width: 55%;
  height: auto;
}

.footer-minimal__sns-icon._x {
  width: 40%;
}

:root[data-theme="dark"] .footer-minimal__sns-icon {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .footer-minimal__sns-icon {
    filter: invert(1);
  }
}

.footer-minimal__copyright {
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: var(--font-size-support);
}

.footer-minimal__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-minimal__contact-link {
  margin-left: 0.5rem;
}

@media (max-width: 600px) {
  .footer-minimal__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-minimal__contact-link {
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .home-auth-shell {
    grid-template-columns: 1fr;
  }

  .guest-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maker-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }

  .legal-sidebar {
    position: static;
  }

  .commercial-table__row {
    grid-template-columns: 1fr;
  }

  .detail-header--solo {
    width: 100%;
  }

  .detail-layout--solo {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .detail-layout--with-media {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero--guest {
    min-height: auto;
    padding: 1rem 0 2.5rem;
  }

  .page-shell {
    padding-bottom: 3.5rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-page-shell {
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
  }

  .mypage-profile-shell {
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
  }

  .profile-header__main {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-header {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-header__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-header__actions button br {
    display: block;
  }

  .reference-editor__row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .nav-row {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .site-header__inner {
    padding: 0.75rem 0;
  }

  .site-header__utility {
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .site-header__account {
    justify-content: flex-end;
  }

  .header-toggle-group {
    flex-wrap: wrap;
  }

  .composer-header__actions {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .composer-header__actions > * {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 1rem;
  }

  .nav-links--primary {
    display: none;
  }

  .account-menu__popover {
    min-width: min(15rem, calc(100vw - 24px));
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .home-pulse__stats {
    grid-template-columns: 1fr;
  }

  .guest-preview-grid {
    grid-template-columns: 1fr;
  }

  .guest-feature-grid {
    grid-template-columns: 1fr;
  }

  .guest-flow-grid {
    grid-template-columns: 1fr;
  }

  .composer-dual-grid {
    grid-template-columns: 1fr;
  }

  .composer-subgrid {
    grid-template-columns: 1fr;
  }

  .auth-gate__grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .maker-grid {
    grid-template-columns: 1fr;
  }

  .maker-grid--page {
    grid-template-columns: 1fr;
  }

  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .reference-editor__row {
    grid-template-columns: 1fr;
  }

  .composer-image-card {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.2rem;
  }

  .surface-panel {
    padding: 1.2rem;
  }

  .profile-panel {
    padding: 1.2rem;
  }

  .comment-item {
    padding: 1.2rem;
  }

  .landing-login-card {
    padding: 1.2rem;
  }

  .auth-gate__panel {
    padding: 1.2rem;
  }

  .empty-state {
    padding: 1.2rem;
  }

  .creator-stats-panel {
    padding: 1.2rem;
  }

  .reaction-summary-panel {
    padding: 1.2rem;
  }

  .danger-panel {
    padding: 1.2rem;
  }

  .record-reactions-panel {
    padding: 1.2rem;
  }

  .composer-section {
    padding: 1.2rem;
  }

  .detail-media-card {
    padding: 1.2rem;
  }

  .floating-record-link {
    right: max(0.9rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-width: 4.6rem;
    min-height: 4.6rem;
    padding: 0.65rem 0.75rem;
  }

  .home-pulse__chart {
    padding: 1rem;
  }

  .pulse-bars {
    gap: 0.55rem;
    min-height: 10rem;
  }

  .landing-copy__title {
    font-size: clamp(1.75rem, 8vw, var(--font-size-display));
  }

  .home-pulse__title {
    font-size: clamp(1.75rem, 8vw, var(--font-size-display));
  }

  .guest-hero-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .guest-teaser-panel {
    padding: 1.2rem;
  }

  .guest-flow-panel {
    padding: 1.2rem;
  }

  .brand-mark__icon {
    width: 24px;
    height: 24px;
  }

  .activity-panel {
    overflow: visible;
  }

  .activity-density-panel {
    overflow: visible;
  }

  .activity-density__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-mark__logo {
    width: 84px;
    height: auto;
  }

  .creator-stats-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reaction-summary-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-header__record-code {
    font-size: var(--font-size-subheading);
  }
}

/* ============================================================
   Continuation ("続き") feature styles
   ============================================================ */

/* --- Form: continuation selector --- */

.continuation-selector__options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.continuation-option {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.continuation-option:hover {
  background: var(--button-outline-hover);
  color: var(--text);
}

.continuation-option.is-active {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--text-strong);
  font-weight: 500;
}

.continuation-parent-area {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.continuation-parent-area--readonly {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.continuation-parent-area--readonly .continuation-parent-preview {
  background: var(--surface-muted);
  border-style: dashed;
  opacity: 0.85;
}

.continuation-parent-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--font-size-support);
}

.continuation-parent-preview__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.continuation-parent-preview__thumb--empty {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
}

.continuation-parent-preview__thumb--empty .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.continuation-parent-preview__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.continuation-parent-preview__code {
  display: block;
  max-width: 100%;
  font-family: "Anonymous Pro", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continuation-parent-preview__label {
  display: block;
  max-width: 100%;
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outlined-select-field:has([data-itemtype-locked]) {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

.continuation-parent-preview__change {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-caption);
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}

.continuation-parent-preview__change:hover {
  background: var(--button-outline-hover);
  color: var(--text);
}

.continuation-pick-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-support);
  cursor: pointer;
  width: fit-content;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}

.continuation-pick-button:hover {
  background: var(--button-outline-hover);
  color: var(--text);
  border-color: var(--accent);
}

.continuation-pick-button .icon {
  width: 1rem;
  height: 1rem;
}

/* --- Continuation picker modal --- */

.continuation-picker-modal {
  width: min(760px, calc(100vw - 24px));
}

.continuation-picker-modal__content {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  padding: 0;
}

.continuation-picker-modal .app-modal__header {
  padding: 1.25rem 1.5rem 1rem;
}

.continuation-picker-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.continuation-picker-search .search-bar__icon {
  position: static;
  transform: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.continuation-picker-search .search-bar__hint {
  position: static;
  transform: none;
  opacity: 0;
  visibility: hidden;
  flex-shrink: 0;
}

.continuation-picker-search__input:not(:placeholder-shown) ~ .search-bar__hint {
  opacity: 1;
  visibility: visible;
}

.continuation-picker-search__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--font-size-body);
  color: var(--text);
  padding: 0;
}

.continuation-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 0.5rem;
  min-height: 200px;
  border-top: 1px solid var(--border);
}

.continuation-picker-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-faint);
  font-size: var(--font-size-support);
}

.continuation-picker-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-faint);
  font-size: var(--font-size-support);
}

.continuation-picker-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.1s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.continuation-picker-item:hover {
  background: var(--button-muted);
}

.continuation-picker-item__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.continuation-picker-item__thumb--empty {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
}

.continuation-picker-item__thumb--empty .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.continuation-picker-item__body {
  flex: 1;
  min-width: 0;
  display: grid;
}

.continuation-picker-item__code {
  font-family: "Anonymous Pro", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continuation-picker-item__excerpt {
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continuation-picker-item__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-caption);
  color: var(--text-faint);
}

.continuation-status-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
}

.continuation-picker-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.continuation-picker-pager__btn {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.continuation-picker-pager__info {
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  white-space: nowrap;
}

/* --- Show page: parent breadcrumb --- */

.continuation-parent-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  transition:
    background 0.12s,
    color 0.12s;
}

.continuation-parent-crumb:hover {
  background: var(--button-outline-hover);
  color: var(--text);
}

.continuation-parent-crumb__thumb {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.continuation-parent-crumb__label {
  color: var(--text-faint);
}

.continuation-parent-crumb__code {
  font-family: "Anonymous Pro", monospace;
  font-size: 0.75rem;
  font-weight: 500;
}

/* --- Show page: continuation chain --- */

.continuation-chain-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  gap: 0.75rem;
}

.continuation-chain-panel__title {
  font-size: var(--font-size-support);
  font-weight: 500;
  color: var(--text-soft);
}

.continuation-chain-list {
  display: grid;
  gap: 0.35rem;
}

.continuation-chain-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
  color: inherit;
}

.continuation-chain-item:hover {
  background: var(--button-muted);
}

.continuation-chain-item__thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.continuation-chain-item__thumb--empty {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
}

.continuation-chain-item__thumb--empty .icon {
  width: 1rem;
  height: 1rem;
}

.continuation-chain-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.continuation-chain-item__code {
  font-family: "Anonymous Pro", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continuation-chain-item__date {
  font-size: var(--font-size-caption);
  color: var(--text-faint);
  white-space: nowrap;
}

/* --- Show page: "add continuation" CTA --- */

.continuation-add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: var(--font-size-support);
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}

.continuation-add-link:hover {
  background: var(--button-outline-hover);
  color: var(--text);
  border-color: var(--accent);
}

.continuation-add-link .icon {
  width: 1rem;
  height: 1rem;
}

/* --- Record card: continuation badge --- */

.record-card__continuation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: var(--font-size-caption);
  color: var(--text-faint);
}

.record-card__continuation-badge .icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* --- Mobile responsive --- */

@media (max-width: 600px) {
  .continuation-picker-modal__content {
    max-height: 92vh;
  }

  .continuation-picker-modal .app-modal__header {
    padding: 1rem 1.25rem 0.75rem;
  }

  .continuation-picker-search {
    margin: 0 1.25rem;
  }

  .continuation-picker-item {
    padding: 0.75rem 1.25rem;
  }

  .continuation-chain-panel {
    padding: 1rem;
  }
}

/* ── admin-content-filters-page ─────────────────────────────── */

.admin-content-filters-page__form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-content-filters-page__list {
  margin-top: 1.5rem;
}

.admin-content-filters-page__empty-state {
  margin-top: 1.5rem;
}

.admin-content-filters-page__row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ================================================================
   MOBILE RESPONSIVE — Comprehensive fixes
   ================================================================ */

/* Small phones: card grid goes to single column */
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mini-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .auth-gate__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .guest-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .guest-flow-grid {
    grid-template-columns: 1fr;
  }
}

/* Record filter bar: horizontal scroll instead of wrapping */
@media (max-width: 640px) {
  .record-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
  }
}

@media (max-width: 640px) {
  .record-filter-bar::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .record-filter-bar > a {
    flex-shrink: 0;
  }
}

/* Button minimum touch target (44px) */
@media (max-width: 760px) {
  .button-primary {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .button-secondary {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .button {
    min-height: 44px;
  }
}

/* Account menu: right-aligned, capped width on mobile */
@media (max-width: 640px) {
  .account-menu__popover {
    position: fixed;
    top: 3.75rem;
    right: 0.75rem;
    left: auto;
    width: min(18rem, calc(100vw - 1.5rem));
    min-width: 0;
  }
}

/* Notification menu: fixed to viewport so it never clips off screen */
@media (max-width: 640px) {
  .notification-menu__popover {
    position: fixed;
    top: 3.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    min-width: 0;
  }
}

/* Home hero: improve mobile spacing */
@media (max-width: 600px) {
  .hero--guest {
    padding: 1.5rem 0 2rem;
  }
}

@media (max-width: 600px) {
  .landing-copy__title {
    font-size: clamp(1.65rem, 6vw, 2.5rem);
  }
}

/* Guest feature cards: single column on small phones */
@media (max-width: 600px) {
  .guest-feature-card {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Profile page shell: better mobile layout */
@media (max-width: 600px) {
  .profile-page-shell {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .profile-header__main {
    align-items: flex-start;
  }
}

/* Stack form inputs: larger touch targets on mobile */
@media (max-width: 760px) {
  .stack-form input {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .stack-form select {
    min-height: 44px;
  }
}

/* Material outlined field: larger on mobile */
@media (max-width: 760px) {
  .material-outlined-field__input {
    min-height: 44px;
  }
}

/* Section padding: tighter on mobile */
@media (max-width: 600px) {
  .section {
    padding-bottom: 1.5rem;
  }
}

/* Record card body: slightly smaller padding on mobile */
@media (max-width: 480px) {
  .record-card__body {
    padding: 0.9rem 0.9rem 1rem;
    gap: 0.65rem;
  }
}

/* Surface panel padding: reduce on mobile */
@media (max-width: 480px) {
  .surface-panel {
    padding: 1.2rem;
  }
}

/* Search bar: ensure it doesn't clip on very small screens */
@media (max-width: 480px) {
  .search-bar__hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-bar__input {
    padding-right: 1rem;
  }
}

/* Mypage filter bar: scrollable on mobile */
@media (max-width: 600px) {
  .mypage-toolbar {
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .mypage-filter-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow-x: visible;
  }
}

@media (max-width: 600px) {
  .mypage-filter-chip {
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.4rem;
    min-height: 2.2rem;
    font-size: 0.9rem;
  }
}

/* Maker grid: 1 column on small phones */
@media (max-width: 600px) {
  .maker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .maker-grid--page {
    grid-template-columns: 1fr;
  }
}

/* Legal layout: ensure padding on mobile */
@media (max-width: 600px) {
  .legal-content {
    padding: 1.2rem;
  }
}

@media (max-width: 600px) {
  .legal-sidecard {
    padding: 1.2rem;
  }
}

/* Home pulse stats: single column on mobile, unified card with dividers */
@media (max-width: 600px) {
  .home-pulse__stats {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .home-pulse__stat {
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 600px) {
  .home-pulse__stat:last-child {
    border-bottom: none;
  }
}

/* Floating record link: ensure it doesn't overlap content */
@media (max-width: 480px) {
  .floating-record-link {
    min-width: 4.2rem;
    min-height: 4.2rem;
    border-radius: 1rem;
  }
}

/* Detail page: tighter on mobile */
@media (max-width: 480px) {
  .detail-media-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .composer-section {
    padding: 1rem;
  }
}

/* Modal: full-width on small screens */
@media (max-width: 480px) {
  .app-modal {
    margin: auto 0.75rem;
    width: calc(100vw - 1.5rem);
    max-width: none;
    border-radius: var(--radius-md);
  }
}

/* Auth gate grid: 2cols then 1col */
@media (max-width: 760px) {
  .auth-gate__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hero chart bars: smaller gap on mobile */
@media (max-width: 480px) {
  .pulse-bars {
    gap: 0.35rem;
  }
}

/* Navigation row: tighter on mobile */
@media (max-width: 480px) {
  .nav-row {
    gap: 0.75rem;
  }
}

/* Site header inner: reduce padding on mobile */
@media (max-width: 480px) {
  .site-header__inner {
    padding: 0.65rem 0;
  }
}

/* Record chips: wrap more naturally */
@media (max-width: 480px) {
  .record-card__chips {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* Composer subgrid: responsive on mobile */
@media (max-width: 640px) {
  .composer-subgrid--triple {
    grid-template-columns: 1fr;
  }
}

/* Stack form: full width buttons on mobile */
@media (max-width: 480px) {
  .stack-form > .button-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stack-form > .button-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Notification menu popover: constrain height on mobile */
@media (max-width: 640px) {
  .notification-menu__popover {
    max-height: min(24rem, 70vh);
    overflow-y: auto;
  }
}

/* detail-actions: stack on mobile */
@media (max-width: 480px) {
  .detail-actions {
    flex-wrap: wrap;
  }
}

/* section-heading: smaller font on mobile */
@media (max-width: 480px) {
  .section-heading__title {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }
}

/* continuation picker: better mobile */
@media (max-width: 600px) {
  .continuation-picker {
    max-width: 100%;
  }
}

/* Brand mark: hide text logo on very tiny screens */
@media (max-width: 360px) {
  .brand-mark__logo {
    display: none;
  }
}

/* ================================================================
   COMPOSER FORM — Mobile improvements
   ================================================================ */

/* Hide top save buttons (duplicate of footer bar) on mobile */
@media (max-width: 760px) {
  .composer-header__actions {
    display: none;
  }
}

.composer-footer-bar--edit > button br {
  display: none;
}

/* Footer bar: sticky at bottom on mobile */
@media (max-width: 760px) {
  .composer-footer-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    box-sizing: border-box;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
  }

  .composer-footer-bar > button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
  }

  /* 編集モード: ラベルが長いので2行折り返し許可 */
  .composer-footer-bar--edit > button {
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    line-height: 1.3;
    min-height: 52px;
  }

  .composer-footer-bar--edit > button br {
    display: block;
  }
}

/* ================================================================
   STATS GRIDS — Single column with dividers on mobile
   ================================================================ */

/* creator-stats-panel__grid (届き方の記録) */
@media (max-width: 600px) {
  .creator-stats-panel__grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .creator-stats-panel__card {
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 600px) {
  .creator-stats-panel__card:last-child {
    border-bottom: none;
  }
}

/* reaction-summary-panel__grid (受け取ったグッドログ) */
@media (max-width: 600px) {
  .reaction-summary-panel__grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .reaction-summary-panel__card {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .reaction-summary-panel__card:last-child {
    border-bottom: none;
  }
}

/* ================================================================
   reCAPTCHA v3 — バッジを非表示
   (プライバシーポリシーに reCAPTCHA の利用を明記済み)
   ================================================================ */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ================================================================
   Pager
   ================================================================ */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.pager__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.pager__btn:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

.pager__btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.pager__info {
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  min-width: 4rem;
  text-align: center;
}

/* ================================================================
   Admin Pager
   ================================================================ */
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-pager__info {
  font-size: var(--font-size-caption);
  color: var(--text-soft);
  min-width: 10rem;
  text-align: center;
}

.admin-btn--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* FAB: hide when footer is in view */
.footer-in-view .floating-record-link {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
