:root {
  --bg: #f4efe3;
  --bg-2: #ebe3d2;
  --ink: #1c2420;
  --muted: #68736c;
  --line: rgba(43, 57, 50, 0.18);
  --panel: rgba(255, 252, 244, 0.84);
  --panel-solid: #fffaf0;
  --green: #173f34;
  --green-2: #275b4c;
  --gold: #b6812f;
  --orange: #df7f26;
  --edge: rgba(39, 73, 63, 0.26);
  --edge-active: #df7f26;
  --shadow: 0 20px 60px rgba(27, 38, 32, 0.16);
  --radius: 8px;
  --font-scale: 1;
  color-scheme: light;
}

html.theme-dark,
body.theme-dark {
  --bg: #101613;
  --bg-2: #17211d;
  --ink: #f2efe6;
  --muted: #aeb9b2;
  --line: rgba(237, 225, 202, 0.16);
  --panel: rgba(25, 34, 30, 0.84);
  --panel-solid: #1a241f;
  --green: #d7eadb;
  --green-2: #9fc9ad;
  --gold: #d9ad60;
  --orange: #f09a3e;
  --edge: rgba(215, 234, 219, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

html.font-small,
body.font-small { --font-scale: 0.92; }
html.font-large,
body.font-large { --font-scale: 1.12; }

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: calc(16px * var(--font-scale));
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(182, 129, 47, 0.12), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

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

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.map-node:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 78%, white);
  outline-offset: 3px;
}

.page-back-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.page-back-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-back-button:hover,
.page-back-button:focus-visible {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 7%, transparent);
}

.page-map {
  height: 100vh;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-icon-dark {
  display: none;
}

html.theme-dark .brand-icon-light,
body.theme-dark .brand-icon-light {
  display: none;
}

html.theme-dark .brand-icon-dark,
body.theme-dark .brand-icon-dark {
  display: block;
}

.top-search {
  position: fixed;
  z-index: 20;
  top: 28px;
  left: 104px;
  width: min(300px, calc(100vw - 128px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.search-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 0 0 2px;
  background: rgba(255, 252, 244, 0.04);
  backdrop-filter: blur(4px);
  transition: background 0.18s ease;
}

.search-form:focus-within {
  background: rgba(255, 252, 244, 0.16);
  backdrop-filter: blur(8px);
}

.search-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--gold);
  opacity: 0.74;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 5px 2px;
  transition: border-color 0.18s ease;
}

.search-form:focus-within input {
  border-bottom-color: color-mix(in srgb, var(--green-2) 72%, var(--gold));
}

body.theme-dark .search-form input {
  background: transparent;
}

.thread-action.favorite-pop svg {
  animation: favoriteStarPop 240ms cubic-bezier(0.2, 1.5, 0.35, 1);
  transform-origin: center;
}

.thread-action.favorite-pop::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 50% 0 / 5px 5px no-repeat,
    radial-gradient(circle, currentColor 0 1.5px, transparent 2px) 100% 45% / 5px 5px no-repeat,
    radial-gradient(circle, currentColor 0 1.5px, transparent 2px) 50% 100% / 5px 5px no-repeat,
    radial-gradient(circle, currentColor 0 1.5px, transparent 2px) 0 45% / 5px 5px no-repeat;
  opacity: 0;
  animation: favoriteBurst 260ms ease-out;
}

.search-message {
  margin: -2px 0 0 22px;
  min-height: 14px;
  color: var(--orange);
  font-size: 0.72em;
}

.search-suggestions {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(27, 38, 32, 0.06);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 6px 7px;
  cursor: pointer;
  text-align: left;
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  background: rgba(182, 129, 47, 0.14);
}

.search-suggestions strong {
  font-size: 0.9em;
}

.search-suggestions span,
.search-suggestions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76em;
}

.map-stage {
  width: 100vw;
  height: 100vh;
  cursor: grab;
  touch-action: none;
}

.map-stage.dragging {
  cursor: grabbing;
}

