:root {
  --bg: #0c0e12;
  --panel: #12151b;
  --panel-2: #171b22;
  --panel-3: #1d222b;
  --border: #2a303b;
  --text: #f4f6fb;
  --muted: #8f98a8;
  --accent: #ff4778;
  --accent-2: #ff6f9a;
  --blue: #5d85ff;
  --success: #4dc98b;
  --warning: #f5b650;
  --shadow: 0 18px 55px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: Inter, "Segoe UI", "Noto Sans JP", sans-serif; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell { height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: radial-gradient(circle at 80% -20%, rgba(255,71,120,.08), transparent 35%), var(--bg); }
.sidebar { background: #101218; border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), #ff9c5a); box-shadow: 0 8px 24px rgba(255,71,120,.25); }
.brand-name { font-weight: 800; letter-spacing: .2px; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.side-section { display: grid; gap: 10px; }
.side-section.grow { margin-top: auto; }
.side-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #c8cfdb; font-weight: 800; }
.side-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.filter-list { display: grid; gap: 5px; }
.filter-btn { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 10px 11px; border-radius: 10px; cursor: pointer; color: #c6ccd7; display: flex; justify-content: space-between; align-items: center; }
.filter-btn:hover { background: var(--panel-2); }
.filter-btn.active { background: rgba(255,71,120,.12); border-color: rgba(255,71,120,.28); color: #fff; }
.count-pill { color: var(--muted); font-size: 11px; }

.main { min-width: 0; overflow: auto; padding-bottom: 40px; }
.topbar { position: sticky; top: 0; z-index: 5; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: rgba(12,14,18,.92); backdrop-filter: blur(18px); }
.search-wrap { flex: 1; min-width: 0; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.search { width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 13px 16px 13px 42px; outline: none; }
.search:focus, input:focus, select:focus, textarea:focus { border-color: rgba(255,71,120,.7); box-shadow: 0 0 0 3px rgba(255,71,120,.08); }
.top-actions { display: flex; gap: 10px; align-items: center; }

.content-head { padding: 26px 22px 8px; display: flex; justify-content: space-between; align-items: end; }
.content-head h1, .modal-header h2 { margin: 4px 0 4px; font-size: 24px; }
.eyebrow { color: var(--accent-2); font-size: 11px; letter-spacing: .16em; font-weight: 900; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.asset-grid { padding: 14px 22px 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.asset-card { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 36%), var(--panel-2); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; min-width: 0; }
.asset-card:hover { transform: translateY(-3px); border-color: #3a4250; box-shadow: 0 14px 34px rgba(0,0,0,.26); }
.card-image { aspect-ratio: 1 / 1; background: #0f1217; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 32% 20%, rgba(255,255,255,.08), transparent 26%), linear-gradient(145deg, #1e2430, #11151c); color: #c7cedb; font-size: 42px; }
.card-body { padding: 12px 13px 14px; }
.category-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 800; margin-bottom: 9px; }
.cat-hair { background: rgba(255,190,75,.14); color: #ffc55f; }
.cat-makeup { background: rgba(255,90,145,.15); color: #ff7aa8; }
.cat-avatar { background: rgba(174,112,255,.14); color: #be90ff; }
.cat-clothes { background: rgba(255,119,74,.15); color: #ff906d; }
.cat-accessory { background: rgba(111,104,255,.15); color: #938eff; }
.cat-gimmick { background: rgba(74,170,255,.15); color: #79beff; }
.card-title { font-size: 15px; line-height: 1.35; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.avatar-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; min-height: 23px; }
.chip { background: #252b35; border: 1px solid #303744; color: #cbd2df; border-radius: 999px; padding: 3px 7px; font-size: 10px; }
.card-shop { color: var(--muted); font-size: 12px; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: 16px; padding: 50px; text-align: center; color: var(--muted); }

.primary-btn, .secondary-btn, .ghost-btn, .icon-btn { border: 0; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.primary-btn { background: linear-gradient(135deg, var(--accent), #f23f6f); padding: 11px 15px; font-weight: 800; box-shadow: 0 8px 22px rgba(255,71,120,.2); }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.secondary-btn { background: var(--blue); padding: 11px 14px; font-weight: 800; }
.ghost-btn { background: var(--panel-3); border: 1px solid var(--border); padding: 10px 13px; }
.ghost-btn:hover { background: #252b35; }
.full { width: 100%; }
.icon-btn { width: 36px; height: 36px; background: var(--panel-3); border: 1px solid var(--border); font-size: 20px; display: grid; place-items: center; }
.select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; outline: none; }
.select.compact { width: auto; min-width: 120px; }

.detail-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(520px, 42vw); background: rgba(18,21,27,.98); border-left: 1px solid var(--border); box-shadow: -24px 0 60px rgba(0,0,0,.36); z-index: 20; transform: translateX(105%); transition: transform .22s ease; overflow: auto; }
.detail-drawer.open { transform: translateX(0); }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px; background: rgba(18,21,27,.94); backdrop-filter: blur(12px); }
.detail-content { padding: 0 18px 26px; }
.detail-hero { width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: #0f1217; border: 1px solid var(--border); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 27px; margin: 16px 0 6px; }
.detail-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.detail-section h3 { font-size: 13px; letter-spacing: .04em; margin: 0 0 10px; color: #dfe4ed; }
.link-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn { background: #202731; border: 1px solid #303846; color: #dfe8ff; padding: 9px 11px; border-radius: 9px; cursor: pointer; }
.link-btn:hover { border-color: var(--blue); }
.detail-actions { display: flex; gap: 8px; margin-top: 18px; }
.comment-list { display: grid; gap: 10px; margin-top: 12px; }
.comment { background: #151920; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.comment-meta { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.comment-body { line-height: 1.55; font-size: 13px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.68); display: grid; place-items: center; z-index: 50; padding: 28px; backdrop-filter: blur(6px); }
.modal-backdrop.hidden { display: none; }
.modal { width: min(900px, 94vw); max-height: 92vh; overflow: auto; background: #13171d; border: 1px solid #303744; border-radius: 18px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 13px; border-bottom: 1px solid var(--border); }
.asset-form { padding: 20px 22px 22px; display: grid; gap: 18px; }
.asset-form label, .thumb-preview-wrap { display: grid; gap: 7px; color: #d9deea; font-size: 12px; font-weight: 700; }
.asset-form input, .comment-form input { width: 100%; background: #0f1319; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.url-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.preview-grid { align-items: end; }
.thumb-preview { width: 128px; height: 128px; border-radius: 12px; overflow: hidden; background: #0e1116; border: 1px dashed #3a4250; color: var(--muted); display: grid; place-items: center; font-size: 11px; }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.status { min-height: 16px; font-size: 12px; color: var(--muted); margin-top: -8px; }
.status.ok { color: var(--success); }
.status.err { color: #ff738c; }
.links-editor { border-top: 1px solid var(--border); padding-top: 16px; }
.editor-title-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.field-title { font-size: 13px; font-weight: 800; }
.link-rows { display: grid; gap: 8px; margin-top: 12px; }
.link-row { display: grid; grid-template-columns: .75fr 1.5fr auto; gap: 8px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
  .detail-drawer { width: min(520px, 55vw); }
}


.hidden { display: none !important; }

.detail-view { padding: 18px 22px 34px; }
.detail-page { padding: 0; }
.detail-page-top { display: flex; justify-content: flex-start; margin-bottom: 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .85fr); gap: 22px; align-items: start; }
.detail-main-card, .detail-side-card, .detail-comments-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 36%), var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.detail-main-card { padding: 18px; }
.detail-side-card { padding: 18px; }
.detail-comments-card { margin-top: 20px; padding: 18px; }
.detail-hero.large { aspect-ratio: 16 / 11; border-radius: 16px; }
.detail-hero.large img, .detail-hero.large .placeholder { width: 100%; height: 100%; }
.detail-hero.large .placeholder { font-size: 72px; }
.detail-title-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.detail-title { font-size: 42px; line-height: 1.12; margin: 0 0 8px; }
.detail-shop { font-size: 16px; }
.detail-section.first { margin-top: 0; padding-top: 0; }
.detail-section.no-line { border-top: 0; }
.detail-actions { margin-top: 22px; }
.comment-form input { min-height: 44px; }

@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-title { font-size: 34px; }
}


.tag-editor-field { display: grid; gap: 7px; color: #d9deea; font-size: 12px; font-weight: 700; }
.smart-tag-editor { position: relative; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: #0f1319; border: 1px solid var(--border); border-radius: 10px; padding: 6px 9px; }
.smart-tag-editor:focus-within { border-color: rgba(255,71,120,.7); box-shadow: 0 0 0 3px rgba(255,71,120,.08); }
.smart-tag-editor input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: 5px 4px !important; background: transparent !important; }
.selected-tags { display: contents; }
.selected-tag { border: 1px solid #3a4350; background: #252c36; color: #e8edf6; border-radius: 999px; padding: 5px 8px; font-size: 11px; cursor: pointer; }
.selected-tag span { color: #9aa5b5; margin-left: 3px; }
.tag-suggestions { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #35404d; background: #171c23; border-radius: 11px; box-shadow: 0 18px 45px rgba(0,0,0,.42); }
.suggestion-item { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #eef2f8; text-align: left; cursor: pointer; }
.suggestion-item:hover { background: #252c36; }
.usage-count { color: #8e99aa; font-size: 10px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag-chip { background: rgba(65,135,255,.12); border-color: rgba(65,135,255,.25); color: #a9c8ff; }


/* v0.1.5 threaded comments */
.thread-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.thread-section-head h3 { margin-bottom:5px; }
.new-thread-composer { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; align-items:center; background:#12161c; border:1px solid var(--border); border-radius:14px; padding:11px; }
.new-thread-composer input, .reply-composer input { width:100%; background:#0c1015; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:11px 12px; outline:none; }
.thread-list { display:grid; gap:0; margin-top:20px; }
.thread-empty { padding:20px 8px; text-align:center; }
.thread-item { display:grid; grid-template-columns:42px minmax(0,1fr); gap:10px; position:relative; padding:10px 0 2px; }
.thread-item + .thread-item { border-top:1px solid rgba(255,255,255,.055); margin-top:12px; padding-top:18px; }
.thread-rail { position:relative; display:flex; flex-direction:column; align-items:center; min-height:100%; }
.thread-avatar { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:13px; color:#fff; background:linear-gradient(145deg,var(--accent),#7a72ff); box-shadow:0 0 0 3px #151920; z-index:1; }
.composer-avatar { background:linear-gradient(145deg,#3d8cff,#7a72ff); box-shadow:none; }
.thread-line { width:2px; flex:1; min-height:24px; background:linear-gradient(var(--border),rgba(255,255,255,.04)); margin-top:5px; border-radius:2px; }
.thread-content { min-width:0; padding-bottom:6px; }
.thread-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:34px; }
.thread-head strong { font-size:13px; }
.thread-head span { color:var(--muted); font-size:11px; margin-left:8px; font-weight:500; }
.thread-body { color:#e5e9f1; line-height:1.65; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; padding:3px 0 7px; }
.thread-actions { display:flex; flex-wrap:wrap; gap:4px; min-height:27px; }
.thread-action { background:transparent; border:0; color:#8ea1bd; padding:4px 7px; border-radius:7px; font-size:11px; cursor:pointer; }
.thread-action:hover { background:#202630; color:#fff; }
.reply-composer { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; margin-top:8px; padding:9px; background:#10141a; border:1px solid var(--border); border-radius:12px; }
.reply-composer .secondary-btn, .reply-composer .ghost-btn { padding:9px 11px; font-size:12px; white-space:nowrap; }
.thread-children { margin-top:4px; margin-left:1px; border-left:1px solid #343b47; padding-left:14px; }
.thread-children .thread-item + .thread-item { border-top:0; margin-top:4px; padding-top:10px; }
.thread-item.depth-1 .thread-avatar { transform:scale(.92); }
.thread-item.depth-2 .thread-avatar, .thread-item.depth-3 .thread-avatar, .thread-item.depth-4 .thread-avatar { transform:scale(.84); }

@media (max-width: 720px) {
  .new-thread-composer { grid-template-columns:34px minmax(0,1fr); }
  .new-thread-composer .secondary-btn { grid-column:2; justify-self:end; }
  .reply-composer { grid-template-columns:1fr auto; }
  .reply-composer .reply-input { grid-column:1 / -1; }
}


/* v0.1.6 tag filtering + own comment deletion */
.tiny { font-size: 10px; line-height: 1.45; }
.filter-tag-editor {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 7px;
}
.filter-tag-editor:focus-within { border-color: rgba(255,71,120,.7); box-shadow: 0 0 0 3px rgba(255,71,120,.07); }
.filter-tag-editor input {
  width: 100%;
  min-width: 70px;
  flex: 1;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  padding: 4px 3px;
  font: inherit;
  font-size: 12px;
}
.filter-selected-tags { display: contents; }
.filter-selected-tag {
  border: 1px solid rgba(65,135,255,.28);
  background: rgba(65,135,255,.12);
  color: #b8d1ff;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  cursor: pointer;
}
.filter-selected-tag span { color: #8ea3c5; margin-left: 2px; }
.filter-clear-btn {
  border: 0;
  background: transparent;
  color: #8f9bae;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
  font-size: 10px;
}
.filter-clear-btn:hover { color: #fff; }
.filter-tag-editor .tag-suggestions { min-width: 190px; left: 0; right: auto; width: 100%; }
.delete-comment-btn { color: #ff8fa5; }
.delete-comment-btn:hover { background: rgba(255,71,120,.10); color: #ffb3c2; }
.deleted-comment .thread-avatar { background: #3a404a; color: #9ba5b3; }
.deleted-body { color: #7f8998; font-style: italic; }


/* v0.1.7 投稿者評価 */
.thread-head { align-items:center; }
.thread-author-line { min-width:0; }
.user-rating { display:flex; align-items:center; gap:5px; margin-left:auto; }
.rating-btn {
  min-width:52px; height:28px; padding:0 8px; border-radius:8px;
  border:1px solid var(--border); background:#151b22; color:#95a1b2;
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  font-size:11px; font-weight:800; cursor:pointer; transition:.15s ease;
}
.rating-btn:hover { background:#202832; color:#fff; transform:translateY(-1px); }
.rating-btn.up.active { color:#6ee7a8; border-color:rgba(74,222,128,.5); background:rgba(34,197,94,.12); }
.rating-btn.down.active { color:#ff8597; border-color:rgba(255,71,120,.5); background:rgba(255,71,120,.12); }
.self-rating-label {
  margin-left:auto; color:#758196; font-size:10px; border:1px solid var(--border);
  border-radius:999px; padding:4px 8px; white-space:nowrap;
}
@media (max-width: 720px) {
  .thread-head { align-items:flex-start; flex-direction:column; }
  .user-rating, .self-rating-label { margin-left:0; }
}


/* v0.1.8 コメント評価 + 通報 */
.comment-feedback-group { display:inline-flex; align-items:center; gap:3px; }
.comment-vote-btn {
  border:1px solid transparent;
  min-width:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.comment-vote-btn:hover:not(:disabled) { border-color:#343d4b; }
.comment-vote-btn.up.active { color:#6ee7a8; background:rgba(34,197,94,.11); border-color:rgba(74,222,128,.35); }
.comment-vote-btn.down.active { color:#ff8597; background:rgba(255,71,120,.11); border-color:rgba(255,71,120,.35); }
.comment-vote-btn:disabled { opacity:.38; cursor:not-allowed; }
.report-comment-btn { color:#9a8791; }
.report-comment-btn:hover:not(:disabled) { color:#ff9aad; background:rgba(255,71,120,.08); }
.report-comment-btn.reported, .report-comment-btn:disabled.reported { color:#b98591; opacity:.72; cursor:default; }

/* v0.1.9 invite-only auth + guest preview */
.auth-top-actions { display:flex; align-items:center; gap:8px; }
.account-badge {
  display:inline-flex; align-items:center; min-height:38px; padding:0 11px;
  border:1px solid var(--border); border-radius:10px; background:#151b22; color:#e9edf5;
  font-size:12px; font-weight:800;
}
.guest-mode-card, .account-card {
  display:grid; gap:8px; padding:11px; border:1px solid var(--border); border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent),#151920;
}
.guest-mode-title { font-size:12px; font-weight:900; color:#ffd0dc; }
.account-role { width:max-content; padding:3px 7px; border-radius:999px; background:rgba(65,135,255,.12); color:#a9c8ff; font-size:10px; }
.login-modal {
  width:min(430px,92vw); overflow:hidden; background:#13171d; border:1px solid #303744;
  border-radius:18px; box-shadow:var(--shadow);
}
.login-form { display:grid; gap:14px; padding:22px; }
.login-form label, .user-create-grid label { display:grid; gap:7px; color:#d9deea; font-size:12px; font-weight:700; }
.login-form input, .user-create-grid input {
  width:100%; background:#0f1319; color:var(--text); border:1px solid var(--border); border-radius:10px;
  padding:11px 12px; outline:none;
}
.login-lock {
  width:54px; height:54px; margin:2px auto 0; border-radius:16px; display:grid; place-items:center;
  background:linear-gradient(145deg,var(--accent),#7a72ff); box-shadow:0 12px 28px rgba(255,71,120,.22); font-size:22px;
}
.login-copy { text-align:center; line-height:1.65; margin:0 12px; }
.login-submit { min-height:44px; }
.guest-note { text-align:center; color:#798496; font-size:10px; }
.guest-comment-lock {
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
  border:1px solid var(--border); background:#12161c; border-radius:14px; padding:13px 14px;
}
.guest-comment-lock > span { font-size:20px; }
.user-manager-modal { width:min(880px,94vw); }
.user-manager-body { display:grid; gap:22px; padding:20px 22px 24px; }
.user-manager-body h3 { margin:0 0 12px; font-size:14px; }
.create-user-panel { border-bottom:1px solid var(--border); padding-bottom:20px; }
.user-create-grid { display:grid; grid-template-columns:1fr 1fr 180px auto; gap:10px; align-items:end; }
.user-create-grid .select { min-height:42px; }
.user-list { display:grid; gap:8px; }
.user-row {
  display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 13px;
  border:1px solid var(--border); border-radius:12px; background:#151920;
}
.user-row.disabled { opacity:.55; }
.user-row-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.user-row-actions .ghost-btn { padding:8px 10px; font-size:11px; }

@media (max-width: 850px) {
  .user-create-grid { grid-template-columns:1fr 1fr; }
  .guest-comment-lock { grid-template-columns:auto 1fr; }
  .guest-comment-lock .secondary-btn { grid-column:2; justify-self:start; }
}


/* v0.2.0 信用スコア / 称号 / ネームカラー */
.trust-identity {
  --trust-color:#e5e7eb;
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px;
  min-width:0;
}
.trust-name {
  color:var(--trust-color); font-weight:900; letter-spacing:.01em;
  text-shadow:0 0 14px color-mix(in srgb, var(--trust-color) 24%, transparent);
}
.trust-title {
  border:1px solid color-mix(in srgb, var(--trust-color) 35%, transparent);
  background:color-mix(in srgb, var(--trust-color) 10%, transparent);
  color:var(--trust-color);
  border-radius:999px; padding:2px 7px; font-size:9px; font-weight:900;
  white-space:nowrap;
}
.trust-score {
  color:#8d98aa; font-size:9px; font-weight:800; white-space:nowrap;
}
.trust-identity.compact { gap:5px; }
.trust-identity.compact .trust-title { padding:2px 6px; }
.trust-identity.compact .trust-score { font-size:9px; }
.trust-member-low { --trust-color:#fb7185; }
.trust-member { --trust-color:#e5e7eb; }
.trust-rookie { --trust-color:#bae6fd; }
.trust-supporter { --trust-color:#67e8f9; }
.trust-contributor { --trust-color:#5eead4; }
.trust-active { --trust-color:#86efac; }
.trust-veteran { --trust-color:#bef264; }
.trust-expert { --trust-color:#fde047; }
.trust-specialist { --trust-color:#fbbf24; }
.trust-elite { --trust-color:#fb923c; }
.trust-master { --trust-color:#f472b6; }
.trust-grandmaster { --trust-color:#c084fc; }
.trust-ace { --trust-color:#818cf8; }
.trust-champion { --trust-color:#a78bfa; }
.trust-hero { --trust-color:#fb7185; }
.trust-legend { --trust-color:#facc15; }
.trust-mythic { --trust-color:#f0abfc; }
.trust-grandmaster .trust-name,
.trust-champion .trust-name,
.trust-legend .trust-name,
.trust-mythic .trust-name { text-shadow:0 0 12px color-mix(in srgb, var(--trust-color) 48%, transparent),0 0 26px color-mix(in srgb, var(--trust-color) 24%, transparent); }
.trust-legend .trust-title,
.trust-mythic .trust-title { box-shadow:0 0 18px color-mix(in srgb, var(--trust-color) 20%, transparent); }
.trust-mythic .trust-name {
  background:linear-gradient(90deg,#f0abfc,#67e8f9,#fde047,#fb7185,#f0abfc);
  background-size:220% auto;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:mythic-shine 4s linear infinite;
}
@keyframes mythic-shine { to { background-position:220% center; } }
.thread-author-line { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.thread-date { color:var(--muted); font-size:10px; }
.account-badge { padding:5px 10px; }
.account-badge .trust-score { display:none; }
.account-card .trust-identity { align-items:flex-start; }
.trust-guide-panel { border-bottom:1px solid var(--border); padding-bottom:18px; }
.trust-guide { display:flex; gap:7px; flex-wrap:wrap; }
.trust-guide-item {
  --trust-color:#e5e7eb;
  color:var(--trust-color); border:1px solid color-mix(in srgb, var(--trust-color) 34%, transparent);
  background:color-mix(in srgb, var(--trust-color) 8%, transparent);
  border-radius:999px; padding:5px 9px; font-size:10px; font-weight:900;
}
.trust-guide-note { margin-top:9px; line-height:1.5; }
.user-row .trust-identity { margin-bottom:3px; }
@media (max-width:720px) {
  .trust-score { width:100%; }
  .account-badge .trust-title { display:none; }
}


/* v0.2.1 信用スコア単純加減点 + 詳細リンク評価ゲート */
.protected-link { border-color:#5b4a2c; background:linear-gradient(180deg,#292319,#202731); }
.protected-link:hover { border-color:#f59e0b; }
.link-gate-modal {
  width:min(520px,92vw); background:#13171d; border:1px solid #303744; border-radius:18px;
  box-shadow:var(--shadow); overflow:hidden;
}
.link-gate-body { padding:24px; display:grid; justify-items:center; gap:15px; text-align:center; }
.link-gate-lock { width:58px; height:58px; display:grid; place-items:center; border-radius:18px; font-size:27px; background:#1d2430; border:1px solid #323b49; }
.link-gate-copy { color:#dfe5ef; line-height:1.7; }
.link-gate-copy strong { color:#fff; }
.link-gate-provider { padding:12px 15px; border:1px solid var(--border); background:#10141a; border-radius:12px; min-width:min(320px,80vw); }
.link-gate-help { color:var(--muted); font-size:11px; line-height:1.6; max-width:400px; }
.link-gate-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin-top:2px; }
.gate-vote-btn { min-height:46px; border-radius:11px; border:1px solid var(--border); cursor:pointer; font-weight:900; color:#fff; }
.gate-vote-btn.up { background:rgba(64,196,128,.15); border-color:rgba(64,196,128,.42); color:#82efb2; }
.gate-vote-btn.down { background:rgba(255,91,122,.12); border-color:rgba(255,91,122,.4); color:#ff8ca3; }
.gate-vote-btn:hover { filter:brightness(1.12); transform:translateY(-1px); }
@media (max-width:560px) { .link-gate-actions { grid-template-columns:1fr; } }


/* v0.2.3: Level-style trust titles */
.trust-title-tooltip { position:relative; cursor:help; }
.trust-tooltip {
  position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%) translateY(4px);
  min-width:260px; max-width:330px; padding:10px 12px; border-radius:8px;
  background:#eef1f5; color:#151922; border:1px solid #cfd5df;
  box-shadow:0 12px 30px rgba(0,0,0,.34); opacity:0; visibility:hidden;
  pointer-events:none; transition:.14s ease; z-index:80; text-align:left; font-size:11px;
  line-height:1.45; font-weight:600; text-transform:none; letter-spacing:0;
}
.trust-tooltip::after {
  content:''; position:absolute; left:50%; top:100%; transform:translateX(-50%);
  border:7px solid transparent; border-top-color:#eef1f5;
}
.trust-tooltip strong { display:block; color:#fff; background:#b7bec8; margin:-10px -12px 8px; padding:8px 10px; border-radius:7px 7px 0 0; font-size:11px; }
.trust-tooltip span { display:block; color:#69717c; }
.trust-title-tooltip:hover .trust-tooltip,
.trust-title-tooltip:focus .trust-tooltip { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }


/* v0.2.4 管理者専用カラーバリエーション */
.trust-admin {
  --trust-color:#ff4d6d;
}
.trust-admin .trust-name {
  background:linear-gradient(90deg,#ff3b5c 0%,#ff8a3d 22%,#ffd166 45%,#ff65b3 70%,#b678ff 88%,#ff3b5c 100%);
  background-size:260% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:none;
  animation:admin-name-shine 4.2s linear infinite;
  filter:drop-shadow(0 0 7px rgba(255,75,110,.28));
}
.trust-admin .trust-title {
  color:#fff;
  border:1px solid rgba(255,190,95,.78);
  background:linear-gradient(100deg,rgba(184,28,67,.95),rgba(118,45,177,.95),rgba(230,108,33,.95));
  background-size:220% 100%;
  box-shadow:0 0 13px rgba(255,68,112,.28), inset 0 0 12px rgba(255,255,255,.07);
  animation:admin-badge-shine 5s ease-in-out infinite alternate;
}
.trust-admin .trust-score {
  color:#ffc7d4;
}
.trust-admin .trust-tooltip strong {
  background:linear-gradient(90deg,#b91c4b,#7c3aed,#ea580c);
  color:#fff;
}
@keyframes admin-name-shine {
  to { background-position:260% center; }
}
@keyframes admin-badge-shine {
  from { background-position:0% 50%; box-shadow:0 0 10px rgba(255,68,112,.22); }
  to { background-position:100% 50%; box-shadow:0 0 22px rgba(184,96,255,.34); }
}

/* v0.2.5 ユーザープロフィール */
.trust-identity[data-profile-user] { cursor:pointer; }
.trust-identity[data-profile-user]:hover .trust-name { filter:brightness(1.12); }

.profile-view { padding:18px 22px 34px; }
.profile-content { max-width:1380px; margin:0 auto; }
.profile-back-row { margin-bottom:12px; }
.profile-hero {
  position:relative; min-height:220px; border:1px solid var(--border); border-radius:18px 18px 0 0;
  overflow:hidden; background:#090b0f;
}
.profile-cover-pattern {
  position:absolute; inset:0 0 auto; height:92px;
  background:
    linear-gradient(30deg,rgba(255,255,255,.018) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.018) 87.5%,rgba(255,255,255,.018)),
    linear-gradient(150deg,rgba(255,255,255,.018) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.018) 87.5%,rgba(255,255,255,.018)),
    linear-gradient(30deg,rgba(255,255,255,.018) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.018) 87.5%,rgba(255,255,255,.018));
  background-size:110px 190px; background-position:0 0,0 0,55px 95px;
  background-color:#303238;
}
.profile-hero-inner {
  position:relative; z-index:1; min-height:220px; display:flex; align-items:flex-end; gap:20px;
  padding:54px 34px 24px;
}
.profile-avatar {
  display:grid; place-items:center; flex:0 0 auto; overflow:hidden;
  border-radius:50%; background:linear-gradient(145deg,#ff4d5f,#ff623f); color:#fff; font-weight:500;
  border:4px solid #07090d; box-shadow:0 12px 35px rgba(0,0,0,.38);
}
.profile-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-avatar-xl { width:116px; height:116px; font-size:54px; }
.profile-head-copy { min-width:0; flex:1; padding-bottom:4px; }
.profile-head-copy h1 { margin:0; font-size:38px; line-height:1.05; letter-spacing:-.02em; }
.profile-handle { color:#bac2ce; font-size:12px; font-weight:800; margin:7px 0 8px; }
.profile-rank { display:inline-flex; --trust-color:#e5e7eb; }
.profile-rank .trust-title { font-size:9px; border-radius:4px; padding:3px 6px; }
.profile-edit-btn { align-self:flex-end; margin-bottom:8px; }

.profile-grid {
  display:grid; grid-template-columns:230px minmax(0,1fr); border:1px solid var(--border); border-top:0;
  border-radius:0 0 18px 18px; overflow:hidden; background:#0c0f13;
}
.profile-sidebar-card { border-right:1px solid var(--border); padding:18px 12px 24px; min-height:500px; }
.profile-side-heading { background:#171a1f; color:#aeb6c2; padding:9px 10px; border-radius:5px; font-size:11px; margin-bottom:6px; }
.profile-side-row { display:flex; justify-content:space-between; gap:10px; padding:8px 8px; font-size:11px; color:#b9c1cc; }
.profile-side-row strong { color:#eef2f7; font-weight:700; }
.profile-side-divider { height:1px; background:var(--border); margin:10px 8px; }
.profile-side-link { width:100%; text-align:left; border:0; background:transparent; color:#adb6c3; padding:8px; cursor:pointer; border-radius:6px; font-size:11px; }
.profile-side-link:hover { color:#fff; background:#171b21; }
.profile-side-link.danger:hover { color:#ff879d; }

.profile-main-panel { padding:18px 24px 30px; min-width:0; }
.profile-bio { min-height:38px; color:#dfe4ec; line-height:1.65; font-size:12px; white-space:pre-wrap; margin-bottom:16px; }
.profile-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.profile-stat-card { min-height:104px; display:grid; place-items:center; align-content:center; text-align:center; background:#0a0c10; border:1px solid #11151a; padding:12px; }
.profile-stat-card span { color:#9da8b7; font-size:10px; margin-bottom:6px; }
.profile-stat-card strong { color:#d7e6f5; font-size:31px; font-weight:400; line-height:1.05; }
.profile-stat-card strong.stat-small { font-size:13px; font-weight:500; line-height:1.4; }
.profile-stat-card small { color:#647082; font-size:9px; margin-top:6px; }
.profile-section-title { margin:24px 0 10px; font-size:12px; font-weight:900; color:#e6ebf3; padding-bottom:9px; border-bottom:1px solid var(--border); }
.profile-activity-list { display:grid; }
.profile-activity { display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:center; width:100%; text-align:left; color:inherit; border:0; border-bottom:1px solid #1a1f27; background:transparent; padding:11px 5px; cursor:pointer; }
.profile-activity:hover { background:#11151a; }
.activity-icon { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#171d26; color:#75a8ff; font-size:11px; }
.activity-copy { min-width:0; display:grid; gap:3px; }
.activity-copy strong { color:#e6eaf0; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-copy small { color:#7d8796; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-empty { padding:24px 6px; }

.profile-edit-modal { width:min(640px,94vw); }
.profile-edit-form { padding:20px 22px 22px; display:grid; gap:15px; }
.profile-edit-form label { display:grid; gap:7px; color:#d9deea; font-size:12px; font-weight:700; }
.profile-edit-form input, .profile-edit-form textarea { width:100%; background:#0f1319; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:11px 12px; outline:none; resize:vertical; }
.profile-edit-form input:focus, .profile-edit-form textarea:focus { border-color:rgba(255,71,120,.7); box-shadow:0 0 0 3px rgba(255,71,120,.08); }

@media (max-width:980px) {
  .profile-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-grid { grid-template-columns:190px minmax(0,1fr); }
}
@media (max-width:720px) {
  .profile-view { padding:12px; }
  .profile-hero-inner { align-items:center; padding:45px 18px 18px; flex-wrap:wrap; }
  .profile-avatar-xl { width:88px; height:88px; font-size:40px; }
  .profile-head-copy h1 { font-size:29px; }
  .profile-edit-btn { width:100%; margin:0; }
  .profile-grid { grid-template-columns:1fr; }
  .profile-sidebar-card { min-height:0; border-right:0; border-bottom:1px solid var(--border); }
  .profile-main-panel { padding:16px; }
  .profile-stat-grid { grid-template-columns:1fr 1fr; }
}
.profile-name { color:var(--trust-color,#fff); }
.profile-name.trust-admin {
  background:linear-gradient(90deg,#ff3b5c,#ff8a3d,#ffd166,#ff65b3,#b678ff,#ff3b5c);
  background-size:260% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:admin-name-shine 4.2s linear infinite; filter:drop-shadow(0 0 7px rgba(255,75,110,.24));
}


/* v0.2.6 login sessions */
.profile-side-heading.profile-tab-btn { width:100%; border:0; text-align:left; cursor:pointer; }
.profile-side-heading.profile-tab-btn.active { color:#fff; background:#20252d; }
.profile-side-link.active { color:#fff; background:#171b21; }
.profile-side-link .side-count { float:right; color:#788393; }
.session-main-panel { padding-top:16px; }
.session-page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.session-page-head h2 { margin:0 0 7px; font-size:18px; }
.session-page-head p { margin:0; color:#aeb7c4; font-size:12px; line-height:1.6; }
.session-privacy-note { margin:12px 0 14px; padding:10px 12px; border:1px solid #29303a; background:#11161c; color:#9aa6b5; border-radius:8px; font-size:11px; line-height:1.55; }
.session-list { display:grid; gap:10px; }
.session-card { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:12px; align-items:center; background:#171a1f; border:1px solid #2a3038; border-radius:9px; padding:14px; }
.session-card.current { border-color:#394654; background:#1b1f24; }
.session-icon { color:#718096; font-size:18px; text-align:center; }
.session-card.current .session-icon { color:#74d447; }
.session-title { color:#edf2f8; font-weight:800; font-size:12px; }
.session-title span { color:#b8c1ce; font-weight:600; }
.session-title em { display:inline-flex; margin-left:8px; padding:2px 6px; border-radius:999px; font-size:9px; font-style:normal; background:rgba(116,212,71,.12); color:#88e45f; border:1px solid rgba(116,212,71,.22); }
.session-meta { color:#9ba6b4; font-size:10px; margin-top:5px; }
.session-meta.mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#7f8b99; }
.session-actions { display:flex; align-items:center; justify-content:flex-end; min-width:150px; }
.session-status-dot { width:10px; height:10px; border-radius:50%; background:#74d447; box-shadow:0 0 0 3px rgba(116,212,71,.10); }
.danger-outline { color:#ff9aaa; border-color:#65303a; }
.danger-outline:hover { background:#2b171d; color:#ffc0ca; }
.revoke-session-btn { white-space:nowrap; }
@media (max-width: 860px) {
  .session-page-head { flex-direction:column; }
  .session-card { grid-template-columns:20px minmax(0,1fr); }
  .session-actions { grid-column:2; justify-content:flex-start; min-width:0; }
}


/* v0.2.7: product information last-updated metadata */
.product-update-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: #cdd4df;
}
.product-update-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #202731;
  border: 1px solid #303846;
  color: var(--accent-2);
  font-size: 16px;
}
.product-update-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.product-update-value {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #e5e9f0;
}

/* =========================================================
   v0.3.0 UI REFRESH — cleaner spacing, hierarchy and polish
   ========================================================= */
:root {
  --bg: #090c11;
  --panel: #0f1319;
  --panel-2: #141922;
  --panel-3: #1a202a;
  --panel-4: #202733;
  --border: #252d39;
  --border-soft: rgba(255,255,255,.055);
  --text: #f7f9fc;
  --muted: #8d98a8;
  --muted-2: #667285;
  --accent: #ff4778;
  --accent-2: #ff7198;
  --blue: #628cff;
  --success: #55d394;
  --warning: #f4bd62;
  --shadow: 0 22px 65px rgba(0,0,0,.38);
  --shadow-soft: 0 12px 32px rgba(0,0,0,.20);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

html, body {
  background:
    radial-gradient(circle at 78% -10%, rgba(255,71,120,.055), transparent 30%),
    radial-gradient(circle at 25% 110%, rgba(98,140,255,.035), transparent 32%),
    var(--bg);
  color: var(--text);
}

* { scrollbar-width: thin; scrollbar-color: #303947 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2b3441; border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #3a4554; border: 3px solid transparent; background-clip: padding-box; }

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  position: relative;
  z-index: 12;
  padding: 18px 14px 16px;
  gap: 18px;
  background: linear-gradient(180deg, rgba(15,18,24,.98), rgba(12,15,20,.98));
  border-right: 1px solid #202733;
  box-shadow: 14px 0 36px rgba(0,0,0,.10);
}

.brand {
  gap: 12px;
  padding: 2px 6px 17px;
  border-bottom-color: #242b35;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 17px;
  background: linear-gradient(145deg, #ff557f 0%, #ff6f68 55%, #ff9c63 100%);
  box-shadow: 0 9px 24px rgba(255,71,120,.20), inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-name { font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-size: 10px; color: #738094; }

.side-section { gap: 8px; }
.side-title {
  color: #99a6b8;
  font-size: 10px;
  letter-spacing: .13em;
  padding: 0 7px;
}
.side-note { color: #788598; font-size: 11px; line-height: 1.65; padding: 0 7px; }
.filter-list { gap: 4px; }
.filter-btn {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #aeb8c6;
  border-color: transparent;
  font-size: 12px;
}
.filter-btn:hover { background: rgba(255,255,255,.04); color: #edf1f7; }
.filter-btn.active {
  background: linear-gradient(90deg, rgba(255,71,120,.15), rgba(255,71,120,.055));
  border-color: rgba(255,71,120,.28);
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(255,71,120,.88);
}
.count-pill { color: #6f7b8d; font-size: 10px; }
.filter-btn.active .count-pill { color: #ff9ab5; }

.select,
.search,
.asset-form input,
.asset-form textarea,
.profile-edit-form input,
.profile-edit-form textarea,
.login-form input,
.user-create-grid input,
.comment-form input,
.new-thread-composer input,
.reply-composer input {
  background: #0e131a;
  border-color: #28313e;
  border-radius: 11px;
  color: #eef2f7;
}
.select:hover,
.search:hover,
.asset-form input:hover,
.profile-edit-form input:hover,
.profile-edit-form textarea:hover,
.login-form input:hover,
.user-create-grid input:hover {
  border-color: #344050;
}
.search:focus, input:focus, select:focus, textarea:focus,
.smart-tag-editor:focus-within,
.filter-tag-editor:focus-within {
  border-color: rgba(255,92,132,.72) !important;
  box-shadow: 0 0 0 3px rgba(255,71,120,.09) !important;
}

.main {
  background: linear-gradient(180deg, rgba(255,255,255,.008), transparent 180px);
  padding-bottom: 56px;
}
.topbar {
  min-height: 72px;
  padding: 12px 22px;
  gap: 14px;
  border-bottom-color: rgba(255,255,255,.065);
  background: rgba(9,12,17,.82);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.search-wrap { max-width: none; }
.search {
  height: 46px;
  padding-left: 44px;
  background: rgba(20,25,34,.86);
  border-color: #293240;
  font-size: 13px;
}
.search-icon { left: 15px; color: #7f8da1; font-size: 18px; }
.top-actions { gap: 9px; }
.select.compact { height: 42px; min-width: 116px; padding: 0 11px; }
.auth-top-actions { gap: 7px; }
.account-badge { min-height: 40px; border-radius: 11px; background: #141a22; border-color: #2a3442; }

.primary-btn, .secondary-btn, .ghost-btn, .icon-btn, .link-btn {
  border-radius: 10px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.primary-btn {
  background: linear-gradient(135deg, #ff4778, #f93f6b);
  box-shadow: 0 8px 20px rgba(255,71,120,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(255,71,120,.26); }
.secondary-btn { background: linear-gradient(135deg, #5f86ff, #5679eb); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.secondary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ghost-btn { background: #171d26; border-color: #2a3442; color: #d8dee8; }
.ghost-btn:hover { background: #202733; border-color: #3a4657; }
.icon-btn { background: #171d26; border-color: #2b3441; color: #aeb9c8; }
.icon-btn:hover { background: #222a35; color: #fff; }

.content-head {
  max-width: 1720px;
  margin: 0 auto;
  padding: 30px 26px 8px;
}
.content-head h1 { margin: 5px 0 5px; font-size: 28px; letter-spacing: -.03em; }
.eyebrow { color: #ff769d; font-size: 10px; letter-spacing: .18em; }

.asset-grid {
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 26px 42px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.asset-card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006)), #121720;
  border-color: #242d39;
  border-radius: 17px;
  box-shadow: 0 8px 25px rgba(0,0,0,.10);
}
.asset-card:hover {
  transform: translateY(-4px);
  border-color: #3b4657;
  box-shadow: 0 20px 46px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.015);
}
.card-image { background: #0c1016; }
.card-image::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 28%;
  background: linear-gradient(transparent, rgba(5,8,12,.22));
  pointer-events: none;
}
.placeholder {
  background:
    radial-gradient(circle at 28% 18%, rgba(120,145,182,.12), transparent 24%),
    linear-gradient(145deg,#1b222d,#10151c 64%);
  color: #cbd4e1;
  font-size: 38px;
}
.card-body { padding: 13px 14px 15px; }
.category-badge {
  min-height: 24px;
  padding: 4px 8px;
  margin-bottom: 8px;
  font-size: 10px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background-clip: padding-box;
}
.card-title { font-size: 15px; line-height: 1.4; min-height: 42px; letter-spacing: -.01em; }
.card-shop { color: #7f8b9d; font-size: 11px; margin-top: 9px; }
.avatar-chips { gap: 5px; margin-top: 8px; min-height: 22px; }
.chip {
  background: #202732;
  border-color: #2b3542;
  color: #b9c4d2;
  padding: 3px 7px;
  font-size: 9px;
}
.tag-chip { background: rgba(98,140,255,.10); border-color: rgba(98,140,255,.22); color: #a8c1ff; }
.empty { background: rgba(255,255,255,.012); border-color: #2a3441; }

/* Detail page */
.detail-view { padding: 22px 26px 44px; }
.detail-page { max-width: 1640px; margin: 0 auto; }
.detail-page-top { margin-bottom: 14px; }
.detail-layout { grid-template-columns: minmax(0,1.28fr) minmax(380px,.72fr); gap: 20px; }
.detail-main-card,
.detail-side-card,
.detail-comments-card {
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 40%), #121720;
  border-color: #252e3a;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.detail-main-card { padding: 16px; }
.detail-hero.large {
  aspect-ratio: 1 / 1;
  max-height: 820px;
  background: #0d1117;
  border-color: #26303d;
  border-radius: 14px;
}
.detail-side-card { padding: 20px; position: sticky; top: 92px; }
.detail-title { font-size: clamp(30px,2.3vw,42px); letter-spacing: -.035em; line-height: 1.08; }
.detail-shop { color: #91a0b2; font-size: 13px; margin-top: 5px; }
.detail-section { margin-top: 18px; padding-top: 17px; border-top-color: #29313c; }
.detail-section h3 {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9eabba;
  margin-bottom: 10px;
}
.link-buttons { gap: 7px; }
.link-btn { background: #1b2330; border-color: #2b3747; color: #e2e9f4; padding: 9px 11px; font-size: 12px; }
.link-btn:hover { background: #232d3b; border-color: #4b6282; transform: translateY(-1px); }
.detail-actions { margin-top: 20px; padding-top: 17px; border-top: 1px solid #29313c; }
.product-update-meta { width: 100%; margin-top: 18px; border-color: #293441; background: #11161d; }
.product-update-icon { background: #1d2631; border-color: #303c4b; }
.detail-comments-card { margin-top: 20px; padding: 18px 20px 22px; }

/* Threaded comments */
.thread-section-head { align-items: center; margin-bottom: 14px; }
.new-thread-composer {
  grid-template-columns: 40px minmax(0,1fr) auto;
  border-color: #293340;
  background: #10151c;
  border-radius: 13px;
  padding: 10px;
}
.thread-list { margin-top: 18px; }
.thread-item { grid-template-columns: 44px minmax(0,1fr); gap: 11px; padding: 12px 0 4px; }
.thread-item + .thread-item { border-top-color: #202833; margin-top: 10px; padding-top: 18px; }
.thread-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(145deg,#ff537d,#746fff);
  box-shadow: 0 0 0 3px #121720;
}
.thread-line { background: linear-gradient(#344050,rgba(52,64,80,.12)); }
.thread-head strong { font-size: 12px; }
.thread-head span { color: #748195; }
.thread-body { color: #dbe1ea; font-size: 12px; line-height: 1.72; }
.thread-action { color: #8494aa; }
.thread-action:hover { background: #1b2330; }
.thread-children { border-left-color: #303947; }
.reply-composer { background: #0e1319; border-color: #293340; }
.rating-btn { background: #11171e; border-color: #2a3441; }
.comment-vote-btn.up.active { box-shadow: inset 0 0 0 1px rgba(74,222,128,.05); }
.comment-vote-btn.down.active { box-shadow: inset 0 0 0 1px rgba(255,71,120,.05); }

/* Smart tag input */
.smart-tag-editor, .filter-tag-editor {
  background: #0e131a;
  border-color: #28313e;
  border-radius: 11px;
}
.selected-tag, .filter-selected-tag {
  background: #202833;
  border-color: #334053;
  color: #d9e0ea;
}
.tag-suggestions {
  border-color: #303a48;
  background: rgba(19,24,32,.985);
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
}
.suggestion-item:hover { background: #202833; }

/* Modals */
.modal-backdrop { background: rgba(2,5,9,.72); backdrop-filter: blur(9px); }
.modal, .login-modal, .link-gate-modal {
  background: linear-gradient(180deg,#151a22,#10151b);
  border-color: #303a47;
  border-radius: 20px;
  box-shadow: 0 26px 85px rgba(0,0,0,.54);
}
.modal-header { padding: 20px 22px 15px; border-bottom-color: #29323f; }
.modal-header h2 { font-size: 21px; letter-spacing: -.02em; }
.asset-form { gap: 17px; }
.links-editor { border-top-color: #29323f; }
.thumb-preview { border-color: #334052; background: #0c1117; }

/* Login / account */
.guest-mode-card, .account-card { background: #121820; border-color: #283340; }
.login-lock { background: linear-gradient(145deg,#ff507c,#7b72ff); }
.guest-comment-lock { background: #11171e; border-color: #293440; }

/* Profile */
.profile-view { padding: 22px 26px 44px; }
.profile-content { max-width: 1480px; }
.profile-hero {
  min-height: 232px;
  border-color: #252e3a;
  border-radius: 20px 20px 0 0;
  background: #090c11;
}
.profile-cover-pattern {
  height: 108px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,71,120,.12), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(98,140,255,.11), transparent 30%),
    linear-gradient(135deg,#242a34,#171c24 60%,#11161d);
}
.profile-hero-inner { min-height: 232px; padding: 58px 34px 25px; }
.profile-avatar { border-color: #090c11; box-shadow: 0 14px 38px rgba(0,0,0,.42); }
.profile-head-copy h1 { font-size: 40px; letter-spacing: -.035em; }
.profile-handle { color: #9aa7b9; }
.profile-grid { border-color: #252e3a; background: #0d1117; border-radius: 0 0 20px 20px; }
.profile-sidebar-card { background: #0d1117; border-right-color: #252e3a; }
.profile-side-heading { background: #141a22; color: #9faabc; border-radius: 8px; }
.profile-side-link { border-radius: 8px; }
.profile-side-link:hover, .profile-side-link.active { background: #171e27; }
.profile-main-panel { background: #0e1218; }
.profile-stat-grid { gap: 12px; }
.profile-stat-card {
  min-height: 110px;
  border-radius: 13px;
  background: linear-gradient(180deg,rgba(255,255,255,.018),transparent),#11161d;
  border-color: #202833;
}
.profile-stat-card strong { font-size: 30px; color: #e2eaf4; }
.profile-section-title { border-bottom-color: #27303c; }
.profile-activity { border-bottom-color: #1f2731; border-radius: 8px; }
.profile-activity:hover { background: #141a22; }
.activity-icon { background: #18212c; }

/* Sessions */
.session-privacy-note { background: #10161d; border-color: #293440; }
.session-card { background: #141a21; border-color: #28323e; border-radius: 11px; }
.session-card.current { background: #171e25; border-color: #3b4a5b; }

/* Product editor structure */
.form-grid { gap: 15px; }
.asset-form label, .thumb-preview-wrap, .tag-editor-field > span { color: #cbd3de; }
.field-title { color: #e6ebf2; }
.status.ok { color: #6fe0a5; }
.status.err { color: #ff7d96; }

/* Focus-visible keyboard polish */
button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid rgba(98,140,255,.9);
  outline-offset: 2px;
}

@media (max-width: 1360px) {
  .app-shell { grid-template-columns: 232px minmax(0,1fr); }
  .asset-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); }
  .detail-layout { grid-template-columns: minmax(0,1.1fr) minmax(350px,.9fr); }
}
@media (max-width: 1040px) {
  .detail-side-card { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-hero.large { max-height: none; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .topbar { padding: 10px 14px; }
  .content-head, .asset-grid, .detail-view, .profile-view { padding-left: 16px; padding-right: 16px; }
  .asset-grid { grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 13px; }
}

/* =========================================================
   v0.3.1 — Premium Obsidian / Champagne UI
   Luxury pass: visual-only, no functional changes.
   ========================================================= */
:root {
  --bg: #08090b;
  --panel: #0d0f12;
  --panel-2: #111419;
  --panel-3: #171b21;
  --border: #272b31;
  --text: #f3efe8;
  --muted: #8f8c87;
  --accent: #d4b06a;
  --accent-2: #ead29a;
  --blue: #768bb8;
  --success: #6fba90;
  --warning: #d2a654;
  --shadow: 0 24px 70px rgba(0,0,0,.48);
  --lux-gold: #d6b36a;
  --lux-gold-light: #f1ddaa;
  --lux-gold-deep: #8d6c35;
  --lux-ivory: #f4efe5;
  --lux-line: rgba(214,179,106,.22);
}

html, body {
  background: #08090b;
  color: var(--lux-ivory);
  font-family: "Segoe UI Variable", Inter, "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 72% -8%, rgba(214,179,106,.075), transparent 66%),
    radial-gradient(640px 360px at 18% 105%, rgba(92,74,47,.075), transparent 72%),
    linear-gradient(180deg, #090a0c 0%, #08090b 100%);
}

.app-shell {
  background:
    radial-gradient(900px 500px at 78% -12%, rgba(214,179,106,.055), transparent 64%),
    #08090b;
}

/* Sidebar / brand */
.sidebar {
  background: linear-gradient(180deg, #0c0e11 0%, #090b0e 100%);
  border-right: 1px solid rgba(214,179,106,.13);
  box-shadow: 18px 0 42px rgba(0,0,0,.18);
}
.brand {
  border-bottom: 1px solid rgba(214,179,106,.15);
}
.brand-mark {
  background: linear-gradient(145deg, #f2d89d 0%, #d4aa5c 46%, #8d6b35 100%);
  color: #17130d;
  box-shadow:
    0 12px 30px rgba(155,118,54,.24),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(64,45,17,.25);
}
.brand-name {
  color: #f5efe4;
  letter-spacing: .01em;
  font-weight: 760;
}
.brand-sub { color: #827b6e; }
.side-title { color: #9c917f; }
.side-note { color: #706c65; }
.filter-btn { color: #aaa49a; }
.filter-btn:hover {
  background: linear-gradient(90deg, rgba(214,179,106,.075), rgba(214,179,106,.018));
  color: #eee8de;
}
.filter-btn.active {
  background: linear-gradient(90deg, rgba(214,179,106,.16), rgba(214,179,106,.035));
  border-color: rgba(214,179,106,.27);
  color: #fff8ea;
  box-shadow: inset 3px 0 0 #d6b36a, 0 7px 22px rgba(0,0,0,.13);
}
.filter-btn.active .count-pill { color: #e4c98d; }
.count-pill { color: #746f66; }

/* Top bar */
.topbar {
  background: rgba(8,10,13,.88);
  border-bottom: 1px solid rgba(214,179,106,.13);
  backdrop-filter: blur(24px) saturate(115%);
  box-shadow: 0 14px 40px rgba(0,0,0,.20);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,200,137,.34), transparent);
  pointer-events: none;
}
.search,
.select,
.asset-form input,
.asset-form textarea,
.profile-edit-form input,
.profile-edit-form textarea,
.login-form input,
.user-create-grid input,
.comment-form input,
.new-thread-composer input,
.reply-composer input,
.smart-tag-editor,
.filter-tag-editor {
  background: rgba(15,18,22,.88) !important;
  border-color: #2c2d2d !important;
  color: #f1ece3;
}
.search {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018), inset 0 -14px 28px rgba(0,0,0,.08);
}
.search::placeholder,
input::placeholder,
textarea::placeholder { color: #6f6b64; }
.search-icon { color: #a58e61; }
.search:focus, input:focus, select:focus, textarea:focus,
.smart-tag-editor:focus-within,
.filter-tag-editor:focus-within {
  border-color: rgba(214,179,106,.60) !important;
  box-shadow: 0 0 0 3px rgba(214,179,106,.075), 0 10px 28px rgba(0,0,0,.18) !important;
}
.account-badge {
  background: rgba(19,21,25,.90);
  border-color: rgba(214,179,106,.18);
}

/* Typography */
.content-head h1,
.detail-title,
.profile-head-copy h1,
.login-brand h1 {
  color: #f5f0e7;
  text-shadow: 0 1px 0 rgba(255,255,255,.035);
}
.detail-title,
.profile-head-copy h1 {
  font-family: ui-serif, "Yu Mincho", "Noto Serif JP", Georgia, serif;
  font-weight: 600;
}
.eyebrow {
  color: #cdb071;
  letter-spacing: .22em;
}
.muted { color: #8c8880; }

/* Premium buttons */
.primary-btn {
  color: #19150e;
  background: linear-gradient(135deg, #f0daa4 0%, #d7b36c 48%, #b98d46 100%);
  border: 1px solid rgba(246,224,174,.58);
  box-shadow:
    0 9px 26px rgba(141,108,53,.19),
    inset 0 1px 0 rgba(255,255,255,.56),
    inset 0 -1px 0 rgba(73,49,17,.18);
  text-shadow: 0 1px rgba(255,255,255,.28);
}
.primary-btn:hover {
  filter: brightness(1.05) saturate(1.04);
  box-shadow: 0 14px 34px rgba(171,132,62,.25), inset 0 1px 0 rgba(255,255,255,.65);
}
.secondary-btn {
  color: #f0eadf;
  background: linear-gradient(135deg, #283243, #1d2531);
  border: 1px solid #3a465a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.secondary-btn:hover { border-color: #657793; }
.ghost-btn,
.icon-btn {
  background: linear-gradient(180deg, #171a1f, #12151a);
  border-color: #2d3035;
  color: #c8c1b6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.ghost-btn:hover,
.icon-btn:hover {
  background: #1b1f25;
  border-color: rgba(214,179,106,.28);
  color: #f4ede1;
}

/* Asset cards */
.asset-grid { gap: 20px; }
.asset-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.023), rgba(255,255,255,.004)),
    linear-gradient(145deg,#12151a,#0e1115);
  border-color: #26292e;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.018);
}
.asset-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(246,224,174,.10), transparent 28%, transparent 70%, rgba(141,108,53,.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.asset-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,179,106,.34);
  box-shadow:
    0 24px 55px rgba(0,0,0,.38),
    0 0 0 1px rgba(214,179,106,.055),
    0 12px 38px rgba(145,111,51,.075);
}
.card-image { background: #090b0e; }
.card-image::after {
  height: 34%;
  background: linear-gradient(transparent, rgba(4,5,7,.34));
}
.placeholder {
  background:
    radial-gradient(circle at 32% 18%, rgba(214,179,106,.085), transparent 25%),
    linear-gradient(145deg,#1a1d22,#0d1014 68%);
  color: #bdb5a8;
}
.card-body { padding: 14px 15px 16px; }
.card-title { color: #f2ede4; font-weight: 680; }
.card-shop { color: #807b73; }
.chip {
  background: #191d22;
  border-color: #2b3036;
  color: #b9b2a7;
}
.tag-chip {
  background: rgba(160,131,76,.09);
  border-color: rgba(214,179,106,.18);
  color: #cfbc93;
}
.category-badge {
  filter: saturate(.78) brightness(.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

/* Detail */
.detail-main-card,
.detail-side-card,
.detail-comments-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 40%),
    linear-gradient(145deg,#12151a,#0e1115);
  border-color: #272a30;
  box-shadow: 0 18px 48px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.018);
}
.detail-main-card:hover,
.detail-side-card:hover { border-color: rgba(214,179,106,.18); }
.detail-hero.large {
  background: #090b0e;
  border-color: #2b2e33;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.detail-shop { color: #9e9689; }
.detail-section { border-top-color: rgba(214,179,106,.13); }
.detail-section h3 { color: #a89d8b; }
.link-btn {
  background: linear-gradient(180deg,#191d23,#14181e);
  border-color: #30343a;
  color: #ddd6ca;
}
.link-btn:hover {
  background: linear-gradient(180deg,#211f1a,#191713);
  border-color: rgba(214,179,106,.45);
  color: #f4e8cd;
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
}
.detail-actions { border-top-color: rgba(214,179,106,.13); }
.product-update-meta,
.session-privacy-note {
  background: rgba(15,18,22,.88);
  border-color: #2b2f35;
}
.product-update-icon { background: #1b1d1f; border-color: rgba(214,179,106,.22); color: #d5bd87; }

/* Thread / forum */
.new-thread-composer,
.reply-composer {
  background: rgba(13,16,20,.90);
  border-color: #292d33;
}
.thread-item + .thread-item { border-top-color: rgba(214,179,106,.10); }
.thread-avatar {
  background: linear-gradient(145deg,#d8b469,#765f39);
  color: #14110c;
  box-shadow: 0 0 0 3px #111419, 0 8px 18px rgba(0,0,0,.26);
}
.composer-avatar {
  background: linear-gradient(145deg,#cfb16f,#8b7348);
  color: #15120d;
}
.thread-line { background: linear-gradient(rgba(214,179,106,.30), rgba(214,179,106,.045)); }
.thread-head strong { color: #eee8dd; }
.thread-head span { color: #7f7a72; }
.thread-body { color: #d3cdc3; }
.thread-action { color: #9a917f; }
.thread-action:hover { background: rgba(214,179,106,.065); color: #ecd9ae; }
.thread-children { border-left-color: rgba(214,179,106,.21); }
.rating-btn { background: #111419; border-color: #2b2f34; }

/* Smart tags */
.selected-tag,
.filter-selected-tag {
  background: #1a1d21;
  border-color: rgba(214,179,106,.23);
  color: #d9c9a9;
}
.tag-suggestions {
  background: rgba(13,16,20,.985);
  border-color: #323238;
  box-shadow: 0 28px 70px rgba(0,0,0,.56);
}
.suggestion-item:hover { background: rgba(214,179,106,.075); }
.usage-count { color: #877d6c; }

/* Profile */
.profile-hero {
  background: #080a0d;
  border-color: #292c31;
  box-shadow: 0 24px 64px rgba(0,0,0,.32);
}
.profile-cover-pattern {
  background:
    radial-gradient(circle at 22% 22%, rgba(225,193,126,.11), transparent 28%),
    radial-gradient(circle at 79% 26%, rgba(134,104,54,.08), transparent 31%),
    linear-gradient(135deg,#24231f,#161719 58%,#0d0f12);
}
.profile-cover-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 46%, rgba(255,255,255,.018) 46.5% 47%, transparent 47.5%),
    linear-gradient(60deg, transparent 0 57%, rgba(214,179,106,.022) 57.5% 58%, transparent 58.5%);
  background-size: 180px 180px, 220px 220px;
  pointer-events: none;
}
.profile-avatar {
  border-color: #0a0b0d;
  box-shadow: 0 18px 46px rgba(0,0,0,.46), 0 0 0 1px rgba(214,179,106,.15);
}
.profile-grid { background: #0b0d10; border-color: #292c31; }
.profile-sidebar-card { background: #0b0d10; border-right-color: rgba(214,179,106,.13); }
.profile-side-heading { background: #121418; color: #a69b88; }
.profile-side-link:hover,
.profile-side-link.active {
  background: linear-gradient(90deg,rgba(214,179,106,.10),rgba(214,179,106,.025));
  color: #eee5d5;
}
.profile-main-panel { background: #0d0f12; }
.profile-stat-card {
  background: linear-gradient(145deg,#121418,#0e1013);
  border-color: #25292e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.profile-stat-card strong { color: #eadfc9; font-family: ui-serif, Georgia, serif; }
.profile-section-title { border-bottom-color: rgba(214,179,106,.15); }
.profile-activity { border-bottom-color: #202328; }
.profile-activity:hover { background: rgba(214,179,106,.045); }
.activity-icon { background: #191b1e; color: #c9ac70; }

/* Sessions */
.session-card {
  background: linear-gradient(145deg,#14171b,#101216);
  border-color: #292d32;
}
.session-card.current {
  background: linear-gradient(145deg,rgba(103,89,57,.18),#121518);
  border-color: rgba(214,179,106,.34);
}

/* Modals / login */
.modal-backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(13px) saturate(85%);
}
.modal,
.login-modal,
.link-gate-modal {
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 22%),
    linear-gradient(145deg,#14171b,#0d1013);
  border: 1px solid rgba(214,179,106,.20);
  box-shadow: 0 36px 110px rgba(0,0,0,.68), 0 0 0 1px rgba(255,255,255,.012);
}
.modal-header { border-bottom-color: rgba(214,179,106,.14); }
.modal-header h2 { color: #f1ebdf; }
.links-editor { border-top-color: rgba(214,179,106,.13); }
.thumb-preview { background: #0a0c0f; border-color: #353332; }
.login-lock {
  background: linear-gradient(145deg,#f0d99f,#b18a48);
  color: #17120b;
  box-shadow: 0 12px 35px rgba(155,118,54,.24);
}
.guest-mode-card,
.account-card,
.guest-comment-lock {
  background: #101317;
  border-color: #292d32;
}

/* Scrollbar: restrained metallic look */
* {
  scrollbar-width: thin;
  scrollbar-color: #3f3930 #0b0d10;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0b0d10; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(#4c4334,#302d28);
  border: 2px solid #0b0d10;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(#6e5d3e,#42392e); }

/* Fine separators */
.content-head,
.detail-page-top { position: relative; }
.content-head::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214,179,106,.25), rgba(214,179,106,.045) 38%, transparent 88%);
}

@media (max-width: 820px) {
  .content-head::after { left: 16px; right: 16px; }
}


/* =========================================================
   v0.3.2 DOPAMINE / NEO-POP GLASS THEME
   Bright, tactile, playful — while retaining dark readability.
   ========================================================= */
:root {
  --bg: #080a12;
  --panel: #0f1320;
  --panel-2: rgba(19,24,39,.78);
  --panel-3: rgba(31,38,58,.86);
  --border: rgba(155,174,255,.16);
  --text: #f7f8ff;
  --muted: #929ab4;
  --accent: #ff4fd8;
  --accent-2: #a970ff;
  --blue: #4f8dff;
  --success: #34e6a1;
  --warning: #ffd84d;
  --cyan: #38ddff;
  --lime: #b9ff57;
  --orange: #ff9a45;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
}

html, body {
  background:
    radial-gradient(circle at 12% 12%, rgba(255,79,216,.08), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(56,221,255,.08), transparent 24%),
    #080a12;
}

body { color: #f8f9ff; }

.app-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,79,216,.16), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(73,137,255,.15), transparent 25%),
    radial-gradient(circle at 60% 82%, rgba(52,230,161,.07), transparent 25%),
    linear-gradient(135deg,#080a11,#0b0e18 46%,#080a12);
}
.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: .58;
  border-radius: 999px;
}
.app-shell::before {
  width: 420px; height: 420px;
  left: 22%; top: -160px;
  background: linear-gradient(135deg,#ff3fc7,#8f62ff 52%,#36d9ff);
  animation: dopamineFloatA 13s ease-in-out infinite alternate;
}
.app-shell::after {
  width: 360px; height: 360px;
  right: -90px; bottom: -150px;
  background: linear-gradient(135deg,#34e6a1,#3dd6ff 46%,#7a6dff);
  animation: dopamineFloatB 16s ease-in-out infinite alternate;
}
@keyframes dopamineFloatA { to { transform: translate(65px,40px) scale(1.08) rotate(8deg); } }
@keyframes dopamineFloatB { to { transform: translate(-55px,-55px) scale(.92) rotate(-10deg); } }

/* Sidebar / chrome */
.sidebar {
  background: linear-gradient(180deg,rgba(9,12,20,.94),rgba(10,13,23,.88));
  border-right: 1px solid rgba(154,169,255,.14);
  box-shadow: 18px 0 55px rgba(0,0,0,.18);
  backdrop-filter: blur(24px) saturate(125%);
}
.brand { border-bottom-color: rgba(154,169,255,.11); }
.brand-mark {
  border-radius: 14px;
  background: linear-gradient(135deg,#ff4dc7 0%,#8c68ff 48%,#38dcff 100%);
  box-shadow: 0 10px 30px rgba(255,79,216,.22), 0 0 30px rgba(56,221,255,.12);
  transform: rotate(-3deg);
}
.brand-name { letter-spacing: .01em; }
.brand-sub { color: #7f88a6; }
.side-title { color: #aab4d5; letter-spacing: .13em; }
.filter-btn {
  border-radius: 13px;
  padding: 11px 12px;
  color: #b8c0d9;
}
.filter-btn:hover {
  background: linear-gradient(90deg,rgba(119,93,255,.11),rgba(255,79,216,.06));
  color: #fff;
}
.filter-btn.active {
  color: #fff;
  background: linear-gradient(100deg,rgba(255,79,216,.18),rgba(108,97,255,.18),rgba(56,221,255,.11));
  border-color: rgba(255,109,221,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 26px rgba(119,71,255,.10);
}
.count-pill { color: #7f89aa; }

/* Topbar / search */
.topbar {
  min-height: 78px;
  background: rgba(8,11,18,.70);
  border-bottom-color: rgba(159,174,255,.12);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.search {
  background: rgba(20,25,40,.72);
  border-color: rgba(135,153,219,.18);
  border-radius: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.search:hover { border-color: rgba(132,157,255,.30); }
.search:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(95,204,255,.70) !important;
  box-shadow: 0 0 0 3px rgba(65,169,255,.12), 0 0 34px rgba(166,89,255,.08) !important;
}
.search-icon { color: #7c8dbb; }

/* Typography */
.content-head h1,
.detail-title,
.profile-head-copy h1,
.login-brand h1 {
  font-family: Inter, "Segoe UI", "Noto Sans JP", sans-serif !important;
  color: #fbfbff;
  text-shadow: none;
  letter-spacing: -.025em;
}
.detail-title { font-weight: 840; }
.eyebrow {
  color: #d59bff;
  letter-spacing: .20em;
  text-shadow: 0 0 18px rgba(204,108,255,.18);
}
.muted { color: #8892ad; }

/* Buttons: candy gradients with tactile depth */
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg,#ff4ecb 0%,#9b5dff 52%,#4c9dff 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 10px 28px rgba(145,79,255,.22),
    0 4px 15px rgba(255,79,216,.12),
    inset 0 1px 0 rgba(255,255,255,.22);
  text-shadow: 0 1px 1px rgba(25,13,65,.34);
}
.primary-btn:hover {
  transform: translateY(-2px) scale(1.015);
  filter: saturate(1.12) brightness(1.06);
  box-shadow: 0 16px 38px rgba(145,79,255,.30), 0 0 30px rgba(255,79,216,.13), inset 0 1px 0 rgba(255,255,255,.27);
}
.primary-btn:active { transform: translateY(0) scale(.985); }
.secondary-btn {
  color: #eef7ff;
  background: linear-gradient(135deg,rgba(62,143,255,.92),rgba(98,99,255,.92));
  border: 1px solid rgba(132,182,255,.24);
  box-shadow: 0 8px 24px rgba(64,108,255,.16), inset 0 1px 0 rgba(255,255,255,.12);
}
.secondary-btn:hover { filter: brightness(1.08) saturate(1.08); transform: translateY(-1px); }
.ghost-btn,
.icon-btn {
  color: #c7cee3;
  background: rgba(25,31,48,.74);
  border-color: rgba(135,150,202,.17);
  backdrop-filter: blur(12px);
}
.ghost-btn:hover,
.icon-btn:hover {
  color: #fff;
  background: linear-gradient(135deg,rgba(255,79,216,.10),rgba(81,146,255,.13));
  border-color: rgba(124,153,255,.30);
}

/* Asset cards */
.asset-grid { gap: 20px; }
.asset-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(25,31,49,.88),rgba(15,19,31,.84));
  border: 1px solid rgba(126,145,205,.16);
  box-shadow: 0 15px 42px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.028);
  backdrop-filter: blur(18px);
  transition: transform .23s cubic-bezier(.2,.8,.2,1), border-color .23s ease, box-shadow .23s ease;
}
.asset-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(130deg,rgba(255,79,216,.0),rgba(255,79,216,.13) 28%,rgba(86,190,255,.10) 72%,rgba(80,240,183,.0));
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}
.asset-card:hover {
  transform: translateY(-7px) scale(1.018);
  border-color: rgba(121,157,255,.34);
  box-shadow: 0 26px 62px rgba(0,0,0,.36), 0 0 42px rgba(104,94,255,.12), 0 0 24px rgba(255,79,216,.07);
}
.asset-card:hover::before { opacity: 1; }
.card-image { background: #0b0e17; }
.card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent,rgba(8,10,17,.72));
  pointer-events: none;
}
.placeholder {
  background:
    radial-gradient(circle at 25% 22%,rgba(255,79,216,.17),transparent 22%),
    radial-gradient(circle at 76% 18%,rgba(56,221,255,.16),transparent 24%),
    linear-gradient(145deg,#202842,#101522 72%);
  color: #dce3ff;
}
.card-body { padding: 15px 15px 17px; }
.card-title { color: #f7f8ff; font-weight: 780; }
.card-shop { color: #818ba7; }

/* Category candy */
.category-badge { border: 1px solid rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.055); }
.cat-hair { background: rgba(255,201,77,.16); color: #ffd362; }
.cat-makeup { background: rgba(255,77,177,.17); color: #ff85cb; }
.cat-avatar { background: rgba(169,103,255,.18); color: #c69bff; }
.cat-clothes { background: rgba(255,125,74,.18); color: #ff9a73; }
.cat-accessory { background: rgba(87,103,255,.19); color: #a3aaff; }
.cat-gimmick { background: rgba(56,202,255,.17); color: #75ddff; }
.chip {
  background: rgba(37,46,70,.84);
  border-color: rgba(128,149,210,.16);
  color: #cbd5ef;
}
.tag-chip,
.selected-tag,
.filter-selected-tag {
  background: linear-gradient(135deg,rgba(85,132,255,.15),rgba(176,86,255,.13));
  border-color: rgba(126,145,255,.24);
  color: #d3d7ff;
}

/* Detail / bento */
.detail-main-card,
.detail-side-card,
.detail-comments-card {
  background: linear-gradient(180deg,rgba(24,30,47,.84),rgba(14,18,30,.84));
  border-color: rgba(135,151,211,.16);
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.028);
  backdrop-filter: blur(20px) saturate(120%);
}
.detail-main-card:hover,
.detail-side-card:hover { border-color: rgba(128,154,255,.27); }
.detail-hero.large {
  background: #0b0e17;
  border-color: rgba(136,156,219,.16);
  border-radius: 18px;
}
.detail-section { border-top-color: rgba(134,150,205,.12); }
.detail-section h3 { color: #adb7d4; }
.link-btn {
  background: rgba(30,38,58,.86);
  border-color: rgba(126,147,205,.18);
  color: #dfe7ff;
  border-radius: 11px;
}
.link-btn:hover {
  color: #fff;
  border-color: rgba(120,173,255,.42);
  background: linear-gradient(135deg,rgba(68,132,255,.20),rgba(175,84,255,.18));
  box-shadow: 0 9px 26px rgba(75,92,255,.10);
}
.product-update-meta,
.session-privacy-note {
  background: rgba(18,23,37,.72);
  border-color: rgba(127,145,202,.14);
}
.product-update-icon {
  background: linear-gradient(135deg,rgba(79,141,255,.18),rgba(181,84,255,.15));
  border-color: rgba(120,154,255,.22);
  color: #b7c9ff;
}

/* Thread: playful but legible */
.new-thread-composer,
.reply-composer {
  background: rgba(15,19,31,.72);
  border-color: rgba(128,146,205,.14);
  border-radius: 16px;
}
.thread-avatar {
  background: linear-gradient(145deg,#ff4fc6,#9468ff 52%,#4db9ff);
  color: #fff;
  box-shadow: 0 0 0 3px #111521, 0 8px 22px rgba(128,83,255,.18);
}
.composer-avatar { background: linear-gradient(145deg,#48b9ff,#7568ff); }
.thread-line { background: linear-gradient(rgba(132,113,255,.38),rgba(62,192,255,.08)); }
.thread-head strong { color: #f3f5ff; }
.thread-head span { color: #7d88a8; }
.thread-body { color: #d4d9ea; }
.thread-action { color: #91a1c8; }
.thread-action:hover { background: rgba(104,113,255,.10); color: #dce8ff; }
.thread-children { border-left-color: rgba(118,116,255,.22); }
.rating-btn { background: rgba(20,25,40,.78); border-color: rgba(126,145,205,.16); }

/* Smart tags */
.tag-suggestions {
  background: rgba(15,19,31,.96);
  border-color: rgba(140,157,221,.22);
  box-shadow: 0 28px 80px rgba(0,0,0,.54), 0 0 40px rgba(121,84,255,.08);
  backdrop-filter: blur(28px);
}
.suggestion-item:hover {
  background: linear-gradient(90deg,rgba(255,79,216,.09),rgba(66,156,255,.10));
}
.usage-count { color: #7e8ba9; }

/* Profile */
.profile-hero {
  border-radius: 24px;
  background: rgba(11,14,23,.80);
  border-color: rgba(135,153,213,.17);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.profile-cover-pattern {
  background:
    radial-gradient(circle at 20% 25%,rgba(255,74,205,.28),transparent 31%),
    radial-gradient(circle at 78% 20%,rgba(66,195,255,.20),transparent 33%),
    linear-gradient(135deg,#2a1c46,#161d3a 45%,#101625 75%);
}
.profile-cover-pattern::after {
  opacity: .72;
  background-image:
    linear-gradient(120deg,transparent 0 46%,rgba(255,255,255,.028) 46.5% 47%,transparent 47.5%),
    linear-gradient(60deg,transparent 0 57%,rgba(113,211,255,.035) 57.5% 58%,transparent 58.5%);
}
.profile-avatar {
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 0 0 1px rgba(129,155,255,.18), 0 0 34px rgba(255,79,216,.10);
}
.profile-grid,
.profile-sidebar-card,
.profile-main-panel {
  background: rgba(11,14,23,.78);
  border-color: rgba(137,154,211,.14);
}
.profile-side-heading { background: rgba(27,34,53,.72); color: #aab5d7; }
.profile-side-link:hover,
.profile-side-link.active {
  background: linear-gradient(90deg,rgba(255,79,216,.10),rgba(76,145,255,.10));
  color: #fff;
}
.profile-stat-card {
  background: linear-gradient(145deg,rgba(29,36,57,.86),rgba(15,19,31,.86));
  border-color: rgba(130,149,208,.15);
  border-radius: 17px;
}
.profile-stat-card strong {
  color: #f8f9ff;
  font-family: Inter,"Segoe UI",sans-serif;
  text-shadow: 0 0 22px rgba(99,145,255,.10);
}
.activity-icon {
  background: linear-gradient(135deg,rgba(255,79,216,.14),rgba(75,150,255,.16));
  color: #c2caff;
}

/* Login / modal */
.modal-backdrop {
  background: rgba(5,7,13,.72);
  backdrop-filter: blur(18px) saturate(135%);
}
.modal,
.login-modal,
.link-gate-modal {
  background: linear-gradient(180deg,rgba(29,35,55,.94),rgba(12,16,27,.96));
  border: 1px solid rgba(138,159,228,.20);
  box-shadow: 0 38px 120px rgba(0,0,0,.62), 0 0 55px rgba(105,82,255,.09);
  border-radius: 22px;
}
.modal-header { border-bottom-color: rgba(135,151,211,.13); }
.login-lock {
  background: linear-gradient(145deg,#ff50c8,#8f6aff 52%,#46baff);
  color: #fff;
  box-shadow: 0 12px 36px rgba(132,84,255,.26), 0 0 28px rgba(255,79,216,.14);
}
.guest-mode-card,
.account-card,
.guest-comment-lock {
  background: rgba(18,23,37,.76);
  border-color: rgba(129,148,204,.14);
}

/* Session cards */
.session-card {
  background: linear-gradient(145deg,rgba(28,35,54,.84),rgba(14,18,29,.84));
  border-color: rgba(129,148,206,.15);
  border-radius: 16px;
}
.session-card.current {
  background: linear-gradient(145deg,rgba(54,78,126,.24),rgba(39,33,76,.24));
  border-color: rgba(98,198,255,.34);
  box-shadow: 0 0 30px rgba(69,160,255,.07);
}

/* Scrollbar */
* { scrollbar-color: #4a4c78 #0b0e17; }
*::-webkit-scrollbar-track { background: #0b0e17; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(#7059c8,#3f4f78);
  border: 2px solid #0b0e17;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(#996eea,#496faa); }

/* separators */
.content-head::after {
  background: linear-gradient(90deg,rgba(255,79,216,.28),rgba(105,105,255,.19) 42%,rgba(56,221,255,.09) 72%,transparent 96%);
}

/* Motion polish */
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.link-btn,
.filter-btn,
.profile-stat-card,
.session-card {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
}
.profile-stat-card:hover,
.session-card:hover { transform: translateY(-2px); border-color: rgba(125,153,255,.26); }

@media (prefers-reduced-motion: reduce) {
  .app-shell::before,
  .app-shell::after { animation: none !important; }
  .asset-card,
  .primary-btn,
  .secondary-btn,
  .profile-stat-card,
  .session-card { transition-duration: .01ms !important; }
}

/* v1.1.0 multilingual UI */
.language-select {
  min-width: 128px;
  padding-right: 34px;
  font-weight: 750;
  letter-spacing: .01em;
}
@media (max-width: 900px) {
  .top-actions { flex-wrap: wrap; }
  .language-select { min-width: 112px; }
}


/* v1.1.3 grouped category navigation */
.category-group { margin-top: 14px; display: grid; gap: 4px; }
.category-group-title {
  padding: 0 10px 4px;
  color: rgba(205,214,242,.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  user-select: none;
}
.category-group .filter-btn { padding-left: 12px; }
.category-group + .category-group { margin-top: 12px; }
.category-group .count-pill { opacity: .78; }

/* v1.1.4 compact accordion category navigation */
@media (min-width: 1101px) {
  .app-shell { grid-template-columns: 282px minmax(0, 1fr); }
}

.sidebar {
  padding: 18px 16px;
}

#categoryFilters.filter-list {
  gap: 8px;
}

.category-all {
  min-height: 44px;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 800;
}

.category-groups-wrap {
  display: grid;
  gap: 7px;
}

.category-group {
  margin: 0 !important;
  display: block;
  border: 1px solid rgba(145,157,215,.10);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(15,19,31,.34);
}

.category-group.open {
  border-color: rgba(145,157,215,.17);
  background: rgba(15,19,31,.52);
}

.category-group-toggle {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #c6cee7;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.category-group-toggle:hover {
  background: linear-gradient(90deg,rgba(119,93,255,.09),rgba(255,79,216,.045));
  color: #fff;
}

.category-group-toggle.has-active {
  color: #fff;
  background: linear-gradient(90deg,rgba(255,79,216,.10),rgba(108,97,255,.09),transparent);
}

.category-group-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-group-chevron {
  width: 14px;
  flex: 0 0 14px;
  color: #8f9abf;
  font-size: 12px;
  text-align: center;
}

.category-group-title {
  padding: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.2;
  font-weight: 850 !important;
  letter-spacing: .035em !important;
  text-transform: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-group-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(132,148,211,.12);
  background: rgba(255,255,255,.035);
  color: #8791b2;
  font-size: 10px;
  font-weight: 800;
}

.category-group-items {
  display: grid;
  gap: 2px;
  padding: 4px 5px 6px 12px;
  border-top: 1px solid rgba(140,153,211,.08);
  position: relative;
}

.category-group-items::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 9px;
  width: 1px;
  background: linear-gradient(180deg,rgba(164,115,255,.34),rgba(66,214,255,.10));
}

.category-group-items.hidden {
  display: none !important;
}

.category-group .filter-btn.category-item {
  min-height: 36px;
  padding: 7px 9px 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.25;
}

.filter-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item-icon {
  width: 15px;
  flex: 0 0 15px;
  display: inline-grid;
  place-items: center;
  color: #aeb8d6;
  font-size: 11px;
}

.category-group .filter-btn.is-empty:not(.active) {
  opacity: .54;
}

.category-group .filter-btn.is-empty:not(.active):hover {
  opacity: .88;
}

.category-group .filter-btn.active {
  opacity: 1;
}

.category-group .filter-btn.active .category-item-icon {
  color: #fff;
}

.category-group .count-pill {
  min-width: 20px;
  text-align: right;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .category-group-title { font-size: 11px !important; }
  .category-group .filter-btn.category-item { font-size: 11px; }
}


/* v1.1.5 hard accordion fallback */
.category-group-items.hidden { display:none !important; }
.category-group:not(.open) > .category-group-items { display:none !important; }
.category-group.open > .category-group-items { display:grid !important; }
.category-group-toggle { user-select:none; }


/* v1.1.6: always show every compatible avatar */
.avatar-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.avatar-chips .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.detail-side-card .avatar-chips {
  row-gap: 8px;
}


/* v1.1.7 avatar hardfix: never collapse compatible avatar chips */
.avatar-chips {
  display:flex !important;
  flex-wrap:wrap !important;
  overflow:visible !important;
  max-height:none !important;
  height:auto !important;
}
.avatar-chips .chip {
  display:inline-flex !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

/* v1.3.0 Avatar Showcase */
.hub-view-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 2px}
.hub-view-btn{border:1px solid rgba(132,148,211,.14);background:rgba(255,255,255,.025);color:#9fa9c7;border-radius:12px;padding:10px 8px;font:inherit;font-size:12px;font-weight:850;cursor:pointer;transition:.18s ease}
.hub-view-btn:hover{color:#fff;border-color:rgba(180,122,255,.38);background:rgba(140,88,255,.08)}
.hub-view-btn.active{color:#fff;border-color:rgba(255,91,207,.40);background:linear-gradient(135deg,rgba(255,75,199,.16),rgba(91,113,255,.13));box-shadow:0 8px 24px rgba(84,61,255,.10)}
.showcase-view{padding:28px 22px 42px}
.showcase-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.showcase-head h1{margin:5px 0 4px;font-size:30px}
.showcase-search-panel{display:flex;gap:10px;align-items:flex-start;margin-bottom:22px}
.showcase-search-wrap{position:relative;flex:1;max-width:760px}
.showcase-search-wrap .search{padding-left:42px}
.showcase-suggestions{left:0;right:0;top:calc(100% + 6px);z-index:20}
.showcase-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.showcase-card{overflow:hidden;border:1px solid rgba(148,160,220,.13);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(17,20,31,.88));box-shadow:0 16px 38px rgba(0,0,0,.20);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.showcase-card:hover{transform:translateY(-4px);border-color:rgba(255,86,207,.32);box-shadow:0 22px 54px rgba(47,24,95,.26)}
.showcase-image-button{display:block;width:100%;aspect-ratio:4/5;border:0;padding:0;background:#0e1118;cursor:pointer;overflow:hidden}
.showcase-image-button img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .24s ease}
.showcase-card:hover .showcase-image-button img{transform:scale(1.025)}
.showcase-card-body{display:grid;gap:11px;padding:14px 14px 15px}
.showcase-avatar-name{font-size:16px;line-height:1.25;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.showcase-card-actions{display:flex;align-items:center;gap:8px}
.showcase-link-btn{flex:1;border:1px solid rgba(98,164,255,.18);border-radius:10px;background:linear-gradient(135deg,rgba(88,102,255,.13),rgba(42,210,255,.08));color:#cddaff;padding:9px 10px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.showcase-link-btn:hover{border-color:rgba(104,196,255,.45);color:#fff}
.showcase-delete-btn{width:34px;height:34px;border:1px solid rgba(255,99,132,.18);border-radius:10px;background:rgba(255,66,107,.06);color:#ff829e;font-size:17px;cursor:pointer}
.showcase-delete-btn:hover{background:rgba(255,66,107,.14)}
.showcase-empty{grid-column:1/-1}
.showcase-guest-lock{grid-column:1/-1;min-height:360px;border:1px dashed rgba(147,159,216,.18);border-radius:22px;display:grid;place-items:center;align-content:center;gap:10px;text-align:center;background:radial-gradient(circle at 50% 10%,rgba(126,84,255,.12),transparent 42%),rgba(15,18,29,.55);padding:40px}
.showcase-guest-lock h2{margin:2px 0 0}.showcase-guest-lock p{margin:0 0 10px;color:var(--muted)}
.showcase-lock-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,71,185,.25),rgba(82,107,255,.24));border:1px solid rgba(255,255,255,.10);font-size:24px}
.showcase-modal{width:min(720px,94vw)}
.showcase-form{padding:20px 22px 22px;display:grid;gap:17px}
.showcase-form label{display:grid;gap:8px;color:#d9deea;font-size:12px;font-weight:750}
.showcase-form input[type="url"],.showcase-form input[type="text"],#showcaseAvatarInput{width:100%;background:#0f1319;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;outline:none;font:inherit}
.showcase-upload-field input[type="file"]{color:#b9c1d6;font-size:12px}
.showcase-image-preview{height:320px;border-radius:15px;border:1px dashed rgba(151,164,224,.24);background:linear-gradient(145deg,#171c27,#0e1118);display:grid;place-items:center;color:#7f89a5;overflow:hidden}
.showcase-image-preview img{width:100%;height:100%;object-fit:contain;background:#090c12}
.showcase-avatar-input-wrap{position:relative}
.showcase-avatar-input-wrap .tag-suggestions{left:0;right:0;top:calc(100% + 6px);z-index:90}
@media (max-width:900px){.showcase-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.showcase-head{align-items:flex-start;flex-direction:column}.showcase-search-panel{flex-direction:column}.showcase-search-wrap{max-width:none;width:100%}.showcase-image-preview{height:260px}}


/* v1.3.1: prominent main view switcher */
.hub-view-nav-main{
  display:flex;
  gap:10px;
  align-items:center;
  padding:14px 22px 0;
  background:transparent;
}
.hub-view-nav-main .hub-view-btn{
  min-width:150px;
  padding:11px 18px;
  border:1px solid rgba(145,157,217,.18);
  border-radius:12px;
  background:rgba(20,24,38,.82);
  color:#aeb7cf;
  font:inherit;
  font-weight:850;
  cursor:pointer;
  transition:.16s ease;
}
.hub-view-nav-main .hub-view-btn:hover{
  transform:translateY(-1px);
  color:#fff;
  border-color:rgba(108,174,255,.42);
}
.hub-view-nav-main .hub-view-btn.active{
  color:#fff;
  border-color:rgba(255,83,207,.45);
  background:linear-gradient(135deg,rgba(255,65,184,.22),rgba(82,103,255,.20));
  box-shadow:0 8px 24px rgba(85,54,255,.16);
}
@media (max-width:760px){
  .hub-view-nav-main{padding:10px 12px 0;gap:8px}
  .hub-view-nav-main .hub-view-btn{min-width:0;flex:1;padding:10px 10px}
}


/* v1.5.0 distinct main navigation + Asset Bump */
.hub-view-nav-main{
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:720px;
}
.hub-view-nav-main .hub-view-assets{
  border-color:rgba(69,185,255,.26);
  background:linear-gradient(135deg,rgba(46,145,255,.10),rgba(64,223,255,.045));
  color:#a9d8ff;
}
.hub-view-nav-main .hub-view-assets:hover,.hub-view-nav-main .hub-view-assets.active{
  border-color:rgba(82,201,255,.62);
  background:linear-gradient(135deg,rgba(47,142,255,.24),rgba(40,214,255,.14));
  color:#e8f7ff;
  box-shadow:0 10px 28px rgba(43,151,255,.14),inset 0 0 0 1px rgba(132,221,255,.05);
}
.hub-view-nav-main .hub-view-ripping{
  border-color:rgba(207,91,255,.26);
  background:linear-gradient(135deg,rgba(220,71,255,.10),rgba(123,92,255,.06));
  color:#e5b5ff;
}
.hub-view-nav-main .hub-view-ripping:hover,.hub-view-nav-main .hub-view-ripping.active{
  border-color:rgba(227,90,255,.62);
  background:linear-gradient(135deg,rgba(224,64,255,.24),rgba(119,85,255,.16));
  color:#fff0ff;
  box-shadow:0 10px 28px rgba(189,68,255,.15),inset 0 0 0 1px rgba(240,167,255,.05);
}
.hub-view-nav-main .hub-view-bump{
  border-color:rgba(255,176,69,.30);
  background:linear-gradient(135deg,rgba(255,168,51,.11),rgba(255,98,71,.055));
  color:#ffd49c;
}
.hub-view-nav-main .hub-view-bump:hover,.hub-view-nav-main .hub-view-bump.active{
  border-color:rgba(255,185,78,.68);
  background:linear-gradient(135deg,rgba(255,169,52,.25),rgba(255,106,72,.15));
  color:#fff4dc;
  box-shadow:0 10px 28px rgba(255,145,48,.16),inset 0 0 0 1px rgba(255,224,167,.06);
}
.bump-view{padding:28px 22px 42px}
.bump-head{max-width:1720px;margin:0 auto 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.bump-head h1{margin:5px 0 4px;font-size:30px;letter-spacing:-.035em}
.bump-eyebrow{color:#ffb45e}
.bump-search-panel{max-width:1720px;margin:0 auto 18px;display:flex;align-items:center;gap:10px}
.bump-search-wrap{position:relative;max-width:620px;flex:1}
.bump-search-wrap .search{width:100%;padding-left:44px}
.bump-grid{max-width:1720px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.bump-card{overflow:hidden;border:1px solid rgba(255,180,89,.18);border-radius:18px;background:linear-gradient(180deg,rgba(255,179,70,.045),rgba(17,20,31,.92));box-shadow:0 16px 38px rgba(0,0,0,.19);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,opacity .18s ease}
.bump-card:hover{transform:translateY(-4px);border-color:rgba(255,184,82,.42);box-shadow:0 22px 54px rgba(79,48,18,.26)}
.bump-card.resolved{border-color:rgba(80,214,154,.22);background:linear-gradient(180deg,rgba(64,200,140,.035),rgba(17,20,31,.90))}
.bump-image-wrap{position:relative;aspect-ratio:1/1;background:#0e1218;overflow:hidden}
.bump-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease,filter .18s ease}
.bump-card:hover .bump-image-wrap img{transform:scale(1.025)}
.bump-card.resolved .bump-image-wrap img{filter:saturate(.72) brightness(.9)}
.bump-status{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.03em;backdrop-filter:blur(12px);border:1px solid transparent}
.bump-status.is-open{color:#ffe3b6;background:rgba(96,54,15,.76);border-color:rgba(255,185,82,.36)}
.bump-status.is-resolved{color:#caffdf;background:rgba(17,75,51,.78);border-color:rgba(80,214,154,.35)}
.bump-card-body{display:grid;gap:10px;padding:14px 14px 15px}
.bump-product-name{font-size:15px;line-height:1.4;color:#f3f5f8;word-break:break-word}
.bump-meta{font-size:10px;color:#7f8b9c}
.bump-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bump-url-btn,.bump-resolve-btn,.bump-delete-btn{border:1px solid;border-radius:10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:.15s ease}
.bump-url-btn{flex:1;min-width:130px;padding:9px 10px;border-color:rgba(255,179,71,.25);background:linear-gradient(135deg,rgba(255,173,54,.15),rgba(255,94,73,.07));color:#ffd8a6}
.bump-url-btn:hover{border-color:rgba(255,190,90,.52);background:linear-gradient(135deg,rgba(255,173,54,.23),rgba(255,94,73,.11));transform:translateY(-1px)}
.bump-resolve-btn{padding:9px 10px;border-color:rgba(78,218,151,.24);background:rgba(52,186,127,.10);color:#aaf0ce}
.bump-resolve-btn:hover{border-color:rgba(78,218,151,.45);background:rgba(52,186,127,.16)}
.bump-resolve-btn.resolved{border-color:rgba(138,150,170,.20);background:rgba(138,150,170,.08);color:#aeb8c8}
.bump-delete-btn{width:34px;height:34px;border-color:rgba(255,83,113,.22);background:rgba(255,70,104,.07);color:#ff91a7}
.bump-delete-btn:hover{border-color:rgba(255,83,113,.45);background:rgba(255,70,104,.14)}
.bump-primary-btn{border:1px solid rgba(255,190,89,.38);border-radius:10px;background:linear-gradient(135deg,#ffb13b,#ff7655);color:#17110b;padding:11px 15px;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 9px 25px rgba(255,143,46,.19),inset 0 1px 0 rgba(255,255,255,.22);transition:.15s ease}
.bump-primary-btn:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 13px 31px rgba(255,143,46,.26)}
.bump-form{padding:20px 22px 22px;display:grid;gap:18px}
.bump-form label,.bump-upload-field{display:grid;gap:7px;color:#d9deea;font-size:12px;font-weight:700}
.bump-form input{width:100%;background:#0f1319;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;outline:none}
.bump-image-preview{height:320px;border-radius:15px;border:1px dashed rgba(255,184,85,.26);background:linear-gradient(145deg,#1d1a17,#0e1118);display:grid;place-items:center;color:#927d66;overflow:hidden}
.bump-image-preview img{width:100%;height:100%;object-fit:contain;background:#0b0e13}
.bump-empty{border-color:rgba(255,183,84,.20);color:#bba78f}
.bump-guest-lock{border-color:rgba(255,183,84,.18)}
@media (max-width:900px){.hub-view-nav-main{grid-template-columns:1fr;max-width:none}.bump-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.bump-head{align-items:flex-start;flex-direction:column}.bump-search-panel{flex-direction:column}.bump-search-wrap{max-width:none;width:100%}.bump-image-preview{height:260px}}

/* v1.5.1 Asset Bump URL image + comments */
.bump-comment-btn{padding:9px 10px;border:1px solid rgba(110,151,255,.28);border-radius:10px;background:rgba(83,117,224,.10);color:#c6d5ff;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.bump-comments-modal{width:min(860px,94vw)}.bump-comments-body{padding:18px 20px 22px;display:grid;gap:18px}.bump-comments-list{display:grid;gap:10px;max-height:52vh;overflow:auto}.bump-comment-item{border:1px solid rgba(255,185,82,.14);border-radius:14px;background:rgba(12,16,24,.72);padding:12px 13px;display:grid;gap:9px}.bump-comment-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.bump-comment-date{font-size:10px;color:#7f8b9c}.bump-comment-body{font-size:13px;line-height:1.65;color:#dce3ee;white-space:pre-wrap;word-break:break-word}.bump-comment-actions{display:flex;gap:8px;flex-wrap:wrap}.bump-download-link{border:1px solid rgba(255,180,73,.33);border-radius:9px;background:linear-gradient(135deg,rgba(255,178,62,.17),rgba(255,106,65,.08));color:#ffd49b;padding:8px 11px;font:inherit;font-size:11px;font-weight:900;cursor:pointer}.bump-comment-delete{border:1px solid rgba(255,84,112,.20);border-radius:9px;background:rgba(255,65,96,.07);color:#ff91a7;padding:8px 10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.bump-comment-form{border-top:1px solid rgba(255,255,255,.08);padding-top:16px;display:grid;gap:13px}.bump-comment-form label{display:grid;gap:7px;color:#d9deea;font-size:12px;font-weight:700}.bump-comment-form textarea,.bump-comment-form input{width:100%;background:#0f1319;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;outline:none;resize:vertical}.bump-no-comments{padding:18px 4px;text-align:center}


/* v1.5.3 Asset Bump detail view */
.hub-view-nav-main{grid-template-columns:repeat(3,minmax(0,1fr))}
.bump-card[data-bump-open]{cursor:pointer}
.bump-card[data-bump-open]:focus-visible{outline:2px solid rgba(255,184,82,.72);outline-offset:3px}
.bump-detail-view{padding:28px 22px 52px}
.bump-detail-content{max-width:1720px;margin:0 auto}
.bump-detail-toolbar{margin-bottom:16px}
.bump-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:22px;align-items:start}
.bump-detail-image-panel,.bump-detail-info-panel,.bump-detail-comments-panel{border:1px solid rgba(255,184,82,.20);border-radius:20px;background:linear-gradient(180deg,rgba(255,178,70,.045),rgba(16,20,31,.94));box-shadow:0 22px 58px rgba(0,0,0,.22)}
.bump-detail-image-panel{position:relative;overflow:hidden;padding:14px;min-height:520px;display:grid;place-items:center}
.bump-detail-image-panel img{width:100%;max-height:78vh;object-fit:contain;border-radius:14px;background:#0a0d13;display:block}
.bump-detail-status{left:28px;top:28px}
.bump-detail-info-panel{padding:24px}
.bump-detail-info-panel h1{margin:7px 0 8px;font-size:clamp(28px,3vw,46px);line-height:1.1;letter-spacing:-.035em;word-break:break-word}
.bump-detail-meta{color:#8d98a8;font-size:12px;margin-bottom:22px}
.bump-detail-actions{display:flex;flex-wrap:wrap;gap:10px;padding:18px 0;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}
.bump-detail-actions .bump-url-btn{flex:0 1 auto;min-width:180px}
.bump-delete-text-btn{border:1px solid rgba(255,84,112,.24);border-radius:10px;background:rgba(255,65,96,.07);color:#ff91a7;padding:9px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.bump-detail-comment-count{margin-top:18px;color:#d5dbea;font-size:13px;font-weight:800}
.bump-detail-comments-panel{margin-top:22px;padding:22px}
.bump-detail-comments-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.bump-detail-comments-head h2{margin:4px 0 0;font-size:24px}
.bump-detail-comments-head>span{color:#8e99aa;font-size:12px}
.bump-detail-comments-list{max-height:none;overflow:visible;gap:12px}
.bump-detail-comment-form{margin-top:18px}
.bump-detail-submit-row{display:flex;justify-content:flex-end}
.bump-detail-comments-panel .bump-comment-item{padding:15px 16px;background:rgba(10,14,22,.78)}
.bump-detail-comments-panel .bump-comment-body{font-size:14px}
@media(max-width:1050px){.bump-detail-layout{grid-template-columns:1fr}.bump-detail-image-panel{min-height:380px}.hub-view-nav-main{grid-template-columns:1fr}}

/* v1.5.4 Ripping Data comments + hidden download links */
.showcase-comment-count-btn{border:1px solid rgba(194,112,255,.24);border-radius:10px;background:linear-gradient(135deg,rgba(156,75,255,.13),rgba(255,73,196,.08));color:#e6d4ff;padding:9px 10px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.showcase-comment-count-btn:hover{border-color:rgba(214,142,255,.5);color:#fff}
.showcase-detail-modal{width:min(1040px,95vw);max-height:92vh;overflow:auto}
.showcase-detail-content{padding:20px 22px 24px;display:grid;gap:22px}
.showcase-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:22px;align-items:start}
.showcase-detail-image-wrap{border:1px solid rgba(148,160,220,.16);border-radius:18px;overflow:hidden;background:#090c12;min-height:320px;display:grid;place-items:center}
.showcase-detail-image{display:block;width:100%;max-height:68vh;object-fit:contain;background:#090c12}
.showcase-detail-info{padding:8px 4px;display:grid;gap:13px;align-content:start}
.showcase-detail-info h2{margin:0;font-size:32px;line-height:1.15}
.showcase-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
.showcase-download-link{border:1px solid rgba(91,174,255,.26);border-radius:10px;background:linear-gradient(135deg,rgba(77,102,255,.18),rgba(44,218,255,.1));color:#dce8ff;padding:9px 12px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.showcase-download-link:hover{border-color:rgba(98,200,255,.6);color:#fff;box-shadow:0 8px 24px rgba(59,128,255,.12)}
.showcase-main-download{font-size:14px;padding:11px 16px}
.showcase-comments-section{border-top:1px solid rgba(148,160,220,.14);padding-top:18px;display:grid;gap:14px}
.showcase-comments-head{display:flex;align-items:center;gap:10px}.showcase-comments-head h3{margin:0;font-size:16px}
.showcase-comments-list{display:grid;gap:10px}
.showcase-comment-item{background:rgba(11,14,22,.58);border:1px solid rgba(148,160,220,.13);border-radius:13px;padding:12px 13px;display:grid;gap:7px}
.showcase-comment-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.showcase-comment-date{margin-left:auto;color:var(--muted);font-size:11px}
.showcase-comment-body{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.showcase-comment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.showcase-comment-delete{border:0;background:transparent;color:#ff819c;font:inherit;font-size:11px;font-weight:800;cursor:pointer;padding:6px 4px}
.showcase-comment-form{display:grid;gap:12px;background:rgba(12,15,24,.48);border:1px solid rgba(148,160,220,.13);border-radius:14px;padding:14px}
.showcase-comment-form label{display:grid;gap:7px;color:#d9deea;font-size:12px;font-weight:750}
.showcase-comment-form textarea,.showcase-comment-form input[type="url"]{width:100%;background:#0d1118;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;outline:none;font:inherit;resize:vertical}
.showcase-comment-form-actions{display:flex;justify-content:flex-end}
@media(max-width:900px){.showcase-detail-grid{grid-template-columns:1fr}.showcase-detail-info h2{font-size:26px}.showcase-detail-image{max-height:56vh}}

/* v1.5.5 - ratings on Asset Bump / Ripping Data comments */
.bump-comment-actions .secondary-comment-feedback,
.showcase-comment-actions .secondary-comment-feedback {
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.bump-comment-actions .comment-vote-btn,
.showcase-comment-actions .comment-vote-btn {
  min-height:30px;
}


/* v1.5.6 - high-visibility red link buttons on asset detail */
.detail-side-card .link-buttons {
  gap: 10px;
}
.detail-side-card .link-btn {
  background: linear-gradient(135deg, #ff1744 0%, #d50032 52%, #a90027 100%) !important;
  border: 1px solid #ff5b78 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(255, 23, 68, .28), inset 0 1px 0 rgba(255,255,255,.16) !important;
}
.detail-side-card .link-btn:hover {
  background: linear-gradient(135deg, #ff315b 0%, #ef0039 56%, #c0002d 100%) !important;
  border-color: #ff8ca0 !important;
  box-shadow: 0 10px 30px rgba(255, 23, 68, .42), 0 0 0 3px rgba(255, 23, 68, .10) !important;
  transform: translateY(-1px);
}
.detail-side-card .link-btn:active {
  transform: translateY(0);
  filter: brightness(.94);
}

/* v1.6.0 - polished operations, moderation, pagination, mobile */
:root{
  --danger:#ff476f;
  --danger-2:#d91f48;
  --surface-glow:rgba(104,92,255,.10);
}

/* Shared presentation rules */
.asset-card,.showcase-card,.bump-card,.detail-main-card,.detail-side-card,.detail-comments-card,
.bump-detail-image-panel,.bump-detail-info-panel,.bump-detail-comments-panel,.showcase-detail-modal,
.comment,.thread-item,.showcase-comment-item,.bump-comment-item{
  border-color:rgba(151,164,211,.18);
}
.thread-action,.showcase-comment-delete,.bump-comment-delete,.bump-delete-text-btn{
  min-height:30px;
}
.danger-btn{
  border:1px solid rgba(255,71,111,.45);border-radius:10px;background:linear-gradient(135deg,rgba(255,71,111,.20),rgba(217,31,72,.13));
  color:#ffd7df;padding:9px 12px;font:inherit;font-size:12px;font-weight:850;cursor:pointer;
}
.danger-btn:hover{border-color:rgba(255,107,137,.8);background:linear-gradient(135deg,rgba(255,71,111,.30),rgba(217,31,72,.20));}
.secondary-report-btn{color:#ffb1c0!important}.secondary-report-btn.reported{color:#79d7a7!important}

/* Better empty states */
.empty-state{grid-column:1/-1;min-height:190px;border:1px dashed rgba(151,164,211,.24);border-radius:20px;background:linear-gradient(145deg,rgba(88,74,191,.04),rgba(14,19,31,.42));display:grid;place-items:center;align-content:center;gap:8px;padding:36px;text-align:center;color:#aab5c8}
.empty-state-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(118,105,255,.10);border:1px solid rgba(139,129,255,.18);color:#c8c2ff;font-size:24px}
.empty-state strong{font-size:16px;color:#e8ecf5}.empty-state span{max-width:520px;font-size:12px;line-height:1.6;color:#8f9bad}
.image-fallback{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center;align-content:center;gap:8px;background:radial-gradient(circle at 35% 22%,rgba(128,111,255,.10),transparent 30%),linear-gradient(145deg,#171c28,#0d1119);color:#9fa9ba;text-align:center;z-index:0}
.image-fallback span{font-size:30px;color:#c6c0ff}.image-fallback small{font-size:10px;letter-spacing:.08em}
.thumb-preview,.bump-image-preview,.showcase-image-preview,.bump-image-wrap,.showcase-image-button,.showcase-detail-image-wrap,.bump-detail-image-panel,.card-image,.detail-hero{position:relative}

/* Pagination */
.pagination{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 22px 34px}
.page-btn{min-width:38px;height:38px;border:1px solid rgba(139,153,199,.22);border-radius:11px;background:rgba(22,27,40,.74);color:#cbd3e3;font-weight:800;cursor:pointer}
.page-btn:hover:not(:disabled){border-color:rgba(119,105,255,.65);background:rgba(94,78,216,.15);color:#fff}.page-btn.active{border-color:rgba(141,113,255,.72);background:linear-gradient(135deg,rgba(135,83,255,.34),rgba(255,73,183,.20));color:#fff;box-shadow:0 8px 24px rgba(93,70,220,.14)}
.page-btn:disabled{opacity:.35;cursor:not-allowed}.page-gap{color:#697386;padding:0 2px}

/* Admin moderation */
.moderation-btn{border-color:rgba(255,128,85,.30)!important;color:#ffd1be!important;background:rgba(255,111,64,.07)!important}
.report-manager-modal{width:min(980px,95vw);max-height:90vh;overflow:auto}
.report-manager-body{padding:18px 22px 24px;display:grid;gap:15px}.report-manager-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.report-manager-head p{margin:0}
.admin-report-list{display:grid;gap:12px}.admin-report-card{border:1px solid rgba(255,115,91,.20);border-radius:16px;padding:14px 15px;background:linear-gradient(145deg,rgba(255,94,71,.045),rgba(13,17,26,.74));display:grid;gap:9px}
.admin-report-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.admin-report-top strong{font-size:14px}.report-type{border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.report-asset{background:rgba(62,174,255,.13);color:#9fd8ff}.report-showcase{background:rgba(197,79,255,.13);color:#e1a7ff}.report-bump{background:rgba(255,166,61,.14);color:#ffd19b}.report-count{margin-left:auto;color:#ff9aab;font-size:11px;font-weight:800}
.admin-report-meta{font-size:11px;color:#7e8a9c}.admin-report-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#e0e6f1;font-size:13px}.admin-report-reason{font-size:12px;color:#f0c2cb;background:rgba(255,75,105,.06);border-radius:10px;padding:9px 10px}.admin-report-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

/* Consistent red external/download links */
.showcase-download-link,.showcase-link-btn,.bump-download-link,.bump-url-btn{
  background:linear-gradient(135deg,#ff1744 0%,#d50032 55%,#a90027 100%)!important;border:1px solid #ff5b78!important;color:#fff!important;font-weight:900!important;box-shadow:0 8px 24px rgba(255,23,68,.22)!important;
}
.showcase-download-link:hover,.showcase-link-btn:hover,.bump-download-link:hover,.bump-url-btn:hover{border-color:#ff8ca0!important;filter:brightness(1.08);box-shadow:0 10px 30px rgba(255,23,68,.34)!important}

/* Mobile / tablet */
@media(max-width:900px){
  html,body{height:auto;min-height:100%;overflow:auto}
  body{overflow:auto}
  .app-shell{height:auto;min-height:100vh;display:block}
  .sidebar{position:relative;width:100%;border-right:0;border-bottom:1px solid var(--border);padding:12px;gap:13px}
  .brand{padding:4px 4px 12px}.side-section.grow{display:none}.sidebar .account-side-panel{margin-top:0}
  .main{overflow:visible;padding-bottom:28px}
  .topbar{position:sticky;top:0;min-height:auto;padding:10px 12px;flex-wrap:wrap;gap:8px}
  .topbar .search-wrap{flex:1 1 100%;order:2}.top-actions{width:100%;overflow-x:auto;padding-bottom:2px;gap:7px;order:1}.top-actions>*{flex:0 0 auto}
  .hub-view-nav{position:sticky;top:102px;z-index:4;margin:0;padding:10px 12px;background:rgba(11,14,22,.94);backdrop-filter:blur(16px);display:flex!important;overflow-x:auto;max-width:none!important}.hub-view-nav-main .hub-view-btn{min-width:145px;flex:0 0 auto!important}
  .content-head,.showcase-view,.bump-view,.detail-view,.bump-detail-view,.profile-view{padding-left:12px!important;padding-right:12px!important}
  .asset-grid{padding:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.showcase-grid,.bump-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .asset-card,.showcase-card,.bump-card{border-radius:14px}.card-body,.showcase-card-body,.bump-card-body{padding:10px}.card-title{font-size:13px;min-height:35px}
  .detail-layout,.bump-detail-layout,.showcase-detail-grid,.profile-grid,.form-grid{grid-template-columns:1fr!important}.detail-title{font-size:30px!important}.detail-main-card,.detail-side-card,.detail-comments-card,.bump-detail-comments-panel{padding:13px!important}
  .comment-form,.new-thread-composer{flex-wrap:wrap}.comment-form input,.new-thread-composer input{flex:1 1 100%}
  .modal-backdrop{padding:10px}.modal,.login-modal,.link-gate-modal,.report-manager-modal{width:100%;max-height:94vh;border-radius:16px}.modal-header{padding:15px 16px}.asset-form,.bump-form,.showcase-form,.profile-edit-form{padding:15px 16px}
  .pagination{padding:8px 12px 24px}.page-btn{min-width:34px;height:34px}
}
@media(max-width:560px){
  .asset-grid,.showcase-grid,.bump-grid{grid-template-columns:1fr 1fr}.avatar-chips,.tag-chips{gap:3px}.chip{font-size:9px;padding:3px 6px}.card-shop{font-size:10px}
  .top-actions .account-badge{display:none}.language-select{max-width:110px}.select.compact{min-width:100px}.primary-btn,.ghost-btn,.secondary-btn{padding:9px 10px;font-size:12px}
  .profile-stat-grid{grid-template-columns:1fr 1fr!important}.profile-hero-inner{align-items:flex-start!important}.profile-avatar-xl{width:78px!important;height:78px!important}.profile-name{font-size:28px!important}
  .bump-detail-image-panel{min-height:260px!important}.showcase-detail-image{max-height:48vh!important}
}
@media(max-width:380px){.asset-grid,.showcase-grid,.bump-grid{grid-template-columns:1fr}.hub-view-nav-main .hub-view-btn{min-width:132px}.page-btn{min-width:31px}}

/* CSP-safe fatal error fallback */
.fatal-error { padding: 40px; font-family: system-ui, sans-serif; color: #fff; background: #111; min-height: 100vh; }


/* v2.1.8: asset library display-mode switch */
.display-mode-select{min-width:132px}
.asset-grid.compact-mode{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px}
.asset-grid.compact-mode .asset-card-compact{border-radius:14px;overflow:hidden}
.asset-grid.compact-mode .asset-card-compact .card-image{aspect-ratio:1/1}
.asset-grid.compact-mode .compact-card-body{padding:10px 11px 12px;min-height:58px;display:flex;align-items:flex-start}
.asset-grid.compact-mode .asset-card-compact .card-title{font-size:13px;line-height:1.35;min-height:0;-webkit-line-clamp:2}
@media(max-width:700px){
  .display-mode-select{min-width:118px;max-width:150px}
  .asset-grid.compact-mode{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .asset-grid.compact-mode .compact-card-body{padding:8px 9px 10px;min-height:52px}
  .asset-grid.compact-mode .asset-card-compact .card-title{font-size:12px}
}
@media(max-width:380px){.asset-grid.compact-mode{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v2.1.9: clickable shop filter */
.detail-shop-filter, .card-shop-filter {
  appearance:none; border:0; background:transparent; padding:0; margin:0; font:inherit; text-align:left; cursor:pointer;
}
.detail-shop-filter {
  color:#6f9cff; font-size:13px; font-weight:800; text-decoration:underline; text-decoration-color:rgba(111,156,255,.34); text-underline-offset:3px;
}
.detail-shop-filter:hover, .detail-shop-filter:focus-visible { color:#9ab9ff; text-decoration-color:currentColor; outline:none; }
.card-shop-filter { color:#818ba7; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-shop-filter:hover, .card-shop-filter:focus-visible { color:#9ab9ff; text-decoration:underline; text-underline-offset:2px; outline:none; }


/* v2.1.11: one-click asset view switch in the asset-library header */
.asset-view-toggle-wrap{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-left:auto;
  padding-bottom:2px;
}
.asset-view-toggle{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid rgba(123,145,224,.22);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(20,25,43,.96),rgba(12,16,28,.96));
  box-shadow:0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035);
}
.asset-view-toggle-btn{
  appearance:none;
  border:1px solid transparent;
  border-radius:9px;
  min-height:36px;
  padding:7px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#8995b4;
  background:transparent;
  font:inherit;
  font-size:12px;
  font-weight:850;
  letter-spacing:.01em;
  cursor:pointer;
  white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.asset-view-toggle-btn:hover{
  color:#dbe4ff;
  background:rgba(111,127,207,.09);
}
.asset-view-toggle-btn:active{transform:translateY(1px)}
.asset-view-toggle-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(102,137,255,.22);
}
.asset-view-toggle-btn.active{
  color:#fff;
  border-color:rgba(122,154,255,.56);
  background:linear-gradient(135deg,rgba(90,104,255,.95),rgba(175,70,234,.92));
  box-shadow:0 7px 22px rgba(91,95,255,.24), inset 0 1px 0 rgba(255,255,255,.16);
}
.asset-view-toggle-icon{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  font-size:15px;
  line-height:1;
  opacity:.95;
}
.asset-grid.compact-mode{
  grid-template-columns:repeat(auto-fill,minmax(155px,1fr));
}
.asset-grid.compact-mode .asset-card-compact .card-image{aspect-ratio:1/1}
.asset-grid.compact-mode .compact-card-body{
  min-height:58px;
  padding:10px 11px 12px;
}
.asset-grid.compact-mode .asset-card-compact .card-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:0;
  line-height:1.35;
}
@media(max-width:900px){
  .content-head{align-items:flex-end;gap:12px;flex-wrap:wrap}
  .asset-view-toggle-wrap{margin-left:0;width:100%;justify-content:flex-end;padding-bottom:0}
  .asset-view-toggle-btn{min-height:34px;padding:6px 10px;font-size:11px}
}
@media(max-width:560px){
  .asset-view-toggle{width:100%}
  .asset-view-toggle-btn{flex:1 1 50%}
}

/* v2.1.12 asset editor draft protection */
.draft-save-row{display:flex;align-items:center;justify-content:flex-start;min-height:24px;padding:0 2px;margin-top:-4px}
.draft-status{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.01em}
.draft-status.is-saving{color:#8eb7ff}
.draft-status.is-saved{color:#6fe0a5}
.draft-status.is-restored{color:#ffd479}

/* v2.1.13: localized Asset Library nav label */
.hub-view-btn .hub-view-icon + .hub-view-label{margin-left:.22rem;}

/* v2.2.0 operations / bulk import / admin dashboard */
.shop-filter-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:18px 20px;border:1px solid rgba(96,165,250,.25);border-radius:18px;background:linear-gradient(135deg,rgba(49,46,129,.28),rgba(15,23,42,.82));box-shadow:0 18px 44px rgba(0,0,0,.16)}
.shop-filter-banner h2{margin:2px 0 4px;font-size:24px}.shop-filter-banner p{margin:0;color:var(--muted)}
.bulk-import-modal{width:min(980px,94vw);max-height:88vh;overflow:auto}.bulk-import-body{padding:20px;display:grid;gap:16px}.bulk-import-body textarea{width:100%;resize:vertical;min-height:150px}.bulk-import-options{display:grid;grid-template-columns:220px 1fr;gap:14px}.bulk-import-actions{display:flex;gap:10px;justify-content:flex-end}.bulk-preview{display:grid;gap:10px}.bulk-preview-row{display:grid;grid-template-columns:auto 66px 1fr;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(7,12,24,.52)}.bulk-preview-row.is-duplicate{border-color:rgba(245,158,11,.42);background:rgba(120,53,15,.12)}.bulk-preview-row.has-error{border-color:rgba(244,63,94,.42);background:rgba(127,29,29,.12)}.bulk-thumb{width:58px;height:58px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:#0b1020}.bulk-thumb img{width:100%;height:100%;object-fit:cover}.bulk-copy{min-width:0;display:grid;gap:3px}.bulk-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bulk-copy span,.bulk-copy small{color:var(--muted)}.bulk-copy .warn{color:#fbbf24}.bulk-check input{width:18px;height:18px}
.managed-user-note{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(99,102,241,.25);border-radius:12px;background:rgba(79,70,229,.08);font-size:12px}.managed-user-note span{color:var(--muted)}.user-lock-reason{margin-top:4px;color:#fbbf24;font-size:12px}
.admin-dashboard-modal{width:min(1080px,96vw);max-height:90vh;overflow:auto}.admin-dashboard-body{padding:20px;display:grid;gap:20px}.admin-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.admin-stat-grid>div{padding:14px;border:1px solid var(--line);border-radius:14px;background:rgba(7,12,24,.55);display:grid;gap:4px}.admin-stat-grid span{color:var(--muted);font-size:12px}.admin-stat-grid strong{font-size:24px}.admin-dashboard-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-dash-section{padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(7,12,24,.38)}.admin-dash-section h3{margin:0 0 12px}.quality-list{display:grid;gap:8px;max-height:310px;overflow:auto}.quality-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#0b1020;color:inherit;cursor:pointer}.quality-row:hover{border-color:rgba(96,165,250,.5)}.quality-row span{color:#fbbf24;font-size:12px}.lock-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}.lock-row:last-child{border-bottom:0}.lock-row span{color:var(--muted);font-size:12px;text-align:right}.password-change-modal{width:min(520px,92vw)}.password-change-modal .login-form{padding:22px}.linkish-btn{border:0;background:transparent;color:#93c5fd;text-decoration:underline;cursor:pointer;padding:0;font:inherit}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media(max-width:900px){.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bulk-import-options{grid-template-columns:1fr}.shop-filter-banner{align-items:flex-start;flex-direction:column}.lock-row{flex-direction:column}.lock-row span{text-align:left}}

/* v2.2.0 recent values */
.recent-category-btn{margin-top:7px;border:1px solid rgba(117,135,191,.35);background:rgba(76,88,139,.16);color:#b9c6ee;border-radius:999px;padding:5px 9px;font-size:11px;cursor:pointer;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-category-btn:hover{background:rgba(94,113,179,.25);border-color:rgba(132,151,214,.55)}

/* v2.2.1 strict avatar auto-detection */
.avatar-detection-notice{margin-top:8px;padding:11px 12px;border:1px solid rgba(245,158,11,.38);border-radius:12px;background:rgba(120,53,15,.13);display:grid;gap:9px}
.avatar-detection-notice.hidden{display:none}
.avatar-detection-head{display:grid;gap:3px}
.avatar-detection-head strong{color:#fbbf24;font-size:12px}
.avatar-detection-head span{color:#c8cedb;font-size:11px;line-height:1.5}
.avatar-detection-candidates{display:flex;flex-wrap:wrap;gap:6px}
.unknown-avatar-candidate{border:1px solid rgba(245,158,11,.38);border-radius:999px;background:rgba(245,158,11,.10);color:#ffd68a;padding:5px 9px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.unknown-avatar-candidate:hover{background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.62)}
.status.warn{color:#fbbf24}


/* v2.2.7 - clearer category navigation + avatar candidate block controls */
@media (min-width: 1101px) { .app-shell { grid-template-columns: 304px minmax(0,1fr); } }
#categoryFilters.filter-list { gap: 10px; }
.category-all { min-height:48px; border:1px solid rgba(129,139,255,.28)!important; border-radius:14px!important; background:linear-gradient(110deg,rgba(117,74,255,.11),rgba(242,73,199,.06))!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.035); font-size:13px!important; }
.category-all.active { border-color:rgba(143,109,255,.62)!important; background:linear-gradient(110deg,rgba(139,79,255,.25),rgba(53,166,255,.13))!important; box-shadow:0 0 0 1px rgba(123,102,255,.10),0 8px 25px rgba(49,36,128,.14); }
.category-groups-wrap { gap:9px!important; }
.category-group { border-color:rgba(142,154,215,.17)!important; border-radius:14px!important; background:rgba(13,17,29,.66)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.category-group.open { border-color:rgba(137,119,236,.33)!important; background:linear-gradient(150deg,rgba(19,24,42,.88),rgba(12,16,28,.82))!important; }
.category-group.has-active-group { border-color:rgba(113,127,255,.46)!important; box-shadow:0 0 0 1px rgba(98,104,255,.09),0 8px 24px rgba(36,31,96,.12); }
.category-group-toggle { min-height:50px!important; padding:10px 11px!important; }
.category-group-main { gap:10px!important; }
.category-group-icon { width:26px; height:26px; flex:0 0 26px; display:inline-grid; place-items:center; border:1px solid rgba(139,150,217,.17); border-radius:8px; background:rgba(121,107,230,.09); color:#c7c9ff; font-size:11px; }
.category-group-title { font-size:13px!important; font-weight:900!important; color:#e4e9fb!important; letter-spacing:.015em!important; }
.category-group-meta { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.category-group-count { min-width:27px!important; height:23px!important; color:#b8c2e0!important; background:rgba(255,255,255,.05)!important; border-color:rgba(154,166,225,.17)!important; }
.category-group-chevron { width:24px!important; height:24px; flex:0 0 24px!important; display:grid; place-items:center; border-radius:7px; background:rgba(255,255,255,.035); color:#aeb8dc!important; font-size:15px!important; line-height:1; }
.category-group-items { padding:6px 7px 8px 12px!important; gap:4px!important; border-top-color:rgba(141,151,211,.13)!important; }
.category-group-items::before { left:8px!important; top:10px!important; bottom:10px!important; width:2px!important; background:linear-gradient(180deg,rgba(145,105,255,.55),rgba(53,192,255,.18))!important; }
.category-group .filter-btn.category-item { min-height:40px!important; padding:8px 10px 8px 12px!important; border-radius:10px!important; font-size:12.5px!important; font-weight:730; color:#bfc8e3; border:1px solid transparent; }
.category-group .filter-btn.category-item:hover { opacity:1!important; color:#fff; background:rgba(113,101,211,.10)!important; border-color:rgba(130,139,213,.10); }
.category-group .filter-btn.is-empty:not(.active) { opacity:.70!important; }
.category-group .filter-btn.active { color:#fff!important; background:linear-gradient(90deg,rgba(130,73,255,.24),rgba(57,156,255,.12))!important; border-color:rgba(130,112,255,.35)!important; box-shadow:inset 3px 0 0 #9b70ff; }
.category-item-icon { width:18px!important; flex-basis:18px!important; color:#b7c0dd!important; font-size:12px!important; }
.category-group .count-pill { min-width:25px!important; height:22px; padding:0 6px; display:inline-grid; place-items:center; border-radius:999px; background:rgba(255,255,255,.04); color:#9ca8c9; font-size:10px!important; text-align:center!important; }
.category-group .filter-btn.active .count-pill { background:rgba(123,107,255,.20); color:#e3e5ff; }
.avatar-detection-candidates { display:grid; gap:7px; }
.avatar-detection-candidate-row { display:flex; align-items:center; gap:7px; min-width:0; }
.avatar-detection-candidate-row .unknown-avatar-candidate { flex:1 1 auto; min-width:0; text-align:left; }
.block-avatar-candidate { flex:0 0 auto; border:1px solid rgba(255,139,67,.43); background:rgba(104,55,11,.30); color:#ffc06b; border-radius:999px; padding:7px 10px; font-size:11px; font-weight:850; cursor:pointer; }
.block-avatar-candidate:hover { background:rgba(145,68,10,.42); border-color:rgba(255,164,67,.68); color:#ffe0a3; }
.avatar-detection-admin-hint { color:#d8ad63!important; }
.avatar-block-list { display:grid; gap:7px; margin-top:10px; }
.avatar-block-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border:1px solid rgba(141,153,211,.13); border-radius:10px; background:rgba(9,13,23,.35); }
.avatar-block-row>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:750; color:#d8def2; }
.avatar-block-row .ghost-btn { padding:6px 9px; min-height:30px; }

.download-history-modal{width:min(1080px,94vw);max-width:1080px}.download-history-body{padding:20px;overflow:auto;max-height:78vh}.download-history-controls,.download-history-pager{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.download-history-controls label{display:flex;align-items:center;gap:10px}.download-history-controls select{max-width:min(560px,70vw)}.download-history-count{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.download-history-count strong{font-size:24px}.download-history-table{overflow:auto;max-height:360px;margin:12px 0 24px}.download-history-table table{width:100%;border-collapse:collapse;min-width:650px}.download-history-table td,.download-history-table th{padding:12px;text-align:left;border-bottom:1px solid rgba(255,255,255,.1);vertical-align:top}.download-history-table th{position:sticky;top:0;background:#191e30;z-index:1}.download-history-table td:first-child{white-space:nowrap}.download-history-table strong{overflow-wrap:anywhere}.download-history-pager{justify-content:flex-end;margin-top:16px}

#downloadHistoryBackdrop{z-index:100}

.link-row{grid-template-columns:minmax(80px,.65fr) minmax(150px,1.3fr) minmax(160px,1fr) auto;align-items:end}.link-password-field{display:grid;gap:5px;min-width:0}.link-password-field>span{font-size:12px;color:var(--muted)}.link-password-field input{width:100%}.download-link-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}.link-password-copy{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;padding:8px 10px;background:#20263b;border:1px solid #52527c;border-radius:9px;color:#e6e5ff;cursor:pointer;font:inherit;font-size:12px}.link-password-copy:hover{background:#303655}.link-password-copy:focus-visible{outline:2px solid #ab9aff;outline-offset:3px}.link-password-copy code{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;font-weight:700}.password-copy-status{color:#bbaaff}.password-clipboard-buffer{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
@media(max-width:760px){.link-row{grid-template-columns:1fr auto}.link-row .link-label,.link-row .link-url,.link-row .link-password-field{grid-column:1}.link-row .remove-link{grid-column:2;grid-row:1/4;align-self:start}}

/* Keep preview recovery actions reachable when an image cannot load. */
.thumbnail-help{font-size:11px;line-height:1.6;font-weight:400;color:var(--muted)}
.thumbnail-preview-status{min-height:0;color:#ff9eaf;font-size:11px;line-height:1.6}
.thumbnail-preview-status:empty{display:none}
.thumbnail-clear-btn{justify-self:start;font-size:11px;padding:6px 10px}

/* v2.4.0 broken-link reports and recipient notifications */
.broken-link-report-btn{background:transparent;color:#e4ad83;border:1px solid rgba(228,173,131,.24);border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer}
.broken-link-report-btn:hover{background:rgba(228,173,131,.08)}.broken-link-report-btn:disabled{opacity:.6;cursor:default}
.notification-menu-btn{display:inline-flex;align-items:center;gap:6px}.notification-count{min-width:20px;padding:2px 6px;border-radius:20px;background:#ee9279;color:#161016;font-size:11px;font-weight:800}
.notification-body{padding:18px 22px 22px}.notification-controls,.notification-pagination,.link-notice-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.notification-controls{margin-bottom:16px}.notification-controls label{display:flex;align-items:center;gap:8px}.notification-controls select{max-width:100%;padding:8px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px}
#linkNotificationItems{display:grid;gap:12px}.link-notice{border:1px solid var(--border);background:rgba(15,20,32,.6);border-radius:12px;padding:14px;overflow-wrap:anywhere}.link-notice.is-unread{border-color:rgba(238,146,121,.6)}.link-notice-head{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:8px}.link-notice-state{white-space:nowrap;font-size:11px;border-radius:8px;padding:4px 7px}.link-notice-state.is-open{background:rgba(238,146,121,.15);color:#eeb095}.link-notice-state.is-resolved{background:rgba(97,191,160,.12);color:#85cbb2}.link-notice-reasons{display:grid;gap:9px;margin:12px 0;font-size:12px}.link-notice-reasons p{white-space:pre-wrap;margin:4px 0 0;color:var(--muted)}.notification-pagination{justify-content:center;margin-top:18px}
@media(max-width:640px){.notification-body{padding:14px}.link-notice-head{flex-direction:column}.notification-controls{align-items:stretch}.notification-controls label{width:100%}}

.reported-link-target{outline:2px solid #e4ad83;outline-offset:4px;border-radius:8px}

/* v2.4.1: fit the actual viewport and keep every control reachable. */
.app-shell{width:100%;min-width:0;grid-template-rows:minmax(0,1fr)}
.sidebar,.main{min-height:0;min-width:0}
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.sidebar>*{flex-shrink:0}
.sidebar-filter-panel{min-width:0;flex-shrink:0}
.sidebar-filter-content{display:grid;gap:18px;min-width:0}
.sidebar-filter-toggle{display:none;cursor:pointer;font-weight:800;font-size:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2)}
.topbar{flex-wrap:wrap;align-items:center}
.topbar .search-wrap{flex:1 1 220px;min-width:0}
.top-actions{flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:wrap}
.auth-top-actions{min-width:0;max-width:100%;flex-wrap:wrap}
.top-actions>*,.auth-top-actions>*{max-width:100%}
.top-actions .account-badge{overflow-wrap:anywhere}
.content-head{min-width:0;flex-wrap:wrap;gap:12px}
.asset-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
.asset-grid.compact-mode{grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr))}
.hub-view-nav-main{min-width:0;flex-wrap:wrap}
.hub-view-nav-main .hub-view-btn{min-width:0;white-space:normal;overflow-wrap:anywhere}
.modal-backdrop{overflow:auto}
.modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-width:100%;min-width:0;max-height:calc(100vh - 56px)}
@supports(height:100dvh){
  .app-shell{height:100dvh}
  .modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-height:calc(100dvh - 56px)}
}
@media(min-width:901px){
  html,body{height:100%;overflow:hidden}
  .app-shell{display:grid;grid-template-columns:clamp(200px,18vw,264px) minmax(0,1fr);height:100vh;min-height:0}
  @supports(height:100dvh){.app-shell{height:100dvh}}
  .main{overflow-y:auto;overflow-x:hidden}
}
@media(min-width:901px) and (max-width:1400px){
  .topbar{padding:10px 14px;gap:8px}
  .topbar .search-wrap{flex-basis:100%}
  .top-actions{flex-basis:100%;gap:7px}
  .auth-top-actions{gap:7px}
}
@media(max-height:700px) and (min-width:901px){
  .sidebar{padding:12px 10px;gap:12px}
  .sidebar-filter-content{gap:12px}
  .brand{padding-bottom:12px}
  .topbar{min-height:0;padding-top:8px;padding-bottom:8px}
}
@media(max-width:900px){
  html,body{height:auto;min-height:100%;overflow:auto}
  .app-shell{display:block;height:auto;min-height:100vh}
  @supports(height:100dvh){.app-shell{min-height:100dvh}}
  .sidebar{overflow:visible;max-height:none;padding:10px 12px;gap:10px}
  .sidebar-filter-toggle{display:list-item;list-style-position:inside}
  .sidebar-filter-content{padding-top:12px;gap:12px}
  .sidebar-filter-panel:not([open])>.sidebar-filter-content{display:none}
  .main{overflow:visible}
  .topbar{position:relative;gap:8px}
  .topbar .search-wrap{flex:1 1 100%;order:1}
  .top-actions{width:100%;flex:1 1 100%;overflow:visible;order:2;flex-wrap:wrap}
  .top-actions>*{flex:0 1 auto}
  .auth-top-actions{flex:1 1 100%}
  .hub-view-nav-main{position:relative;top:auto;display:flex!important;overflow:visible;flex-wrap:wrap;gap:7px}
  .hub-view-nav-main .hub-view-btn{min-width:0;flex:1 1 130px!important;padding:9px 10px}
  .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .asset-grid.compact-mode{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-height:calc(100vh - 20px)}
  @supports(height:100dvh){.modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-height:calc(100dvh - 20px)}}
}
@media(max-width:380px){
  .asset-grid{grid-template-columns:1fr}
  .asset-grid.compact-mode{grid-template-columns:repeat(2,minmax(0,1fr))}
  .search{padding-left:36px}
}
@media(max-height:500px){
  .modal-backdrop{padding:10px}
  .modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-height:calc(100vh - 20px)}
  @supports(height:100dvh){.modal,.login-modal,.link-gate-modal,.report-manager-modal,.showcase-detail-modal{max-height:calc(100dvh - 20px)}}
}
/* Anchor account explanations inside the toolbar instead of past its right edge. */
.top-actions .trust-tooltip{left:auto;right:0;min-width:0;width:min(260px,calc(100vw - 24px));transform:translateY(4px)}
.top-actions .trust-title-tooltip:hover .trust-tooltip,.top-actions .trust-title-tooltip:focus .trust-tooltip{transform:translateY(0)}
.top-actions .trust-tooltip::after{left:auto;right:12px;transform:none}
