:root {
  --bg: #0c0d10; --bg2: #14161b; --card: #191c22; --line: #2a2e37;
  --text: #eef0f4; --muted: #9aa1ad;
  --c86: #ff4d2e; --c86b: #ff9a3c; --cbrz: #2f7cff; --cbrz2: #5fd0ff;
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; margin: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(12,13,16,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { text-decoration: none; font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; font-family: "Arial Black", Arial, var(--font); }
.logo-86 { color: var(--c86); } .logo-brz { color: var(--cbrz); } .logo-com { color: var(--muted); font-size: .8em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg2); flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); } .btn:active { transform: scale(.98); }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(90deg, var(--c86), var(--c86b)); color: #fff; }
.btn-x { background: #fff; color: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg2); }
.btn-liked { background: rgba(255,77,46,.15); border-color: var(--c86); color: var(--c86); }
.btn-danger { background: #c62828; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link-btn.danger { color: #ff6b6b; }
.x-icon { display: inline-block; vertical-align: -2px; }

/* flash */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.flash-success { border-color: #2e7d32; background: rgba(46,125,50,.15); }
.flash-error { border-color: #c62828; background: rgba(198,40,40,.15); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(47,124,255,.18), transparent 60%), radial-gradient(ellipse at 10% 100%, rgba(255,77,46,.16), transparent 60%); }
.hero-bg { position: absolute; inset: 0; } .hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 44px 16px 36px; }
.eyebrow { color: var(--muted); letter-spacing: .2em; font-size: .75rem; font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.25; margin: 0 0 12px; font-weight: 900; letter-spacing: -.01em; }
.grad { background: linear-gradient(90deg, var(--c86), var(--c86b) 40%, var(--cbrz2) 70%, var(--cbrz)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c9ced8; font-size: .95rem; max-width: 640px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.stats { display: flex; gap: 28px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: .8rem; } .stats dd { margin: 0; font-size: 1.4rem; font-weight: 900; line-height: 1.3; }

/* sections */
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.4rem; }
.section-head a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.page-title { font-size: 1.8rem; margin: 0 0 20px; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: #3a404c; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.card-user { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.likes { color: var(--c86); }
.badge-model, .badge-count { position: absolute; top: 10px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.badge-model { left: 10px; } .badge-count { right: 10px; }
.post-side .badge-model { position: static; display: inline-block; }
.badge-zn6, .badge-zn8 { color: var(--c86b); border: 1px solid rgba(255,77,46,.6); }
.badge-zc6, .badge-zd8 { color: var(--cbrz2); border: 1px solid rgba(47,124,255,.6); }
.badge-other { color: var(--muted); border: 1px solid var(--line); }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c86), var(--cbrz)); }
.av-20 { width: 20px; height: 20px; font-size: .6rem; } .av-28 { width: 28px; height: 28px; font-size: .75rem; }
.av-32 { width: 32px; height: 32px; } .av-40 { width: 40px; height: 40px; } .av-88 { width: 88px; height: 88px; font-size: 2rem; }

/* model tiles */
.model-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .model-tiles { grid-template-columns: repeat(3, 1fr); } }
.model-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 18px; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line); transition: transform .15s; }
.model-tile:hover { transform: translateY(-3px); }
.tile-zn6, .tile-zn8 { background: linear-gradient(135deg, rgba(255,77,46,.28), rgba(255,154,60,.05)); }
.tile-zc6, .tile-zd8 { background: linear-gradient(135deg, rgba(47,124,255,.3), rgba(95,208,255,.05)); }
.tile-gen { color: var(--muted); font-size: .8rem; } .tile-name { font-weight: 900; font-size: 1.15rem; }
.about-teaser { border-top: 1px solid var(--line); }
.about-teaser p { color: #c9ced8; max-width: 720px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.pager-num { color: var(--muted); }

/* post */
.post { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.post-images { display: flex; flex-direction: column; gap: 12px; }
.post-images img { width: 100%; border-radius: var(--radius); background: var(--bg2); }
.post-side { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-title { font-size: 1.4rem; margin: 10px 0 14px; line-height: 1.4; word-break: break-word; }
.post-user { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.post-user small { color: var(--muted); }
.post-caption { white-space: normal; word-break: break-word; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.danger-zone { margin-top: 8px; }
.report { margin-top: 14px; color: var(--muted); font-size: .85rem; }
.report summary { cursor: pointer; }
.report form { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 860px) { .post { grid-template-columns: 1fr; } .post-side { position: static; } }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
input[type=text], input[type=search], input[type=email], input[type=url], select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cbrz); outline-offset: 1px; }
.req { color: var(--c86); font-weight: 400; }
.drop { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; cursor: pointer; background: var(--bg2); font-weight: 400 !important; }
.drop.over { border-color: var(--cbrz); background: rgba(47,124,255,.08); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text strong { display: block; font-size: 1.1rem; }
.drop-text small { color: var(--muted); }
.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.previews:empty { display: none; }
.previews img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.note { font-size: .88rem; color: var(--muted); background: var(--bg2); border-radius: 10px; padding: 4px 14px; }
.dev-login { margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line); text-align: left; }
.dev-login h2 { font-size: 1rem; color: var(--muted); }

/* profile */
.profile { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.profile h1 { margin: 0; font-size: 1.6rem; }
.profile p { margin: 4px 0; }
.profile a { text-decoration: none; }
.bio { color: #c9ced8; }
.profile-stats strong { font-size: 1.1rem; }
.card-plain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.danger-box { border-color: rgba(198,40,40,.6); }
.danger-box h2 { margin-top: 0; font-size: 1.15rem; }

/* prose */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; font-size: 1.35rem; }
.prose .lead { font-size: 1.1rem; }
.timeline { margin: 32px 0; border-left: 2px solid var(--line); padding-left: 24px; }
.timeline section { position: relative; margin-bottom: 28px; }
.timeline section::before { content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--c86), var(--cbrz)); }
.timeline h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tl-year { display: inline-block; font-family: "Arial Black", Arial, sans-serif; margin-right: 8px; color: var(--c86b); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { border-radius: var(--radius); padding: 4px 18px; border: 1px solid var(--line); }
.col-86 { background: linear-gradient(135deg, rgba(255,77,46,.18), transparent); }
.col-brz { background: linear-gradient(135deg, rgba(47,124,255,.2), transparent); }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.cta-box { margin-top: 40px; text-align: center; padding: 32px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cta-box p { font-size: 1.2rem; font-weight: 700; margin-top: 0; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table .actions { display: flex; gap: 12px; }
.err-code { font-size: 5rem; font-weight: 900; margin: 0; background: linear-gradient(90deg, var(--c86), var(--cbrz)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { max-width: 760px; }

/* 承認制 */
.flash-info { border-color: #b8860b; background: rgba(218,165,32,.13); }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--c86); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
.badge-pending { position: absolute; bottom: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #b8860b; color: #fff; }
.pending-box { border: 1px solid #b8860b; background: rgba(218,165,32,.12); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.pending-box p { margin: 6px 0; font-size: .9rem; }
.pending-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pending-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.pending-item img { width: 200px; height: 150px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pending-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pending-info a { text-decoration: none; }
.pending-info .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
@media (max-width: 600px) { .pending-item { flex-direction: column; } .pending-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; } }
.section h2 { margin-top: 8px; }
.status-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.status-checking { background: rgba(47,124,255,.2); color: var(--cbrz2); border: 1px solid rgba(47,124,255,.6); }
.status-pending { background: rgba(218,165,32,.15); color: #e0b84a; border: 1px solid #b8860b; }
.danger-text { color: #ff6b6b; }
.preview { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preview img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; background: var(--card); }
.preview-ph { aspect-ratio: 1; border-radius: 8px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; }
.preview figcaption { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.drop .previews { position: relative; z-index: 1; pointer-events: none; }
@media (max-width: 480px) { .previews { grid-template-columns: repeat(2, 1fr); } }
.spinner { display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--cbrz2); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 検索 */
.nav-search input { width: 190px; padding: 7px 12px; border-radius: 999px; font-size: .88rem; background: var(--bg2); border: 1px solid var(--line); color: var(--text); transition: width .2s; }
.nav-search input:focus { width: 240px; }
@media (max-width: 1000px) and (min-width: 761px) { .nav-search input, .nav-search input:focus { width: 140px; } }
@media (max-width: 760px) { .nav-search input, .nav-search input:focus { width: 100%; } }
.search-big { display: flex; gap: 10px; margin-bottom: 20px; }
.search-big input { flex: 1; font-size: 1rem; padding: 12px 16px; border-radius: 999px; }
.user-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 28px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.user-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card:hover { border-color: #3a404c; }

/* タグ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(47,124,255,.12); border: 1px solid rgba(47,124,255,.35); color: var(--cbrz2); font-size: .82rem; text-decoration: none; }
.tag:hover, .tag.active { background: rgba(47,124,255,.28); }
.tag-cnt { color: var(--muted); font-size: .72rem; }
.tag-edit { margin: 8px 0; color: var(--muted); font-size: .85rem; }
.tag-edit summary { cursor: pointer; }
.tag-edit form { display: flex; gap: 8px; margin: 8px 0 4px; }
.active-filter { color: var(--muted); font-size: .9rem; }
.active-filter a { color: var(--muted); margin-left: 6px; }
.popular-tags { margin-top: 36px; }

/* Scion FR-S */
.badge-frs { color: #c9b8ff; border: 1px solid rgba(160,130,255,.6); }
.tile-frs { background: linear-gradient(135deg, rgba(150,110,255,.28), rgba(150,110,255,.04)); }
.col-frs { background: linear-gradient(135deg, rgba(150,110,255,.14), transparent); }
/* AE86 */
.badge-ae86 { color: #f5f5f5; border: 1px solid rgba(255,255,255,.55); }
.tile-ae86 { background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); }
.col-ae86 { background: linear-gradient(135deg, rgba(255,255,255,.10), transparent); }
/* 管理: AI判定の基準 */
.threshold-form { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: .9rem; }
.threshold-form label { display: flex; align-items: center; gap: 8px; margin: 0; }
.threshold-form select { width: auto; padding: 6px 10px; }
/* お問い合わせ */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.contact-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.contact-item.is-done { opacity: .6; }
.contact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contact-body { font-size: .92rem; color: #d5d9e0; white-space: normal; overflow-wrap: anywhere; }
.status-published { background: rgba(59,196,138,.15); color: #3bc48a; border: 1px solid rgba(59,196,138,.6); }
.error-log { max-height: 420px; overflow: auto; background: #08090b; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .75rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: #c9ced8; }
.log-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
/* 言語切り替え・翻訳 */
.nav-lang { font-size: .8rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; text-decoration: none; }
.lang-switch a { font-weight: 700; }
.translate-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.pre-line { white-space: pre-line; }

/* 管理: AIのお手本写真 */
.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.ref-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.ref-stat strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.ref-stat span { color: var(--muted); font-size: .82rem; }
.ref-upload { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ref-kinds { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ref-kinds label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-weight: 600; }
.ref-kinds input { width: auto; }
.ref-note[hidden] { display: none; }
.ref-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.ref-tabs a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; color: var(--muted); }
.ref-tabs a.active { color: var(--text); border-color: var(--cbrz); }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ref-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ref-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ref-meta { padding: 8px 10px; }
.ref-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.ref-brz .ref-badge { color: #7cc4ff; border-color: var(--cbrz); }
.ref-other .ref-badge { color: var(--muted); }
.ref-similar .ref-badge { color: #ffb36b; border-color: var(--c86b); }
.ref-meta .ref-note-text { display: block; margin-top: 2px; }
.ref-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: .8rem; }
.ref-actions form { display: flex; align-items: center; gap: 6px; }
.ref-actions select { flex: 1; min-width: 0; padding: 2px 4px; font-size: .78rem; }
.ref-actions .link-btn { white-space: nowrap; }
.ref-reject select { width: auto; padding: 4px 6px; font-size: .8rem; margin-right: 4px; }
.ref-add form { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.ref-add select { width: auto; flex: 1; }

/* 公式アカウント */
.badge-official { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.5; vertical-align: 2px; color: #0c0d10; background: linear-gradient(90deg, #ffd166, #ffb13b); white-space: nowrap; }
h1 .badge-official { font-size: .8rem; vertical-align: 6px; }
.badge-official.is-small { font-size: .62rem; padding: 0 6px 0 4px; margin-left: 4px; vertical-align: 1px; }
.badge-official svg { flex-shrink: 0; }
.official-line { margin: 2px 0 6px; font-weight: 600; }
.ok-text { color: #4fd18b; }
.official-app { border-color: #b8860b; }
.official-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.official-form input { width: auto; flex: 1 1 180px; padding: 6px 10px; }
.official-manual { margin: 10px 0 28px; }
.official-manual form { margin-top: 8px; }
.official-table { margin: 10px 0; }
[data-official-only][hidden] { display: none; }
.official-line a { text-decoration: underline; }