.knowledge-map {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

.map-edge {
  stroke: var(--edge);
  stroke-width: 4;
  fill: none;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s;
}

.map-edge.active {
  stroke: var(--edge-active);
  stroke-width: 9;
  opacity: 1;
}

.map-edge.related {
  stroke-dasharray: 8 10;
  opacity: 0.34;
}

.map-edge.component {
  stroke-dasharray: 3 7;
  opacity: 0.48;
}

.map-edge.influences {
  stroke-dasharray: 10 5;
  opacity: 0.42;
}

.map-edge.contrast {
  stroke-dasharray: 5 8;
  opacity: 0.38;
}

.map-edge.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-edge.visible {
  opacity: 0.9;
}

.map-edge.muted {
  opacity: 0.14;
}

.map-edge.path-active {
  opacity: 1;
}

.map-edge.hierarchy-child-edge {
  stroke: color-mix(in srgb, var(--orange) 58%, var(--gold));
  stroke-width: 6;
  opacity: 0.78;
}

.map-edge.component-neighbor {
  stroke: var(--gold);
  stroke-width: 5;
  opacity: 0.62;
}

.map-edge.influences-neighbor {
  stroke: color-mix(in srgb, #2e8b74 70%, var(--gold));
  stroke-width: 5;
  opacity: 0.58;
}

.map-edge.contrast-neighbor {
  stroke: color-mix(in srgb, #6b6f7a 68%, var(--gold));
  stroke-width: 4.5;
  opacity: 0.54;
}

.map-edge.related-neighbor {
  stroke: var(--gold);
  stroke-width: 3.5;
  opacity: 0.28;
}

.map-node {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.map-node.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-node.visible {
  opacity: 1;
}

.map-node.muted {
  opacity: 0.24;
}

.map-node.component-neighbor .node-shape {
  stroke: var(--gold);
  stroke-width: 4.2;
}

.map-node.influences-neighbor .node-shape {
  stroke: color-mix(in srgb, #2e8b74 70%, var(--gold));
  stroke-width: 3.7;
}

.map-node.contrast-neighbor .node-shape {
  stroke: color-mix(in srgb, #6b6f7a 68%, var(--gold));
  stroke-width: 3.5;
}

.map-node.related-neighbor .node-shape {
  stroke: color-mix(in srgb, var(--gold) 65%, var(--green-2));
  stroke-width: 3;
}

.map-node .node-shape {
  fill: var(--panel-solid);
  stroke: var(--green-2);
  stroke-width: 2.4;
  filter: drop-shadow(0 8px 16px rgba(18, 31, 26, 0.12));
  transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
  vector-effect: non-scaling-stroke;
}

.map-node text {
  fill: var(--ink);
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.map-node.depth-0 .node-shape {
  fill: var(--green);
  stroke: var(--gold);
  stroke-width: 4;
}

.map-node.depth-0 text {
  fill: var(--panel-solid);
}

.map-node.depth-1 .node-shape {
  fill: color-mix(in srgb, var(--panel-solid) 82%, var(--green-2));
}

.map-node.depth-3 .node-shape {
  fill: color-mix(in srgb, var(--panel-solid) 90%, var(--gold));
  stroke-width: 2;
}

.map-node.selected .node-shape {
  fill: color-mix(in srgb, var(--orange) 24%, var(--panel-solid));
  stroke: var(--orange);
  stroke-width: 4;
}

.map-node.active .node-shape {
  stroke: var(--orange);
  stroke-width: 4;
}

.map-node.path-active text {
  fill: var(--ink);
}

.map-node.depth-0.path-active text {
  fill: var(--panel-solid);
}

.map-node.expanded-child {
  animation: nodeFadeIn 0.22s ease both;
}

.map-node:focus-visible .node-shape {
  stroke: var(--orange);
  stroke-width: 5;
}

@keyframes nodeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.node-drawer,
.settings-drawer {
  position: fixed;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.node-drawer {
  right: 22px;
  top: 120px;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 156px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 8px 20px;
  transform: translateX(calc(100% + 42px));
  transition: transform 0.25s ease;
}

.node-drawer.open {
  transform: translateX(0);
}

.node-drawer.has-threads {
  padding: 18px 8px 20px;
}

.drawer-label,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78em;
  font-weight: 700;
}

.node-drawer h1 {
  margin: 0 0 12px;
  font-size: 1.65em;
}

.node-drawer.has-threads h1 {
  margin-bottom: 8px;
}

.node-drawer p {
  line-height: 1.8;
}

.sample-cards {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
}

.node-drawer.has-threads .sample-cards {
  margin: 10px 0 0;
}

.sample-card,
.thread-card {
  width: 100%;
  margin: 0;
  padding: 12px 0 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.thread-list {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.thread-list > strong {
  display: none;
}

.thread-card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--muted);
  font-size: 0.76em;
  line-height: 1.38;
}

.thread-card-head strong {
  color: var(--ink);
  font-size: 1em;
  font-weight: 800;
  line-height: inherit;
  overflow-wrap: anywhere;
}

.thread-card-head span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.thread-source-media {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
  line-height: 1;
}

.thread-source-logo-img,
.thread-source-logo-svg {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.02em;
  height: 1.02em;
  color: currentColor;
  opacity: 0.82;
  vertical-align: -0.14em;
}

.thread-source-logo-img {
  object-fit: contain;
}

.thread-source-logo-img-x {
  box-sizing: border-box;
  padding: 0.18em;
  border-radius: 999px;
  background: #111;
}

.thread-source-logo-img-instagram {
  box-sizing: border-box;
  padding: 0.06em;
  border-radius: 0.24em;
  background: rgba(255, 255, 255, 0.86);
}

.thread-source-logo-img-youtube {
  width: 1.16em;
}

.thread-source-logo-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thread-card-head span::before,
.thread-card-head time::before {
  content: "/";
  margin-right: 8px;
  color: color-mix(in srgb, var(--muted) 58%, transparent);
}

.thread-card-head time {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 1em;
  font-weight: 600;
}

.thread-card-body {
  margin-top: 6px;
  margin-left: 12px;
}

.thread-card-title {
  display: none;
}

.thread-card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 1em;
  line-height: 1.66;
  overflow-wrap: anywhere;
}

.thread-media {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  margin-left: 12px;
  width: calc(100% - 12px);
}

.thread-media-item {
  display: block;
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--panel-solid) 82%, var(--green) 8%);
  object-fit: cover;
}

.thread-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
  margin-left: 12px;
  max-width: calc(100% - 12px);
}

.thread-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  overflow: visible;
}

.thread-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thread-action.active {
  color: var(--orange);
}

.thread-action.active svg {
  fill: currentColor;
}

.thread-action:hover,
.thread-action:focus-visible {
  background: transparent;
  color: var(--orange);
}

.thread-action-detail {
  margin-left: auto;
  width: 28px;
  height: 28px;
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
}

.thread-action-detail svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.thread-action-detail:hover,
.thread-action-detail:focus-visible {
  color: var(--muted);
}

@keyframes favoriteStarPop {
  0% {
    transform: scale(0.92);
  }
  45% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes favoriteBurst {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  40% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thread-action.favorite-pop svg,
  .thread-action.favorite-pop::after {
    animation: none;
  }
}

.settings-button {
  position: fixed;
  z-index: 32;
  left: 19px;
  right: auto;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
}

.settings-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-button:hover,
.settings-button:focus-visible {
  color: var(--orange);
  transform: translateY(-1px);
}

.settings-drawer {
  left: 96px;
  right: auto;
  bottom: 24px;
  width: 286px;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.settings-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-drawer::after {
  content: "";
  position: absolute;
  left: -10px;
  right: auto;
  bottom: 22px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.settings-drawer h2 {
  margin: 0 0 14px;
  font-size: 1.1em;
}

.operator-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74em;
}

.operator-logo {
  display: block;
  width: 82px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
}

.logo-dark {
  display: none;
}

body.theme-dark .logo-light {
  display: none;
}

body.theme-dark .logo-dark {
  display: block;
}

.setting-group + .setting-group {
  margin-top: 14px;
}

.setting-group p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9em;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--green);
  color: var(--panel-solid);
}

.page-nav {
  position: fixed;
  z-index: 22;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  height: 100vh;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 24px 12px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.page-nav a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
}

.page-nav a:not(.nav-logo) {
  font-size: 1.52rem;
}

.page-nav .nav-logo {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  color: inherit;
}

.page-nav .nav-logo.active {
  background: transparent;
  color: inherit;
}

.page-nav .nav-logo .brand-icon {
  width: 40px;
  height: 40px;
}

.page-nav a.active {
  background: var(--green);
  color: var(--panel-solid);
}

.page-nav .nav-star svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-nav .nav-search svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-nav .nav-star:hover,
.page-nav .nav-star:focus-visible,
.page-nav .nav-search:hover,
.page-nav .nav-search:focus-visible {
  color: var(--orange);
}

.page-nav .nav-star.active svg {
  fill: currentColor;
}

.page-standard {
  min-height: 100vh;
  padding: 34px 24px 110px 112px;
}

.index-layout {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.account-shell {
  width: min(960px, 100%);
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 660px) 232px;
  gap: 32px;
  align-items: start;
}

.list-shell {
  width: min(660px, 100%);
  margin: 0 auto 0 0;
}

.account-primary {
  min-width: 0;
}

.account-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.account-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.48rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.list-hero {
  align-items: center;
}

.list-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.list-count {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 700;
}

.account-profile-card,
.account-notification-card,
.account-list-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 10px 26px rgba(27, 38, 32, 0.07);
}

.account-profile-card {
  padding: 14px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.92em;
  line-height: 1.42;
}

.account-profile strong,
.account-profile span {
  display: block;
}

.account-profile strong {
  color: var(--ink);
  font-size: 1.08em;
}

.account-avatar {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 35%, var(--gold) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 88%, var(--green-2) 0 38%, transparent 39%),
    var(--panel-solid);
}

