:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --text: #1c1a29;
  --muted: #6b6880;
  --border: #e4e1f0;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --star: #f59e0b;
  --danger: #dc2626;
  --pr: #b45309;
  --pr-bg: #fef3c7;
  --gold: #eab308;
  --silver: #94a3b8;
  --bronze: #c2703d;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d17;
    --surface: #1a1726;
    --surface-2: #231f33;
    --text: #eeeaf8;
    --muted: #9d98b3;
    --border: #2c2840;
    --accent: #a78bfa;
    --accent-2: #f472b6;
    --star: #fbbf24;
    --danger: #f87171;
    --pr: #fbbf24;
    --pr-bg: #3a2a07;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sp { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: rgb(255 255 255 / 0.6); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 12px; font-size: 0.85rem; }
.btn.block { display: flex; width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- header ---------- */
.demo-banner {
  background: var(--pr-bg); color: var(--pr);
  font-size: 0.8rem; text-align: center; padding: 6px 16px;
}
.demo-banner .link { color: inherit; margin-left: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; color: var(--muted);
}
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--text); background: var(--surface-2); }
.user-nav { display: flex; align-items: center; gap: 8px; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.9rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-body {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.15);
  display: flex; flex-direction: column;
}
.menu-body a, .menu-body button {
  font: inherit; font-size: 0.9rem; text-align: left;
  padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text);
  text-decoration: none; cursor: pointer;
}
.menu-body a:hover, .menu-body button:hover { background: var(--surface-2); }

/* ---------- hero ---------- */
.hero {
  margin: 24px 0 8px;
  padding: 40px 32px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; }
.hero p { margin: 0 0 20px; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn.primary { background: #fff; color: #7c3aed; border-color: #fff; }

/* ---------- sections ---------- */
.page-title { font-size: 1.6rem; margin: 28px 0 12px; letter-spacing: -0.01em; }
.section { margin: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: 0.88rem; color: var(--accent); text-decoration: none; }
.section-title { font-size: 1.15rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.note { color: var(--muted); font-size: 0.85rem; margin: 8px 0 16px; }
.empty { color: var(--muted); text-align: center; padding: 32px 0; grid-column: 1 / -1; list-style: none; }
.loading { color: var(--muted); padding: 24px 0; text-align: center; grid-column: 1 / -1; list-style: none; }
.more { text-align: center; margin: 20px 0; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tag { font-size: 0.78rem; color: var(--accent); text-decoration: none; }
.tag:hover { text-decoration: underline; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag {
  font-size: 0.88rem; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}

/* ---------- thumbnails ---------- */
.thumb {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h, 260) 80% 62%), hsl(calc(var(--h, 260) + 50) 85% 58%));
  font-size: 3rem;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.sm { width: 96px; flex: none; border-radius: 10px; font-size: 1.8rem; }
.thumb.lg { border-radius: var(--radius); font-size: 5rem; }

/* ---------- cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.card-link { display: block; text-decoration: none; }
.rank-row > a { text-decoration: none; }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.body h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.body h3 a { text-decoration: none; }
.body h3 a:hover { color: var(--accent); }
.body p {
  margin: 0; color: var(--muted); font-size: 0.86rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.author { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.author:hover { color: var(--accent); }
.meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.star-count { color: var(--star); font-weight: 700; }

/* ---------- ranking ---------- */
.period-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 4px; margin-bottom: 4px;
  background: var(--surface-2); border-radius: 999px;
  scrollbar-width: none;
}
.period-tabs a {
  flex: 1; min-width: 56px; text-align: center; white-space: nowrap;
  padding: 7px 10px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--muted);
}
.period-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgb(0 0 0 / 0.1); }

