.nip-explorer-page {
  background: #f5f6f3;
}

.nip-explorer-page main {
  max-width: 1180px;
  padding: .65rem 1rem 3rem;
}

.compact-identity {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
}

.compact-identity a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink);
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: .38rem;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
}

/* NIP-07 のサインイン欄。npub は63文字あるので、375px でも横に溢れず折り返す。 */
.viewer-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .18rem .4rem;
  min-width: 0;
  max-width: 100%;
}

.viewer-identity .viewer-state {
  color: var(--ink);
  font-weight: 850;
}

.viewer-identity[data-viewer-status="signedOut"] .viewer-state,
.viewer-identity[data-viewer-status="pending"] .viewer-state {
  color: var(--muted);
}

.viewer-identity .viewer-reason {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.viewer-npub {
  min-width: 0;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.viewer-action[aria-disabled="true"] {
  color: var(--muted);
  text-decoration: none;
}

.profile-npub.is-signed-out {
  color: var(--muted);
}

.feature-search {
  padding: .35rem 0 .55rem;
}

.feature-main-search {
  display: block;
}

.feature-main-search span {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.feature-main-search input {
  padding: .7rem .8rem;
  border-color: #7e8982;
  font-size: .95rem;
}

.feature-chips {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .45rem;
}

.feature-chip {
  display: flex;
  min-width: 0;
  min-height: 3.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  padding: .38rem .2rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.feature-chip:hover {
  border-color: #7866d3;
}

.feature-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e9e3ff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.feature-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.feature-chip-label {
  max-width: 100%;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.feature-description {
  display: none;
}

.feature-chip-empty {
  grid-column: 1 / -1;
  padding: .8rem;
  border: 1px dashed #a8b1aa;
  border-radius: .6rem;
  background: #fff;
  text-align: center;
}

.results-section,
.nip-reference,
.nip-state-lab {
  scroll-margin-top: 1rem;
}

.results-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0 .4rem;
  border-bottom: 1px solid var(--line);
}

.results-bar h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.results-bar > strong {
  flex: 0 0 auto;
  font-size: .78rem;
}

.selected-summary {
  margin: .18rem 0 0;
  color: var(--muted);
  font-size: .76rem;
}

/* issue #1: the sort control. Wraps rather than scrolls sideways so it stays
   inside 375px, and the select itself is allowed to shrink (min-width: 0) —
   without it a long localized option name pushes the row past the viewport. */
.sort-bar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .4rem 0 0;
}

.sort-bar .sort-field {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-size: .74rem;
}

.sort-bar select {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 8rem;
}

/* issue #1 / invariant I8: the rows whose like count was never observed are not
   ranked and are not silently sunk to the bottom of the ranking. They are said
   out loud, under their own heading, so "not observed" cannot be read as "0". */
.sort-unranked {
  min-width: 0;
  margin: .8rem 0 .55rem;
  padding: .55rem .7rem;
  border: 1px dashed var(--line);
  border-radius: .65rem;
  background: #f6f6fb;
}

.sort-unranked h3 {
  margin: 0;
  font-size: .78rem;
}

.sort-unranked p {
  min-width: 0;
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.selected-summary strong {
  color: var(--ink);
}

.selected-summary .feature-icon {
  display: inline-block;
  width: .85rem;
  height: .85rem;
  margin-right: .2rem;
  vertical-align: -.14rem;
}

.text-button {
  border: 0;
  background: none;
  color: #35217e;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.feature-filter-details {
  margin: .45rem 0 .65rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fff;
}

.feature-filter-details > summary {
  padding: .52rem .7rem;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.feature-filter-details > summary span {
  display: inline-grid;
  min-width: 1.35rem;
  margin-left: .25rem;
  place-items: center;
  border-radius: 99px;
  background: #e9e3ff;
  color: #35217e;
}

.feature-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  align-items: end;
  padding: 0 .7rem .7rem;
}

.feature-filter-grid .field {
  font-size: .75rem;
}

.feature-filter-grid select,
.feature-filter-grid input {
  padding: .52rem;
  font-size: .78rem;
}

.filter-prerequisite {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
}

.include-dead {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: .4rem;
  padding: .5rem;
  border: 1px solid #c9cec9;
  border-radius: .5rem;
  font-size: .76rem;
  font-weight: 800;
}

.include-dead input {
  width: auto;
}

.advanced-nip {
  grid-column: span 2;
}

.filter-help {
  display: flex;
  grid-column: 1 / -1;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .73rem;
}

.filter-help details summary {
  cursor: pointer;
  font-weight: 800;
}

.filter-help p {
  max-width: 680px;
  margin: .25rem 0 0;
}

.mobile-condition-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .7rem;
}

.condition-logic {
  margin-right: .15rem;
  font-weight: 800;
}

.condition-pill,
.selected-condition {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: .2rem;
  padding: .3rem .48rem;
  border: 1px solid #a99ada;
  border-radius: 99px;
  background: #f1edff;
  color: #35217e;
  font-size: .7rem;
  font-weight: 800;
}

.selected-condition .feature-icon {
  width: .85rem;
  height: .85rem;
}

.and-mark {
  margin: 0 .22rem;
  color: #6b5a9e;
  font-size: .62rem;
  font-weight: 900;
}

.compare-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .65rem;
  padding: .6rem .7rem;
  border: 1px solid #b7ade7;
  border-radius: .65rem;
  background: #f0edff;
  font-size: .78rem;
}

.compare-actions[hidden] {
  display: none;
}

.compare-actions > div {
  display: flex;
  gap: .35rem;
}

.compare-actions button {
  padding: .45rem .62rem;
  font-size: .76rem;
}

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

.feature-tool-results[hidden] {
  display: none;
}

.feature-tool-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
}

.feature-tool-card:hover {
  border-color: #9888e4;
}

.feature-tool-card.dead-tool {
  border-style: dashed;
  background: #f7f7f7;
}

.nip-card-top,
.support-line,
.nip-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}