.account-main {
  display: grid;
  gap: 10px;
}

.account-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.account-side {
  position: sticky;
  top: 34px;
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.account-list-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.account-notification-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.account-notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9em;
  font-weight: 700;
}

.account-toggle {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8em;
  cursor: pointer;
}

.account-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.account-toggle input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.account-notification-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78em;
}

.account-side-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
}

.account-search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86em;
}

.account-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 2px;
}

.account-sort,
.account-list-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-sort:hover,
.account-sort:focus-visible,
.account-list-button:hover,
.account-list-button:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.account-sort svg,
.account-list-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-sort {
  width: 36px;
  height: 36px;
}

.account-sort svg {
  width: 20px;
  height: 20px;
}

.account-list-button.active {
  color: var(--green);
}

.account-list-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

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

.account-list-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 2px;
  font-size: 0.88em;
}

.account-list-submit {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-list-submit:hover,
.account-list-submit:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.account-list-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-user-lists {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-user-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 58%, transparent);
  padding: 8px;
}

.account-user-list-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 0 9px 2px;
  text-align: left;
  cursor: pointer;
}

.account-user-list-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96em;
  font-weight: 700;
}

.account-user-list-main small,
.account-empty-list {
  color: var(--muted);
  font-size: 0.88em;
}

.account-user-list-main svg,
.account-user-list-delete svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.account-user-list-delete {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 74%, transparent);
  cursor: pointer;
}