.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none;
}
.rank-no {
  flex: none; width: 36px; height: 36px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: var(--muted);
  border-radius: 50%;
}
.rank-no.rank-1 { background: var(--gold); color: #fff; }
.rank-no.rank-2 { background: var(--silver); color: #fff; }
.rank-no.rank-3 { background: var(--bronze); color: #fff; }
.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { margin: 0; font-size: 1.02rem; }
.rank-body h3 a { text-decoration: none; }
.rank-body h3 a:hover { color: var(--accent); }
.rank-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.rank-body p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-stars { flex: none; text-align: right; display: flex; flex-direction: column; }
.rank-stars strong { color: var(--star); font-size: 1.1rem; }
.rank-stars small { color: var(--muted); font-size: 0.72rem; }

/* ---------- search ---------- */
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input {
  flex: 1; min-width: 0;
  padding: 9px 16px; font: inherit;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sort { display: flex; gap: 4px; }
.sort a { font-size: 0.88rem; text-decoration: none; color: var(--muted); padding: 4px 12px; border-radius: 999px; }
.sort a[aria-current="page"] { background: var(--accent); color: #fff; }
.clear { font-size: 0.85rem; color: var(--muted); }

/* ---------- detail ---------- */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.detail-info h1 { margin: 6px 0 4px; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.3; }
.detail-info .author { font-size: 0.95rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.85rem; margin: 12px 0 20px; }
.play { font-size: 1.1rem; padding: 12px 36px; }
.owner-actions { display: flex; gap: 8px; margin-top: 16px; }

.star-box {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 28px 0; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.star-total { display: flex; flex-direction: column; align-items: center; padding-right: 24px; border-right: 1px solid var(--border); }
.star-total .big { font-size: 2rem; font-weight: 800; color: var(--star); line-height: 1.2; }
.star-total small { color: var(--muted); }
.star-give { flex: 1; min-width: 220px; }
.star-give p { margin: 0 0 8px; font-size: 0.92rem; }
.star-buttons { display: inline-flex; gap: 6px; margin-right: 12px; }
.star-buttons button {
  font-size: 2rem; line-height: 1; width: 52px; height: 52px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--border);
  cursor: pointer; transition: transform 0.1s;
}
.star-buttons button:hover { transform: scale(1.08); color: var(--star); }
.star-buttons button.on { color: var(--star); border-color: var(--star); }
.star-buttons:hover button.on { color: var(--star); }
.star-give .link { font-size: 0.85rem; color: var(--muted); }

.desc { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }

.period-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.period-stats a {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 4px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.period-stats a:hover { border-color: var(--accent); }
.period-stats small { color: var(--muted); font-size: 0.78rem; }
.period-stats strong { color: var(--star); font-size: 1.1rem; }

/* ---------- profile ---------- */
.profile { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; }
.profile h1 { margin: 0 0 4px; font-size: 1.6rem; }
.profile p { margin: 0 0 6px; color: var(--muted); white-space: pre-wrap; }
.profile a { font-size: 0.88rem; color: var(--accent); word-break: break-all; }
.profile .btn { color: var(--text); }
.profile .btn.primary { color: #fff; }
.avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 60) 75% 55%));
}
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.profile-stats div {
  display: flex; flex-direction: column; align-items: center; padding: 14px 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.profile-stats strong { font-size: 1.3rem; }
.profile-stats small { color: var(--muted); font-size: 0.8rem; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 40px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; flex: 1; }
.form input, .form textarea {
  font: inherit; font-weight: 400;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.form input:focus, .form textarea:focus, .search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .row { display: flex; gap: 12px; }
.form .btn { align-self: flex-start; }
.req { font-size: 0.7rem; color: var(--danger); font-weight: 700; }

.center-box { text-align: center; padding: 60px 0; }

/* ---------- ads ---------- */
.pr {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--pr-bg); color: var(--pr);
  vertical-align: middle;
}
.ad { border-style: dashed !important; }
.card.ad > .pr { position: absolute; top: 8px; left: 8px; z-index: 1; }
.rank-row.ad > .pr { position: absolute; top: 8px; right: 10px; }
.rank-row.ad .body { padding: 0 28px 0 0; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mini {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
}
.mini > .pr { position: absolute; top: 6px; right: 6px; }
.mini .thumb { width: 56px; flex: none; aspect-ratio: 1; border-radius: 10px; font-size: 1.6rem; }
.mini .body { padding: 0 28px 0 0; }
.mini h3 { font-size: 0.9rem; }
.mini p { font-size: 0.8rem; }

/* ---------- misc ---------- */
.dialog {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text);
  padding: 24px; width: min(92vw, 380px);
}
.dialog::backdrop { background: rgb(0 0 0 / 0.5); }
.dialog h2 { margin: 0 0 6px; }
.dialog p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.dialog-close { position: absolute; top: 10px; right: 12px; }
.dialog-close button { font-size: 1.4rem; background: none; border: 0; color: var(--muted); cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  animation: toast-in 0.2s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted); font-size: 0.78rem;
}
.site-footer p { margin: 0 0 8px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .detail-hero { grid-template-columns: 1fr; gap: 16px; }
  .period-stats { grid-template-columns: repeat(3, 1fr); }
  .star-total { padding-right: 0; border-right: 0; }
  .star-box { gap: 12px; }
}
@media (max-width: 520px) {
  .sp { display: inline; }
  .header-inner { gap: 8px; }
  .brand span { display: none; }
  .main-nav a { padding: 6px 8px; font-size: 0.85rem; }
  .menu summary { max-width: 6em; }
  .hero { padding: 28px 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .body { padding: 10px; }
  .body p { font-size: 0.8rem; }
  .thumb { font-size: 2.2rem; }
  .rank-row { gap: 10px; padding: 10px; }
  .rank-row .thumb.sm { width: 64px; font-size: 1.4rem; }
  .rank-no { width: 28px; height: 28px; font-size: 0.9rem; }
  .rank-body p { display: none; }
  .rank-sub .tags { display: none; }
  .form .row { flex-direction: column; }
  .profile { gap: 14px; }
  .avatar { width: 56px; height: 56px; font-size: 1.4rem; }
}

/* ---------- 開発中マーク ---------- */
.dev-badge {
  display: inline-block; margin-left: 6px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  background: color-mix(in srgb, #0ea5e9 15%, transparent); color: #0284c7;
}
@media (prefers-color-scheme: dark) { .dev-badge { color: #7dd3fc; } }
.dev-note {
  margin: 4px 0 8px; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px;
  background: color-mix(in srgb, #0ea5e9 12%, transparent);
}
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; }
.form .check small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }

/* ---------- コメント ---------- */
.comment-count { color: var(--muted); margin-left: 6px; }
.detail-meta a { text-decoration: none; }
.comment-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 16px;
}
.comment-form textarea {
  width: 100%; font: inherit; resize: vertical;
  border: 0; background: transparent; color: var(--text); outline: none;
}
.comment-form-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.comment-form-foot small { color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.cooldown {
  padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem;
  background: var(--pr-bg); color: var(--pr);
}
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px;
}
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; }
.comment-head .author { font-weight: 600; color: var(--text); }
.comment-head time { color: var(--muted); }
.comment-head .del { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.author-badge, .cheer-badge {
  font-size: 0.68rem; font-weight: 700; padding: 0 6px; border-radius: 4px;
}
.author-badge { background: var(--accent); color: #fff; }
.cheer-badge { background: color-mix(in srgb, var(--accent-2) 15%, transparent); color: var(--accent-2); }
@media (max-width: 520px) {
  .comment-form-foot { flex-direction: column; align-items: stretch; }
}
.link.plain { color: inherit; text-decoration: none; }

/* ---------- 投稿フォーム：OGP / サムネイル ---------- */
.field-note { font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.thumb-field { display: flex; gap: 14px; align-items: flex-start; }
.thumb-field #thumb-preview { flex: none; width: 160px; }
.thumb-field .thumb { border-radius: 10px; font-size: 2.2rem; }
.thumb-field .link { align-self: flex-start; font-size: 0.8rem; font-weight: 400; }
@media (max-width: 520px) {
  .thumb-field { flex-direction: column; }
  .thumb-field #thumb-preview { width: 100%; }
}

/* OGP 取得中 */
@keyframes spin { to { transform: rotate(360deg); } }
.field-note.busy::before {
  content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 6px; vertical-align: -0.1em;
  border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#thumb-preview { position: relative; }
#thumb-preview.busy::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: rgb(0 0 0 / 0.35);
}
#thumb-preview.busy::before {
  content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 3px solid rgb(255 255 255 / 0.35); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.thumb-field .link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---------- 作者確認・推薦 ---------- */
.author-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 2px; font-size: 0.8rem; }
.detail-info .author-line { font-size: 0.95rem; }
.author.rec { color: var(--muted); margin-right: 4px; }
.verified-badge {
  display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-left: 3px;
  border-radius: 50%; font-size: 0.72em; font-weight: 800;
  background: var(--accent); color: #fff;
}
.claim-box {
  margin: 20px 0 0; padding: 14px 18px; font-size: 0.9rem;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.claim-box p { margin: 0 0 10px; }
.claim-box a { color: var(--accent); word-break: break-all; }
.claim-tag {
  display: flex; gap: 8px; align-items: center; margin: 0 0 12px;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-2);
}
.claim-tag code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.82rem; }
.form fieldset.who { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.form fieldset.who legend { font-weight: 600; font-size: 0.9rem; padding: 0 4px; }
.form fieldset.who label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.field-note a { color: var(--accent); }