.feature-tool-card .tool-icon {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.feature-tool-card h2 {
  margin: 0 0 .1rem;
  font-size: .98rem;
  overflow-wrap: anywhere;
}

.feature-tool-card > p {
  margin: .12rem 0;
  color: var(--muted);
  font-size: .78rem;
}

/* issue #6: the collapsed card is one scannable row. The id is one line and the summary is one
   line; both truncate rather than wrap, so a long value cannot push the card wider or taller. */
.feature-tool-card {
  gap: .12rem;
  padding: .6rem .7rem;
}

.feature-tool-card .card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  min-width: 0;
}

/* issue #3: the icon and the name are one unit, so `justify-content: space-between` pushes the
   pair to one end and the id to the other instead of stranding the icon on its own. */
.feature-tool-card .card-identity {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
}

.feature-tool-card .card-headline h2 {
  min-width: 0;
}

/* issue #15: the coordinate that used to sit here is internal bookkeeping and is gone. What takes
   its place is the one thing a reader needs before opening anything -- whether the record is still
   active. It is a badge on the same headline row, so the card is still the four fields c15fafd cut
   it down to, and it shrinks rather than pushing the row past 375px wide. */
.feature-tool-card .card-headline .record-state {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-tool-card .tool-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  margin: .18rem 0 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.feature-tool-card .card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .3rem;
  min-width: 0;
}

.feature-tool-card .card-topics .tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* `margin-top: auto` is inherited from the base rule on purpose: in the multi-column grid the
   cards stretch to the row height and the action rows line up along the bottom edge. */
.feature-tool-card .nip-card-actions {
  padding-top: .42rem;
}

.support-line {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: .42rem 0;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: .16rem .42rem;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.35;
}

/* §21.7 R7: eight result values, and each one has to be distinguishable from the others at a
   glance. `not_supported` and `withdrawn` are explicit negatives -- a stronger statement than
   silence -- so they are solid, while `unknown` stays dashed because it asserts nothing. */
.support-badge.supported {
  background: #d9f4e9;
  color: #005c48;
}

.support-badge.partial {
  background: #fff0c7;
  color: #714400;
}

.support-badge.planned {
  background: #e8e3ff;
  color: #382482;
}

.support-badge.disabled {
  background: #ffe3cd;
  color: #7a3900;
}

.support-badge.withdrawn {
  background: #f6dadd;
  color: #7d1424;
  text-decoration: line-through;
}

.support-badge.not_supported {
  background: #fbd9dd;
  color: #8a0f22;
}

.support-badge.not_applicable {
  border: 1px solid #9aa4ae;
  background: #f2f4f6;
  color: #4a555f;
  font-style: italic;
}

.support-badge.out_of_family {
  border: 1px solid #6b5bbd;
  background: #efeaff;
  color: #3b2a86;
}

.support-badge.unknown {
  border: 1px dashed #82909b;
  background: #e7ebee;
  color: #46535f;
}