.account-user-list-delete:hover,
.account-user-list-delete:focus-visible {
  color: var(--orange);
}

.account-list-popover {
  position: fixed;
  z-index: 80;
  width: 238px;
  max-width: calc(100vw - 24px);
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(27, 38, 32, 0.18);
  backdrop-filter: blur(18px);
}

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

.account-popover-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 2px;
  text-align: left;
  cursor: pointer;
}

.account-popover-list:hover,
.account-popover-list:focus-visible {
  color: var(--green);
}

.account-popover-list.active {
  color: var(--green);
}

.account-popover-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82em;
  font-weight: 700;
}

.account-popover-list small {
  color: var(--muted);
  font-size: 0.74em;
}

.account-popover-list svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-popover-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.account-popover-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 2px;
  font-size: 0.78em;
}

.account-popover-form button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-popover-form button:hover,
.account-popover-form button:focus-visible {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.account-popover-form svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-timeline {
  display: grid;
  gap: 0;
}

.account-favorite-item {
  width: 100%;
  margin: 0;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
}

.account-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.88em;
}

.local-sync-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 10px 26px rgba(27, 38, 32, 0.07);
}

.local-sync-panel p,
.local-sync-panel small {
  margin: 0;
}

.local-sync-panel p {
  color: var(--ink);
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.45;
}

.local-sync-panel small,
.local-sync-result {
  color: var(--muted);
  font-size: 0.78em;
}

.local-sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.local-sync-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 9px;
  font-size: 0.78em;
  cursor: pointer;
}

.local-sync-actions button:hover,
.local-sync-actions button:focus-visible {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.local-sync-actions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-shell {
  width: min(720px, 100%);
  margin: 0 auto 0 0;
}

.auth-status,
.auth-note {
  color: var(--muted);
  font-size: 0.88em;
}

.unsubscribe-status[data-state="error"] {
  color: #b44b4b;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.auth-form h2 {
  margin: 0;
  font-size: 1rem;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82em;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 2px;
  font: inherit;
}

.auth-form button,
.auth-logout,
.auth-required-actions a,
.auth-required-actions button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.auth-form button:hover,
.auth-form button:focus-visible,
.auth-logout:hover,
.auth-logout:focus-visible,
.auth-required-actions a:hover,
.auth-required-actions a:focus-visible,
.auth-required-actions button:hover,
.auth-required-actions button:focus-visible {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.auth-logout {
  margin-top: 18px;
}

.auth-required-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(10px);
}

.auth-required-dialog {
  width: min(320px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 16px 42px rgba(27, 38, 32, 0.18);
}

.auth-required-dialog p {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.6;
}

.auth-required-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-shell {
  width: min(1080px, 100%);
  margin: 0 auto 0 0;
  display: grid;
  gap: 18px;
}

.admin-status {
  min-height: 1.4em;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.88em;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.admin-filters[hidden] {
  display: none;
}

.admin-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78em;
}

.admin-filters input,
.admin-filters select {
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 2px;
  font: inherit;
}

.admin-filters button,
.admin-detail-button {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.admin-filters button:hover,
.admin-filters button:focus-visible,
.admin-detail-button:hover,
.admin-detail-button:focus-visible,
.admin-detail-button.active {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
  color: var(--green);
}

.admin-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.admin-section h2,
.admin-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.admin-section h3 {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-metric {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-metric span,
.admin-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 0.76em;
}

.admin-metric strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.15;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.admin-columns > div,
.admin-detail {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.admin-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82em;
}

.admin-table th,
.admin-table td {
  border-top: 1px solid var(--line);
  padding: 8px 8px 8px 0;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-weight: 700;
}

.admin-table td {
  color: var(--ink);
}

.admin-table td:nth-child(2) {
  white-space: normal;
  min-width: 160px;
}

.admin-detail-head {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-detail-head strong {
  color: var(--ink);
  line-height: 1.45;
}

.admin-detail-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-empty {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.88em;
}

.index-list-shell {
  width: min(660px, 100%);
  margin: 0 auto 0 0;
  display: grid;
  gap: 12px;
}

.index-list-header {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.index-list-header h1 {
  margin: 10px 0 0;
  font-size: clamp(1.48rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.index-list-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.65;
}

.index-list-search {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.index-layout {
  display: grid;
  gap: 0;
}

.kana-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.kana-nav a,
.index-section a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 58%, transparent);
}

.kana-nav a {
  min-width: 34px;
  padding: 5px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
}

.index-section {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.index-section h2 {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.95em;
  line-height: 1.4;
}

.index-section div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.index-section a {
  padding: 6px 9px;
  color: var(--ink);
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.35;
}

.operator-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 12px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.78em;
}

.page-article {
  min-height: 100vh;
  padding: 42px 24px 64px 112px;
  overflow: auto;
}

.article-shell {
  width: min(100%, 660px);
  margin: 0 auto 0 0;
}

.article-detail {
  display: grid;
  gap: 18px;
  width: 100%;
}

.article-detail h1 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.64rem, 3vw, 2.34rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.article-path,
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 0.84em;
  line-height: 1.5;
}

.article-path {
  gap: 6px;
  margin-bottom: -10px;
  font-weight: 700;
}

.article-path a:hover,
.article-path a:focus-visible,
.article-node-chips a:hover,
.article-node-chips a:focus-visible {
  color: var(--green);
}

.article-path span,
.article-meta span,
.article-meta time {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}

.article-meta > span::before,
.article-meta time::before {
  content: "/";
  margin-right: 8px;
  color: color-mix(in srgb, var(--muted) 42%, transparent);
}

.article-meta {
  margin-top: -8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 8px 12px;
  line-height: 1.55;
}

.article-meta strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.article-meta time {
  font-size: 0.86rem;
  font-weight: 600;
}

.article-meta-media {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  line-height: 1;
}

.article-meta-media .article-source-logo-img {
  width: 18px;
  height: 18px;
  opacity: 0.86;
  vertical-align: -0.2em;
}

.article-meta-media .article-source-logo-img-note {
  width: 17px;
  height: 17px;
}

.article-meta-media svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.article-platform-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.article-platform-icon svg,
.article-open-icon svg,
.article-reference-open svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-body {
  display: grid;
  gap: 16px;
  margin: 6px 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.04em;
  line-height: 1.92;
}

.article-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.article-reference {
  display: grid;
  gap: 7px;
  margin: 4px 0 0 18px;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 0.96em;
}

.article-reference-profile {
  justify-items: start;
  gap: 0;
  margin-top: 6px;
  padding-top: 14px;
}

.article-reference-fallback {
  justify-items: start;
  gap: 0;
  padding-top: 12px;
}

.article-embed {
  width: min(100%, 500px);
  max-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
}

.article-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.article-embed-video {
  height: 240px;
}

.article-embed-video iframe {
  height: 100%;
}

.article-embed-x {
  display: none;
  height: auto;
  max-height: none;
  border: 0;
}

.article-embed-x.is-ready {
  display: block;
  max-height: 300px;
  border: 1px solid var(--line);
}

.article-embed-x iframe {
  max-height: 300px !important;
}

.article-embed-page iframe {
  height: 190px;
}

.article-embed-note iframe {
  height: 220px;
}

.article-embed-bbs {
  width: 100%;
  max-height: none;
}

.article-embed-bbs iframe {
  height: 440px;
}

.article-reference-open:hover,
.article-reference-open:focus-visible {
  color: var(--green);
}

.article-reference-open {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.article-reference-open-profile {
  margin-left: 0;
  width: 34px;
  height: 34px;
}

.article-reference-fallback .article-reference-open {
  margin-left: 0;
}

.article-source-logo-img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.article-reference-open-profile .article-source-logo-img {
  width: 30px;
  height: 30px;
}

.article-source-logo-img-x {
  box-sizing: border-box;
  padding: 3px;
  border-radius: 999px;
  background: #111;
}

.article-source-logo-img-instagram {
  box-sizing: border-box;
  padding: 1px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
}

.article-source-logo-img-note {
  width: 18px;
  height: 18px;
}

.article-open-icon {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  color: var(--muted);
}

.article-node-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 18px;
}

.article-node-chips a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
}

.article-empty {
  min-height: 50vh;
  place-content: center;
}

@media (max-width: 760px) {
  .top-search {
    top: 10px;
    left: 10px;
    width: min(360px, calc(100vw - 20px));
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .top-search .brand {
    font-size: 0.92em;
  }

  .search-message {
    margin-left: 24px;
  }

  .node-drawer {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 78px;
    width: auto;
    max-height: 46vh;
    overflow: auto;
    transform: translateY(calc(100% + 96px));
  }

  .node-drawer.open {
    transform: translateY(0);
  }

  .page-nav {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 6px;
    border-radius: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  }

  .page-nav a {
    width: auto;
    height: 40px;
    flex: 1;
    text-align: center;
  }

  .page-nav .nav-logo {
    display: none;
  }

  .settings-button {
    left: 14px;
    right: auto;
    bottom: 72px;
    width: 40px;
    height: 40px;
  }

  .settings-drawer {
    left: 14px;
    right: 14px;
    bottom: 134px;
    width: auto;
  }

  .settings-drawer::after {
    display: none;
  }

  .page-standard {
    padding: 22px 14px 98px;
  }

  .account-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-hero {
    display: grid;
    gap: 10px;
  }

  .account-side {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 0;
  }

  .account-profile {
    margin-top: 0;
    min-width: 0;
  }

  .account-avatar {
    width: 44px;
  }

  .admin-shell {
    width: 100%;
  }

  .admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .admin-filters button {
    grid-column: 1 / -1;
  }

  .admin-metrics,
  .admin-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-table {
    min-width: 620px;
  }

  .sample-card,
  .thread-card,
  .account-favorite-item {
    padding: 13px 0 11px;
  }

  .thread-card-head {
    font-size: 0.76em;
    line-height: 1.38;
  }

  .thread-card-body {
    margin-top: 6px;
    margin-left: 10px;
  }

  .thread-card-body p {
    -webkit-line-clamp: 3;
    font-size: 1em;
    line-height: 1.68;
  }

  .thread-actions {
    margin-top: 6px;
    margin-left: 10px;
    width: calc(100% - 10px);
  }

  .account-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .index-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .index-list-shell {
    width: 100%;
  }

  .kana-nav {
    gap: 5px;
    padding: 7px 0;
  }

  .kana-nav a {
    min-width: 32px;
    padding: 5px 7px;
  }

  .index-section h2 {
    margin-top: 0;
  }

  .index-section a {
    padding: 7px 9px;
  }

  .page-article {
    padding: 26px 16px 96px;
  }

  .article-shell {
    width: 100%;
    margin: 0;
  }

  .article-detail {
    gap: 20px;
  }

  .article-detail h1 {
    font-size: clamp(1.62rem, 8.2vw, 2.2rem);
  }

  .article-body {
    margin-left: 18px;
    font-size: 1.02em;
    line-height: 1.9;
  }

  .article-reference,
  .article-node-chips {
    margin-left: 18px;
  }

  .article-embed {
    width: 100%;
  }

  .article-embed-video {
    height: 210px;
  }

  .article-embed-x {
    height: auto;
  }

  .article-embed-x.is-ready {
    max-height: 280px;
  }

  .article-embed-x iframe {
    max-height: 280px !important;
  }

  .article-embed-page iframe {
    height: 170px;
  }
}