/* §21.4: the record's own state, never merged with project liveness. */
.record-state {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: .16rem .42rem;
  border: 1px solid #b7bec8;
  background: #f4f6f9;
  color: #3d4854;
  font-size: .64rem;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.record-state.withdrawn {
  border-color: #c2727f;
  background: #fbeef0;
  color: #7d1424;
}

/* §21.6: a free topic is rendered as itself, so it is marked as unlabelled, not as uncategorised. */
.topic-tag.free-topic {
  border-style: dashed;
}

.claim-summary {
  margin: .35rem 0 .2rem;
  font-size: .72rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.claim-summary.is-unknown {
  color: #46535f;
}

.claim-summary .out-of-family {
  display: inline-block;
  margin-left: .3rem;
  padding: .05rem .35rem;
  border: 1px solid #6b5bbd;
  border-radius: 99px;
  color: #3b2a86;
}

.liveness-block {
  margin: .3rem 0;
  font-size: .72rem;
  color: var(--muted);
}

.liveness-derived,
.liveness-why {
  margin: .1rem 0;
  overflow-wrap: anywhere;
}

.liveness-list {
  margin: .2rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .2rem;
}

.liveness-list li,
.source-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.liveness-result {
  font-weight: 850;
  color: #46535f;
}

.liveness-result.unreachable,
.liveness-result.archived {
  color: #8a0f22;
}

.source-list {
  margin: .25rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .35rem;
  font-size: .74rem;
}

.source-text,
.claim-caveat,
.non-claim,
.topic-correction {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.claim-caveats {
  margin-top: .4rem;
  font-size: .74rem;
}

.claim-caveats ul {
  padding-left: 1rem;
  display: grid;
  gap: .25rem;
}

.claim-caveats li {
  overflow-wrap: anywhere;
}

/* §21.2.3: an id the pinned snapshot does not hold is rendered with its status, never dropped. */
.registry-flag {
  font-size: .62rem;
  font-weight: 850;
  text-transform: none;
}

.nip-tag-button.registry-not_in_registry {
  border-style: dashed;
  border-color: #b06a12;
  color: #7a4300;
}

.nip-tag-button.registry-unresolvable {
  border-style: dashed;
  border-color: #6b5bbd;
  color: #3b2a86;
}

.nip-reference-card[data-registry-status="not_in_registry"] {
  border-style: dashed;
}

.card-top-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem;
}

.provenance-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: .16rem .42rem;
  font-size: .64rem;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.provenance-badge.sample {
  border: 1px solid #b7bec8;
  background: #eef1f5;
  color: #45505d;
}

.provenance-badge.relay {
  background: #d9f4e9;
  color: #005c48;
}

/* 一次情報から収集したエントリ。サンプルでもリレー検証済みでもないので、三つ目の見た目を持つ。 */
.provenance-badge.collected {
  background: #e4ecff;
  color: #1f3d8a;
}

/* §6.5.4: the no-graph banner is persistent and non-modal. */
.graph-banner {
  margin: 0 0 .55rem;
  padding: .6rem .7rem;
  border: 1px solid #b9c0cc;
  border-left: 4px solid #5a46b8;
  border-radius: .65rem;
  background: #f6f8fb;
  font-size: .82rem;
}

.graph-banner p {
  margin: 0 0 .45rem;
}

.graph-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .4rem .6rem;
}

.graph-npub-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .72rem;
  color: var(--muted);
}

.graph-npub-field input {
  min-width: 14rem;
}

.graph-state,
.discovery-scope {
  margin: 0 0 .45rem;
  font-size: .75rem;
  color: var(--muted);
}

/* §6.4: counts always carry their scope; an unknown count is not a zero. */
.recommendation-count {
  margin: .1rem 0 .35rem;
  font-size: .76rem;
  color: var(--muted);
}

.recommendation-count.is-unknown {
  font-style: italic;
}

.relay-diagnostics-slugs {
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
}

.relay-diagnostics {
  margin: 0 0 .65rem;
  border: 1px solid #b9c0cc;
  border-radius: .65rem;
  background: #f6f8fb;
  font-size: .78rem;
}

.relay-diagnostics > summary {
  padding: .55rem .7rem;
  font-weight: 850;
  cursor: pointer;
}

.relay-diagnostics-body {
  padding: 0 .7rem .6rem;
}

.relay-diagnostics-body section {
  margin-top: .5rem;
}

.relay-diagnostics-body h3 {
  margin: 0 0 .25rem;
  font-size: .74rem;
  color: var(--muted);
}

.relay-diagnostics-list {
  margin: 0;
  padding-left: 1.1rem;
  overflow-wrap: anywhere;
}

.relay-diagnostics-list code {
  overflow-wrap: anywhere;
}

.relay-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem .5rem;
  margin: .25rem 0 0;
}

.relay-diagnostics-grid > div {
  min-width: 0;
}

.relay-diagnostics-grid dt {
  font-size: .68rem;
  color: var(--muted);
}

.relay-diagnostics-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.tool-facts > div {
  min-width: 0;
  padding: .36rem;
  border-radius: .4rem;
  background: #f2f4f1;
}

.tool-facts dt {
  color: var(--muted);
  font-size: .61rem;
  font-weight: 850;
}

.tool-facts dd {
  margin: .1rem 0 0;
  font-size: .68rem;
  overflow-wrap: anywhere;
}

.source-info-link {
  border: 0;
  background: none;
  color: #35217e;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
}

.basis-nips {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  margin: .38rem 0 .62rem;
}

.nip-tag-button {
  border: 1px solid #c8cec9;
  border-radius: 99px;
  background: #f3f5f2;
  color: var(--ink);
  padding: .16rem .4rem;
  font-size: .66rem;
}

.replacement-note {
  padding: .42rem;
  border-radius: .4rem;
  background: #fff1da;
}

.nip-card-actions {
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid #eef0ed;
  align-items: end;
}

.nip-card-actions .secondary {
  padding: .42rem .52rem;
  font-size: .7rem;
}

.nip-compare-label {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  font-weight: 800;
}

.nip-compare-label input {
  width: auto;
}

.nip-reference {
  margin-top: 1.5rem;
  padding: .85rem;
  border-radius: .8rem;
  background: #ebece8;
}

.nip-reference h2 {
  margin: .1rem 0 0;
  font-size: 1rem;
}

.step {
  color: var(--accent);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.count-pill {
  padding: .2rem .5rem;
  border-radius: 99px;
  background: #ded8fa;
  color: #35217e;
  font-size: .72rem;
  font-weight: 800;
}

.nip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .65rem;
}

.nip-reference-card {
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #fff;
}

.nip-reference-card h3 {
  margin: .2rem 0;
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.nip-reference-card p {
  margin: .2rem 0;
  color: var(--muted);
  font-size: .72rem;
}

.nip-reference-card a {
  color: #35217e;
  font-size: .7rem;
  font-weight: 800;
}

.nip-state-lab {
  margin-top: 1rem;
  padding: .65rem .8rem;
  border: 1px dashed #9da7a0;
  border-radius: .65rem;
  font-size: .78rem;
}

.nip-state-lab > summary {
  cursor: pointer;
  font-weight: 800;
}

.nip-state-lab .state-buttons {
  margin-top: .6rem;
}

.state-message {
  display: grid;
  min-height: 100px;
  margin-bottom: .65rem;
  place-items: center;
  padding: .8rem;
  border: 1px dashed #9da7a0;
  border-radius: .65rem;
  background: #fff;
  text-align: center;
}

/* issue #7: the entries the support mode set aside are stated, not hidden. Wraps rather than
   scrolls sideways so it stays inside 375px. */
.unstated-notice {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .65rem;
  padding: .55rem .7rem;
  border: 1px solid #a99ada;
  border-radius: .65rem;
  background: #f1edff;
  color: #35217e;
  font-size: .72rem;
  font-weight: 700;
}

.unstated-notice p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.state-message.error {
  border-color: #c3616b;
  background: #fff0f1;
  color: #7c1d29;
}

.state-message.partial {
  display: block;
  min-height: 0;
  border-color: #d2b14e;
  border-style: solid;
  background: #fff4d7;
  text-align: left;
}

.nip-skeleton {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.nip-skeleton span {
  height: 85px;
  border-radius: .45rem;
  background: linear-gradient(90deg, #e5e8e4, #f5f6f4, #e5e8e4);
  background-size: 200%;
  animation: pulse 1.3s infinite;
}

.nip-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: .8rem 0;
}

.nip-evidence-grid > div {
  min-width: 0;
  padding: .7rem;
  border-radius: .55rem;
  background: #f0f2ef;
}

.nip-evidence-grid dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.nip-evidence-grid dd {
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
}

.feature-basis-list {
  display: grid;
  gap: .45rem;
}

.basis-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .22rem .55rem;
  padding: .62rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f7f8f6;
  color: var(--ink);
  text-align: left;
}

.basis-row small {
  grid-column: 1 / -1;
  color: #35217e;
  text-decoration: underline;
}

.unknown-note {
  padding: .58rem .7rem;
  border-left: 4px solid #6a7784;
  border-radius: .35rem;
  background: #edf0f2;
  color: #34414c;
  font-size: .8rem;
}

.dialog-kicker {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin: .2rem 0;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.dialog-head p {
  margin: .25rem 0;
  color: var(--muted);
  font-size: .8rem;
}

.comparison-dialog {
  width: min(980px, calc(100% - 1rem));
  overflow: hidden;
}

.comparison-dialog > div {
  max-width: 100%;
  padding: 1rem;
  overflow: hidden;
}

.comparison-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: end;
  margin: .55rem 0;
  padding: .55rem;
  border: 1px solid #c9bce8;
  border-radius: .55rem;
  background: #f6f2ff;
}

.comparison-edit label {
  min-width: 0;
  color: #50368f;
  font-size: .7rem;
  font-weight: 800;
}

.comparison-edit select {
  margin-top: .16rem;
  padding: .42rem;
  font-size: .75rem;
}

.comparison-incomplete {
  padding: .5rem;
  border-radius: .45rem;
  background: #fff4d7;
  font-size: .75rem;
  text-align: center;
}

.comparison-body {
  max-width: 100%;
  max-height: 72vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.comparison-candidates,
.comparison-values {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--candidate-count), minmax(0, 1fr));
}

.comparison-candidates {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-top: .6rem;
  border: 1px solid #c9cec9;
  border-radius: .6rem;
  background: #edf0ec;
}

.comparison-candidate {
  min-width: 0;
  padding: .52rem .4rem;
  border-left: 1px solid #c9cec9;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.comparison-candidate strong {
  display: block;
  overflow-wrap: anywhere;
}

.comparison-candidate button {
  margin-top: .28rem;
  padding: .18rem .38rem;
  border: 1px solid #9a8bc9;
  border-radius: 99px;
  background: #fff;
  color: #50368f;
  font-size: .68rem;
  font-weight: 800;
}

.comparison-candidate:first-child,
.comparison-value:first-child {
  border-left: 0;
}

.comparison-group {
  margin-top: .8rem;
}

.comparison-group-title {
  margin: 0 0 .35rem;
  color: #35217e;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-item {
  margin-bottom: .36rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  overflow: hidden;
}

.comparison-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .35rem;
  padding: .3rem .48rem;
  border-bottom: 1px solid #e2e6e2;
  background: #f4f5f2;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.comparison-label .feature-icon {
  width: .9rem;
  height: .9rem;
}

.comparison-values {
  min-height: 2.8rem;
}

.comparison-value {
  min-width: 0;
  padding: .48rem .42rem;
  border-left: 1px solid #e2e6e2;
  font-size: .74rem;
  line-height: 1.32;
  text-align: center;
  overflow-wrap: anywhere;
}

.comparison-value .support-badge {
  margin: 0 auto;
}

.no-support-record {
  display: inline-block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.comparison-evidence {
  display: block;
  margin: .3rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #35217e;
  font-size: .65rem;
  font-weight: 750;
  text-decoration: underline;
}

.comparison-item.is-different {
  border-color: #b6a8f0;
  box-shadow: 0 0 0 1px #e3ddff;
}

.comparison-item.is-different .comparison-label {
  background: #eeeaff;
  color: #35217e;
}

.comparison-item.is-identical {
  opacity: .62;
}

.footer-note {
  margin-top: 1rem;
}

@media (max-width: 950px) {
  .feature-chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feature-tool-results,
  .nip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-description {
    display: -webkit-box;
    max-width: 100%;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 700px) {
  .nip-explorer-page main {
    padding: .45rem .7rem 2rem;
  }

  .feature-tool-results,
  .nip-list {
    grid-template-columns: 1fr;
  }

  .feature-filter-grid {
    grid-template-columns: 1fr;
  }

  .advanced-nip {
    grid-column: auto;
  }

  .feature-filter-details:not([open]) .feature-filter-grid {
    display: none;
  }

  .nip-evidence-grid,
  .nip-skeleton {
    grid-template-columns: 1fr;
  }

  .nip-skeleton span {
    height: 65px;
  }
}

@media (max-width: 390px) {
  .feature-search {
    padding-bottom: .35rem;
  }

  .feature-chip {
    min-height: 3.35rem;
    padding: .3rem .12rem;
  }

  .feature-chip-label {
    font-size: .7rem;
  }

  .feature-description {
    font-size: .68rem;
  }

  .feature-icon {
    width: 1.08rem;
    height: 1.08rem;
  }

  .results-bar {
    gap: .5rem;
  }

  .compare-actions {
    align-items: flex-start;
  }

  .compare-actions > div {
    flex-direction: column;
  }

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

  .nip-card-actions {
    align-items: center;
  }

  .comparison-dialog {
    width: calc(100% - .5rem);
  }

  .comparison-dialog > div {
    padding: .62rem;
  }

  .comparison-dialog .dialog-head {
    gap: .35rem;
  }

  .comparison-dialog .dialog-head h2 {
    font-size: 1rem;
  }

  .comparison-edit {
    grid-template-columns: 1fr;
  }

  .comparison-candidate {
    padding: .45rem .2rem;
    font-size: .75rem;
  }

  .comparison-label {
    padding: .25rem .38rem;
    font-size: .72rem;
  }

  .comparison-value {
    padding: .4rem .22rem;
    font-size: .75rem;
  }

  .comparison-value .support-badge {
    padding: .12rem .25rem;
    font-size: .7rem;
  }

  .comparison-evidence {
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.feature-main-search small {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .66rem;
}

/* issue #6: 由来バッジとレコード状態はカードから詳細ビューの見出し直下へ移った。 */
.detail-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: .3rem 0 .2rem;
}

.card-layer {
  margin-top: .48rem;
  padding: .58rem;
  border-radius: .58rem;
}

.card-layer > h3 {
  margin: 0 0 .38rem;
  font-size: .72rem;
  letter-spacing: .04em;
}

.fact-layer {
  border: 1px solid #b9c8c0;
  background: #f4f8f5;
}

.fact-layer > h3 { color: #285844; }

.evaluation-layer {
  border: 1px solid #c9bce8;
  background: #f6f2ff;
}

.evaluation-layer > h3 { color: #50368f; }

.local-only,
.privacy-state {
  display: block;
  margin: .16rem 0 .4rem !important;
  color: #655985 !important;
  font-size: .66rem !important;
}

.resource-links,
.evaluation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: .45rem 0;
}

.resource-link,
.evaluation-actions button {
  padding: .35rem .46rem;
  border: 1px solid #aaa2ca;
  border-radius: .42rem;
  background: #fff;
  color: #35217e;
  font-size: .67rem;
  font-weight: 800;
}

.resource-link small {
  display: block;
  margin-top: .08rem;
  color: #655985;
  font-size: .58rem;
  line-height: 1.1;
}

.safe-link-note {
  flex-basis: 100%;
  color: #4f4276;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.like-button[aria-pressed="true"] {
  border-color: #c23b67;
  background: #ffe5ee;
  color: #8e1740;
}

.public-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 750;
}

.public-toggle input { width: auto; }

.review-dialog { width: min(760px, calc(100% - 1rem)); }
.review-dialog > div { padding: 1rem; }
.review-list { display: grid; gap: .55rem; }
.review-item { padding: .65rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; }
.review-item time { display: block; color: var(--muted); font-size: .67rem; }
.review-item p { margin: .35rem 0; }
.review-item dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; margin: 0; }
.review-item dl div { padding: .35rem; background: #f3f4f1; }
.review-item dt { color: var(--muted); font-size: .62rem; font-weight: 800; }
.review-item dd { margin: .1rem 0 0; font-size: .7rem; overflow-wrap: anywhere; }
.review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem; padding-top: .8rem; border-top: 3px solid #8e75da; }
.review-form h3, .review-form label:first-of-type, .review-form .review-preview { grid-column: 1 / -1; }
.review-form label { font-size: .7rem; font-weight: 800; }
.review-form input, .review-form select, .review-form textarea { margin-top: .18rem; padding: .5rem; font-size: .75rem; }
.review-form textarea { min-height: 74px; resize: vertical; }
.review-preview { padding: .55rem; border-radius: .5rem; background: #f1edff; font-size: .72rem; }
.review-preview p { margin: .25rem 0; }

@media (max-width: 700px) {
  .review-item dl,
  .review-form { grid-template-columns: 1fr; }
  .review-form h3, .review-form label:first-of-type, .review-form .review-preview { grid-column: auto; }
}

.dialog-layer { margin-top: .65rem; padding: .7rem; border-radius: .6rem; }
.dialog-layer > h3 { margin: 0 0 .45rem; font-size: .78rem; }
@media (max-width: 700px) {
  .feature-main-search small { font-size: .58rem; line-height: .8; margin-top: .05rem; }
}

/* Task #74: search-first controls and local review interaction mock. */
.feature-chip-setting {
  grid-column: 1 / -1;
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: .25rem;
  font-size: .75rem;
  font-weight: 800;
}

.feature-chip-setting .feature-chips { margin-top: 0; }

.review-toolbar,
.review-author,
.helpful-actions,
.gallery-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  flex-wrap: wrap;
}

.review-toolbar { margin: .45rem 0 .7rem; }
.review-author { align-items: flex-start; }
.reviewer-link {
  display: inline-grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #35217e;
  text-align: left;
  text-decoration: underline;
}
.reviewer-link small {
  max-width: 100%;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.compact-link { display: inline; font-size: inherit; }
.helpful-actions { justify-content: flex-start; margin-top: .55rem; }
.helpful-actions button:not(.text-button) {
  padding: .35rem .5rem;
  border: 1px solid #aaa2ca;
  border-radius: .42rem;
  background: #fff;
  color: #35217e;
  font-size: .68rem;
  font-weight: 800;
}
.helpful-actions button[aria-pressed="true"] { background: #e9e3ff; border-color: #6f56c8; }
.vote-preview-state { color: #655985; font-size: .66rem; font-weight: 750; }
.form-automation-note { grid-column: 1 / -1; margin: 0; padding: .5rem; border-left: 3px solid #8e75da; background: #f6f2ff; font-size: .68rem; }
.review-body { grid-column: 1 / -1; }
/* issue #8: プリセット画像の選択盤 (.image-picker / .shot-choice) を廃止し、残ったのは
   端末からの添付欄だけ。幅を占めるサムネイルの列が無くなったので外枠も不要。 */
.local-image-field { grid-column: 1 / -1; min-width: 0; }
.local-file { display: block; }
.local-file small { display: block; color: var(--muted); }
.local-image-preview img { display: block; max-width: 180px; max-height: 130px; margin-top: .4rem; border-radius: .4rem; object-fit: contain; }
.local-image-preview span { display: block; color: #655985; font-size: .65rem; }
.mock-shot {
  position: relative;
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: .35rem;
  padding: .8rem;
  overflow: hidden;
  border-radius: .65rem;
  background: linear-gradient(145deg, var(--shot), #17172b);
  color: #fff;
  text-align: center;
}
.mock-shot::before { content: ''; position: absolute; inset: 12% 10%; border: 1px solid rgba(255,255,255,.55); border-radius: .5rem; }
.mock-shot span, .mock-shot strong { position: relative; }
.mock-shot span { font-size: .62rem; }
.mock-shot.compact { min-height: 92px; }
.mock-shot.local-shot { display: block; padding: 0; background: #20222c; }
.mock-shot.local-shot::before { display: none; }
.mock-shot.local-shot img { width: 100%; height: 100%; min-height: 92px; max-height: 280px; object-fit: contain; }
.mock-shot.local-shot span { display: block; padding: .25rem; }
.review-image-button { display: grid; width: min(260px, 100%); gap: .2rem; padding: .3rem; border: 1px solid #aaa2ca; border-radius: .55rem; background: #fff; color: #35217e; font-size: .68rem; }
.profile-npub { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .72rem; }
.profile-facts, .profile-signals dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .4rem; }
.profile-facts div, .profile-signals dl div { padding: .5rem; border-radius: .45rem; background: #f3f4f1; }
.profile-facts dt, .profile-signals dt { color: var(--muted); font-size: .64rem; font-weight: 800; }
.profile-facts dd, .profile-signals dd { margin: .12rem 0 0; font-size: .72rem; overflow-wrap: anywhere; }
.profile-signals, .profile-history { margin-top: .8rem; padding-top: .7rem; border-top: 3px solid #8e75da; }
.profile-signals h3, .profile-history h3 { margin-top: 0; font-size: .82rem; }
.profile-history { display: grid; gap: .45rem; }
.profile-history > h3 { margin-bottom: 0; }
.profile-history article { padding: .55rem; border: 1px solid var(--line); border-radius: .5rem; }
.profile-history article > div { display: flex; justify-content: space-between; gap: .4rem; }
.profile-history article p { margin: .25rem 0; font-size: .72rem; }
.profile-history article span { color: var(--muted); font-size: .65rem; }
.gallery-dialog { width: min(920px, calc(100% - 1rem)); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.gallery-card { min-width: 0; padding: .55rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.gallery-card dl { margin: .45rem 0; }
.gallery-card dl div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: .4rem; padding: .25rem 0; border-bottom: 1px solid #e3e5e2; }
.gallery-card dt { color: var(--muted); font-size: .64rem; font-weight: 800; }
.gallery-card dd { min-width: 0; margin: 0; font-size: .7rem; overflow-wrap: anywhere; }
.image-dialog { width: min(760px, calc(100% - 1rem)); }
.image-dialog > div { padding: 1rem; }
.image-stage .mock-shot { min-height: min(58vh, 440px); }
.image-stage > img { display: block; max-width: 100%; max-height: 58vh; margin: .4rem auto; object-fit: contain; }

@media (max-width: 700px) {
  .gallery-grid, .profile-facts, .profile-signals dl { grid-template-columns: 1fr; }
  .review-body, .local-image-field, .form-automation-note { grid-column: auto; }
  .gallery-card dl div { grid-template-columns: 76px minmax(0,1fr); }
  .mock-shot { min-height: 145px; }
}

/* Primary feature choices stay visible directly below full-text search. */
.feature-chips-always { margin-top: 10px; }

/* Prevent iOS Safari focus zoom without disabling user zoom. */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; }
}

.card-review-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .35rem;
  align-items: stretch;
  margin: .45rem 0;
}
.card-review-thumbnail { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #aaa2ca; border-radius: .5rem; background: #fff; }
.card-review-thumbnail .mock-shot.compact { min-height: 54px; height: 54px; border: 0; border-radius: 0; padding: .25rem; }
.card-review-thumbnail .mock-shot span { display: none; }
.card-review-thumbnail .mock-shot strong { font-size: .58rem; line-height: 1.1; }
.card-review-more { min-width: 42px; padding: .35rem; border: 1px solid #887ab6; border-radius: .5rem; background: #f1edff; color: #35217e; font-weight: 900; }
@media (max-width: 420px) {
  .card-review-thumbnails { gap: .25rem; }
  .card-review-thumbnail .mock-shot.compact { min-height: 48px; height: 48px; }
}

/* Keep the always-visible ten-feature row compact enough for a search-first first view. */
@media (min-width: 951px) {
  .feature-chips-always .feature-chip { min-height: 2.25rem; flex-direction: row; gap: .2rem; padding: .25rem .15rem; }
  .feature-chips-always .feature-icon { width: 1rem; height: 1rem; }
  .feature-chips-always .feature-chip-label { font-size: .61rem; }
}
@media (min-width: 951px) {
  .feature-chips-always { margin-top: 4px; }
  .feature-chips-always .feature-chip { min-height: 2rem; padding-block: .15rem; }
}

.compact-identity .language-switch{margin-left:auto}.feature-chips{grid-template-columns:repeat(10,minmax(2.4rem,1fr))}.feature-chip{min-height:2.8rem;padding:.35rem}.feature-symbol{display:inline-grid;width:1.35rem;height:1.35rem;place-items:center;font-size:1.25rem;font-weight:900;line-height:1}.feature-chip .feature-symbol{font-size:1.35rem}.category-filter{min-width:0;margin:0;padding:.35rem .45rem .45rem;border:1px solid #c9cec9;border-radius:.5rem}.category-filter legend{padding:0 .2rem;color:var(--muted);font-size:.72rem;font-weight:800}.category-filter .category-icon-group{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.2rem}.category-filter .category-icon{width:100%;height:2.25rem;font-size:1rem}.review-shot{display:block;width:100%;aspect-ratio:4/3;border-radius:.55rem;object-fit:cover;background:#20222c}.review-shot.compact{height:auto;min-height:0;aspect-ratio:4/3;border-radius:.35rem}.card-review-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr)) 2.65rem;max-width:310px}.card-review-thumbnail{aspect-ratio:4/3}.card-review-thumbnail .review-shot{width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:cover}.review-image-button{width:min(220px,100%)}.review-image-button .review-shot{max-height:150px}.gallery-card>.review-shot{max-height:230px}.image-stage .review-shot{width:auto;max-width:100%;max-height:58vh;margin:.4rem auto;object-fit:contain}.local-image-preview img{display:block;width:120px;aspect-ratio:4/3;margin-top:.4rem;border-radius:.4rem;object-fit:cover}.local-image-preview small{display:block;margin-top:.2rem;overflow-wrap:anywhere}.selected-condition{width:2.25rem;padding:.3rem;justify-content:center}.selected-condition .feature-symbol{font-size:1rem}.profile-history button{margin-top:.3rem}.review-form>button[type="submit"]{align-self:end}.review-form .review-preview:empty{display:none}
@media(max-width:950px){.feature-chips{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:700px){.compact-identity{flex-wrap:wrap}.compact-identity .language-switch{margin-left:auto}.feature-chip{min-height:2.55rem}.feature-filter-grid{grid-template-columns:1fr}.category-filter .category-icon-group{grid-template-columns:repeat(7,minmax(0,1fr))}.category-filter .category-icon{height:2.2rem}.card-review-thumbnails{max-width:270px}.feature-tool-card{padding:.72rem}.review-item dl{grid-template-columns:repeat(2,minmax(0,1fr))}.review-shot{max-height:190px}.gallery-grid{grid-template-columns:1fr}.dialog-tools{flex-direction:column-reverse;align-items:flex-end}}
@media(max-width:390px){.feature-chips{gap:.25rem}.feature-chip{min-height:2.4rem}.feature-symbol{font-size:1.1rem}.card-review-thumbnails{max-width:240px}.card-review-more{min-width:38px}}

/* Category choices: icon, localized title, and concise localized explanation. */
.category-filter{grid-column:1/-1}
.category-filter .category-icon-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}
.category-filter .category-icon{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;height:auto;min-height:4.45rem;align-items:start;gap:.5rem;padding:.55rem;border:1px solid #c9cec9;border-radius:.5rem;background:#fff;color:var(--ink);font-size:inherit;text-align:left;white-space:normal;overflow:visible}
.category-filter .category-icon:hover{border-color:#7866d3}
.category-filter .category-icon.selected,.category-filter .category-icon[aria-pressed="true"]{border-color:var(--accent);background:#e9e3ff;box-shadow:inset 0 0 0 1px var(--accent)}
.category-filter .category-symbol{display:grid;width:1.55rem;height:1.55rem;place-items:center;font-size:1.05rem;line-height:1}
.category-filter .category-copy{display:grid;min-width:0;gap:.1rem}
.category-filter .category-title,.category-filter .category-description{display:block;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.category-filter .category-title{font-size:.76rem;font-weight:850;line-height:1.3}
.category-filter .category-description{color:var(--muted);font-size:.66rem;font-weight:500;line-height:1.35}
@media(max-width:700px){.category-filter .category-icon-group{grid-template-columns:repeat(2,minmax(0,1fr))}.category-filter .category-icon{height:auto;min-height:5rem;padding:.5rem;gap:.4rem}.category-filter .category-title{font-size:.74rem}.category-filter .category-description{font-size:.65rem}}


/* Environment-stable local Material Design SVG icons. */
.material-icon{display:block;width:1em;height:1em;fill:currentColor;pointer-events:none}
.category-symbol .material-icon,.tool-icon .material-icon{width:1.25em;height:1.25em}
.feature-symbol .material-icon{width:1.1em;height:1.1em}


/* Publish form (issue #9 slice 2). Everything wraps and nothing is fixed-width:
   an event id and a relay URL are both long single tokens, and at 375px a
   non-wrapping one would push the whole page sideways. */
.publish-panel{display:grid;gap:.6rem;margin:1rem 0;padding:.9rem;border:1px solid #c9cec9;border-radius:.6rem;background:#fff;min-width:0}
.publish-panel:empty{display:none}
.publish-title{margin:0;font-size:1rem}
.publish-lead,.publish-unavailable{margin:0;color:var(--muted);font-size:.8rem;line-height:1.5}
.publish-form{display:grid;gap:.6rem;min-width:0}
.publish-form input,.publish-form textarea{width:100%;min-width:0;box-sizing:border-box}
.publish-form small{color:var(--muted);font-size:.7rem;line-height:1.4}
.publish-hint{margin:0;color:#8a2d2d;font-size:.75rem;line-height:1.4;overflow-wrap:anywhere}
.publish-hint:empty{display:none}
.publish-result{display:grid;gap:.4rem;padding:.7rem;border:1px solid #c9cec9;border-radius:.5rem;background:#f7f8f7;min-width:0}
.publish-headline{margin:0;font-weight:800;font-size:.85rem;line-height:1.45}
.publish-consequence,.publish-reason,.publish-event-id{margin:0;font-size:.75rem;line-height:1.45;overflow-wrap:anywhere}
.publish-event-id code,.publish-relays code{overflow-wrap:anywhere;word-break:break-all;font-size:.7rem}
.publish-relays{margin:0;padding-left:1.1rem;display:grid;gap:.25rem;font-size:.75rem;line-height:1.45;overflow-wrap:anywhere}
.publish-relays .relay-notice{font-style:normal}
