/* ==========================================================
  Dikomik - clean, responsive UI (dark default, light option)
   ========================================================== */

:root {
  --bg: #121210;
  --surface: #1b1a17;
  --surface-2: #25231f;
  --border: #37332d;
  --text: #f3f0e9;
  --muted: #a49d92;
  --accent: #ef7054;
  --accent-ink: #1b100d;
  --accent-soft: rgba(239, 112, 84, .14);
  --danger: #ef7054;
  --header-bg: #171613;
  --shadow: 0 12px 30px rgba(0, 0, 0, .24);
  --radius: 8px;
  --radius-sm: 5px;
  --nav-h: 62px;
  --gutter: 16px;
  --maxw: 1240px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f1f2f1;
  --surface: #ffffff;
  --surface-2: #e7e9e7;
  --border: #d6d9d6;
  --text: #20221f;
  --muted: #707570;
  --accent: #c84f36;
  --accent-ink: #ffffff;
  --accent-soft: rgba(200, 79, 54, .10);
  --header-bg: #f8f9f7;
  --shadow: 0 10px 24px rgba(25, 27, 24, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.logo { display: flex; align-items: center; gap: 9px; order: 1; flex: 1; min-width: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-size: 19px; font-weight: 800; }
.logo-text b { color: var(--accent); font-weight: 800; }

.top-nav { display: none; order: 2; gap: 4px; }
.top-nav a {
  padding: 8px 12px; border-radius: 5px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.top-nav a:hover { color: var(--text); background: var(--surface-2); }
.top-nav a.active { color: var(--accent); background: var(--accent-soft); }

.search-wrap {
  order: 3; width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 0 13px; height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-wrap svg { width: 18px; height: 18px; color: var(--muted); }
.search-wrap input {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: 0; font-size: 14px;
}
.search-wrap input::placeholder { color: var(--muted); }

.header-actions { order: 2; display: flex; align-items: center; gap: 8px; }
.install-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 10px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 12px; white-space: nowrap;
}
.install-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-pill:hover { filter: brightness(1.08); }
.dikomik-twa .install-pill { display: none; }
.donate-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 5px;
  background: transparent; color: var(--text);
  font-weight: 700; font-size: 13px;
  transition: background .15s, color .15s;
}
.donate-pill svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.donate-pill:hover { background: var(--accent-soft); color: var(--accent); }
.theme-btn {
  width: 44px; height: 44px; border-radius: 5px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.theme-btn:hover { background: var(--surface-2); }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------------- Layout ---------------- */
main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter) 8px;
  position: relative; min-height: 60vh;
}
main.narrow { max-width: 880px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 34px 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.section-head:first-child { margin-top: 6px; }
.section-head h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; }
.section-note { color: var(--muted); font-size: 12px; font-weight: 600; }

.state-msg {
  grid-column: 1 / -1; text-align: center;
  color: var(--muted); padding: 36px 12px; font-size: 14px;
}

/* ---------------- Cards & grid ---------------- */
.grid {
  display: grid; gap: 14px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.carousel {
  display: flex; gap: 10px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card, .carousel .continue-card {
  flex: 0 0 118px; scroll-snap-align: start;
}

.card { display: block; min-width: 0; }
.thumb-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border-radius: 5px;
}
.thumb, .thumb-wrap > img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.badge, .badge-hot {
  position: absolute; top: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge { left: 6px; background: rgba(0, 0, 0, .62); color: #fff; }
.badge-hot { right: 6px; background: var(--accent); color: var(--accent-ink); }
.card .info { padding: 8px 2px 0; }
.card .title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-top: 5px;
}
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #f5b83d; }
.rating svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.chapter-pill {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); padding: 2px 7px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.card-anim { animation: cardIn .4s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* skeleton */
.skeleton-card { pointer-events: none; }
.skeleton-shimmer, .skeleton-line {
  background: var(--surface-2);
}
.skeleton-line { height: 10px; border-radius: 6px; margin-top: 4px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.sentinel-loader { display: flex; justify-content: center; padding: 28px 0; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* page-load overlay, shown while navigating to a new page */
.page-loader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.page-loader.show { opacity: 1; pointer-events: auto; }
.page-loader .spinner { width: 34px; height: 34px; border-width: 3px; }
@media (prefers-reduced-motion: reduce) {
  .page-loader .spinner { animation-duration: 1.4s; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------- Hero ---------------- */
.hero-carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--radius);
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: center; }
.hero {
  position: relative; display: flex; align-items: flex-end; gap: 16px;
  min-height: 230px; padding: 18px; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover; filter: blur(18px) saturate(115%); opacity: .58;
  transform: scale(1.1);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, .12), rgba(10, 10, 9, .88));
}
.hero-cover {
  position: relative; z-index: 1;
  width: 104px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .15);
}
.hero-overlay { position: relative; z-index: 1; min-width: 0; color: #fff; padding-bottom: 2px; }
.hero-tag {
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px; font-weight: 700; line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 4px; }
.hero-meta svg { width: 13px; height: 13px; fill: #f5b83d; stroke: none; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.hero-dots span { width: 6px; height: 6px; border-radius: 2px; background: var(--border); transition: width .25s, background .25s; }
.hero-dots span.active { width: 18px; background: var(--accent); }

/* continue reading */
.continue-card { display: block; min-width: 0; }
.continue-card .cname {
  font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.continue-card .cprog { font-size: 11px; color: var(--muted); margin-top: 2px; }
.progress-bar { height: 3px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------------- Detail ---------------- */
.back-btn {
  position: absolute; top: 24px; left: calc(var(--gutter) + 12px); z-index: 5;
  width: 44px; height: 44px; border-radius: 5px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .5); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.back-btn svg { width: 20px; height: 20px; }

.detail-backdrop {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
  padding: 76px 18px 20px;
}
.detail-backdrop > img {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  object-fit: cover; filter: blur(20px) saturate(115%); opacity: .58; transform: scale(1.1);
}
.detail-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, .18), rgba(10, 10, 9, .9));
}
.bookmark-toggle {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 11px;
  color: #fff; background: rgba(18, 18, 16, .78);
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 5px;
  cursor: pointer; font-size: 13px; font-weight: 700;
}
.bookmark-toggle svg { width: 17px; height: 17px; }
.bookmark-toggle.saved { color: #fff; background: var(--accent); border-color: var(--accent); }
.detail-overlay-content {
  position: relative; z-index: 1; color: #fff;
  display: flex; align-items: flex-end; gap: 16px;
}
.detail-cover {
  width: 112px; aspect-ratio: 3 / 4; object-fit: cover; flex-shrink: 0;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.detail-title { font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 700; line-height: 1.08; }
.detail-latest { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.detail-stats-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
  padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .14); color: #fff;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.tag {
  padding: 4px 9px; border-radius: 3px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}

.update-info-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px;
}
.update-info-col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.update-info-col .lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.update-info-col .val { margin-top: 2px; font-weight: 700; font-size: 14px; }

.see-all-chapter-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; height: 48px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s;
}
.see-all-chapter-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.see-all-chapter-btn svg { width: 18px; height: 18px; }

.detail-syn-head { margin: 24px 0 8px; font-size: 17px; font-weight: 800; }
.detail-syn { color: var(--muted); font-size: 14px; line-height: 1.7; }

.continue-bar {
  position: relative; margin-top: 24px;
}
.continue-bar .btn-fill, .continue-bar button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px;
  transition: transform .15s, filter .15s;
}
.continue-bar .btn-fill:active { transform: scale(.98); }
.continue-bar button[disabled] { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }

/* ---------------- Chapter list ---------------- */
.chapter-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chapter-panel-header h3 { margin: 0; font-size: 19px; font-weight: 800; }
.cp-back {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
}
.cp-back svg { width: 20px; height: 20px; }
.chapter-panel-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 12px -8px; }
.cp-sort-opt { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cp-sort-opt.active { color: var(--accent); }
.cp-sort-divider { color: var(--border); }
.chapter-panel-search input {
  width: 100%; height: 44px; padding: 0 16px; outline: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
}
.chapter-panel-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cp-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 4px;
  background: transparent; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cp-item img { width: 44px; height: 58px; border-radius: 3px; object-fit: cover; background: var(--surface-2); }
.cp-num { font-weight: 700; font-size: 14px; }
.cp-date { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------------- Settings ---------------- */
.settings-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; margin-bottom: 14px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 16px; font-size: 14px; font-weight: 500;
  background: transparent; border: 0; text-align: left; cursor: default;
}
.settings-row + .settings-row { border-top: 1px solid var(--border); }
.settings-row .val { color: var(--muted); font-size: 13px; }
.settings-row.danger { color: var(--danger); font-weight: 700; cursor: pointer; }
.settings-row.danger:hover { background: rgba(255, 107, 107, .08); }
.profile-form { padding: 18px; }
.profile-preview {
  width: 88px; height: 88px; margin: 0 auto 18px; overflow: hidden;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); color: var(--accent); font-size: 32px; font-weight: 700;
}
.profile-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-field { display: grid; gap: 6px; margin-bottom: 15px; font-size: 13px; font-weight: 700; }
.profile-field input {
  width: 100%; min-height: 42px; padding: 9px 11px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
}
.profile-field input:focus { border-color: var(--accent); outline: 0; }
.profile-field input[type="file"] { padding: 7px; }
.profile-field input:disabled { color: var(--muted); opacity: 1; }
.profile-field small { color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-remove { display: flex; align-items: center; gap: 8px; margin: -4px 0 15px; color: var(--muted); font-size: 13px; }
.profile-remove input { accent-color: var(--accent); }
.profile-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer;
}
.profile-message { margin-bottom: 12px; padding: 12px 14px; border-radius: 5px; font-size: 13px; }
.profile-message.error { color: var(--danger); background: var(--accent-soft); }
.profile-message.success { color: #46c98a; background: rgba(70, 201, 138, .12); }
.profile-login { padding: 16px; }
.profile-login p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

/* Profile header: level-separator tint from brand accent only (R-01), not a generic blue-purple gradient */
.profile-hero {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 55%, var(--accent-soft));
}
.profile-hero-avatar {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-size: 22px; font-weight: 800; box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info { min-width: 0; flex: 1; }
.profile-hero-name {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; color: var(--text);
}
.profile-hero-email { margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.profile-hero-joined {
  display: flex; align-items: center; gap: 5px; margin-top: 6px;
  color: var(--muted); font-size: 12px;
}
.profile-hero-joined svg { width: 13px; height: 13px; flex-shrink: 0; }
.profile-hero-logout-form { margin: 0; flex-shrink: 0; }
.profile-hero-logout {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-height: 38px; padding: 0 14px; border-radius: 5px;
  border: 1px solid var(--danger); color: var(--danger); font-size: 13px; font-weight: 700;
}

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.profile-stat-card {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.profile-stat-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.profile-stat-icon svg { width: 17px; height: 17px; }
.profile-stat-text { min-width: 0; font-size: 13px; }
.profile-stat-text strong { display: block; color: var(--text); font-size: 13.5px; }
.profile-stat-text span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.profile-tabs { display: flex; gap: 18px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.profile-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 2px;
  color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; font-size: 14px; font-weight: 700;
}
.profile-tab svg { width: 15px; height: 15px; }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.profile-panel[hidden] { display: none; }

/* ---------------- Premium ---------------- */
.premium-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  color: #241a00; background: linear-gradient(135deg, #ffd166, #ffb703);
  border-radius: 999px; vertical-align: middle;
}
.profile-banner-preview {
  margin-top: 12px; height: 56px; border-radius: 8px; background-size: cover; background-position: center;
  border: 1px solid var(--border);
}
.premium-locked {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; color: var(--muted); font-size: 13px; line-height: 1.6;
}
.premium-locked svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }
.premium-locked strong { color: var(--text); }

.swatch-group { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2px; }
.swatch-option { position: relative; cursor: pointer; }
.swatch-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot {
  display: block; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);
}
.swatch-option input:checked + .swatch-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.swatch-option input:focus-visible + .swatch-dot { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Premium avatar ring — real state marker (premium account), not decorative glow */
.comment-avatar-premium { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #ffb703; }

/* Banner behind the author name row; overlay + shadow keep text legible regardless of image */
.comment-author-banner {
  position: relative; padding: 4px 9px; margin: -4px -9px 4px; border-radius: 6px;
  background-size: cover; background-position: center; isolation: isolate;
}
.comment-author-banner::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35) 70%, transparent);
}
.comment-author-banner strong, .comment-author-banner time { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

.admin-search { display: flex; gap: 10px; margin-bottom: 8px; }
.admin-search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px; color: var(--text); font: inherit; font-size: 14px;
}
.admin-search input:focus { border-color: var(--accent); outline: 0; }
.admin-duration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-duration-grid .profile-field { margin-bottom: 4px; }
.admin-duration-grid input[type="number"] { text-align: center; }

.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  transition: border-color .15s, background .15s;
}
.social-link:hover { border-color: var(--accent); background: var(--surface-2); }
.social-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 5px; }
.social-mark svg { width: 21px; height: 21px; }
.social-copy { display: grid; min-width: 0; gap: 2px; }
.social-copy strong { font-size: 13px; }
.social-copy span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.social-external { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }

.about-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 22px 18px; text-align: center;
}
.about-box .app-name { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.about-box .line { color: var(--muted); font-size: 14px; margin: 3px 0; }
.about-box .line b { color: var(--text); font-weight: 600; }
.donate-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  height: 44px; padding: 0 18px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.donate-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* ---------------- Footer & bottom nav ---------------- */
.site-footer {
  max-width: var(--maxw); margin: 36px auto 0; padding: 20px var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8;
}
.site-footer b { color: var(--text); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  background: var(--header-bg);
  border-top: 1px solid var(--border);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600;
  transition: color .15s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--accent); }

/* ---------------- Reader ---------------- */
#reader { position: relative; background: #000; min-height: 100vh; }
#readerContent { max-width: 820px; margin: 0 auto; padding: 56px 0; }
#readerContent img { display: block; width: 100%; height: auto; background: #0b0b0d; }
.reader-loading { color: #9aa0b0; text-align: center; padding: 90px 20px; }

.reader-topbar, .reader-bottombar {
  position: fixed; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: rgba(10, 11, 14, .88); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .28s ease, opacity .28s ease;
}
.reader-topbar {
  top: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.reader-bottombar {
  bottom: 0; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.reader-topbar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.reader-bottombar.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

.rt-back, .rt-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); flex-shrink: 0;
}
.rt-back svg, .rt-icon svg { width: 19px; height: 19px; }
.rt-titles { flex: 1; min-width: 0; text-align: center; }
.rt-manga-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-chapter { font-size: 12px; color: rgba(255, 255, 255, .65); }

.rb-nav-btn {
  flex: 1; max-width: 200px; height: 44px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; transition: filter .15s;
}
.rb-nav-btn svg { width: 18px; height: 18px; }
.rb-nav-btn.disabled { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .35); }
.rb-chapters-btn {
  width: 44px; height: 44px; border-radius: 5px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); flex-shrink: 0;
}
.rb-chapters-btn svg { width: 20px; height: 20px; }

/* ---------------- Tablet ---------------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  body { font-size: 15.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
  .carousel .card, .carousel .continue-card { flex-basis: 150px; }
  .hero { min-height: 300px; padding: 26px; gap: 24px; }
  .hero-cover { width: 150px; }
  .hero-title { font-size: 32px; }
  .detail-backdrop { padding: 90px 28px 28px; }
  .detail-cover { width: 150px; }
  .detail-title { font-size: 34px; }
  .update-info-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Desktop ---------------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .logo { flex: 0 0 auto; }
  .top-nav { display: flex; }
  .search-wrap { order: 3; width: auto; flex: 1; max-width: 460px; margin-left: auto; }
  .header-actions { order: 4; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
  .carousel .card, .carousel .continue-card { flex-basis: 168px; }
  .carousel { gap: 16px; }
  .section-head h2 { font-size: 22px; }
  .hero { min-height: 360px; padding: 36px; }
  .hero-cover { width: 190px; }
  .hero-title { font-size: 42px; max-width: 640px; }
  .hero-meta { font-size: 15px; }
  .back-btn { top: 32px; left: calc(var(--gutter) + 16px); }
  .detail-backdrop { padding: 100px 36px 36px; }
  .detail-cover { width: 180px; }
  .detail-title { font-size: 40px; }
  .continue-bar .btn-fill, .continue-bar button { max-width: 420px; margin: 0 auto; }
  .site-footer { margin-top: 56px; }
  #readerContent { padding: 64px 0; }
  .reader-bottombar { gap: 14px; }
  .rb-nav-btn { max-width: 220px; }
}

@media (hover: hover) {
  .card:hover .thumb, .continue-card:hover .thumb-wrap > img { transform: scale(1.06); }
  .card:hover .title { color: var(--accent); }
  .cp-item:hover { background: var(--surface-2); }
  .rb-nav-btn:not(.disabled):hover { filter: brightness(1.12); }
  .comment-submit:hover { filter: brightness(1.1); }
  .chapter-comment { transition: border-color .15s; }
  .chapter-comment:hover { border-color: var(--muted); }
  .chapter-comment-owner:hover { border-color: var(--accent); }
}

@media (min-width: 1400px) {
  :root { --maxw: 1360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; min-height: 16px; }
.update-meta time, .update-time { color: var(--muted); font-size: 10px; line-height: 1.3; }
.update-meta .chapter-pill { max-width: 100%; }
.hero-meta { flex-wrap: wrap; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.hero-dots { gap: 2px; }
.hero-dots button {
  position: relative; width: 11px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hero-dots button::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--border); transition: width .2s, background .2s;
}
.hero-dots button.active::before { width: 18px; background: var(--accent); }
.hero-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.search-filters {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 0 0 16px;
}
.filter-control { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.filter-control select {
  width: 100%; min-width: 0; height: 42px; padding: 0 10px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; font-size: 13px;
}
.filter-control select:focus-visible { border-color: var(--accent); }

.library-tabs { display: flex; gap: 18px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.library-tab {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 2px;
  color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; font-size: 14px; font-weight: 700;
}
.library-tab span { color: inherit; font-size: 12px; }
.library-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.library-panel[hidden] { display: none; }
.library-empty[hidden] { display: none; }
.library-empty {
  display: grid; justify-items: center; max-width: 390px; margin: 42px auto 64px;
  padding: 16px 20px; text-align: center;
}
.library-empty-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 7px;
}
.library-empty-icon svg { width: 24px; height: 24px; }
.library-empty h3 { margin: 16px 0 0; font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 700; }
.library-empty p { max-width: 290px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.library-empty-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; margin-top: 18px; padding: 0 15px;
  color: var(--accent-ink); background: var(--accent); border-radius: 5px;
  font-size: 13px; font-weight: 700; transition: filter .15s;
}
.library-empty-link:hover { filter: brightness(1.08); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 18px 14px; }
.library-bookmark-item { min-width: 0; }
.bookmark-remove { display: inline-flex; align-items: center; min-height: 36px; margin: 3px -4px 0; padding: 8px 4px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.bookmark-remove:hover { color: var(--danger); }
.library-history { display: flex; flex-direction: column; }
.library-history-item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.library-history-cover img { width: 48px; height: 64px; object-fit: cover; border-radius: 3px; }
.library-history-info { display: grid; gap: 3px; min-width: 0; }
.library-history-title { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.library-history-meta { color: var(--text); font-size: 12px; }
.library-history-time { color: var(--muted); font-size: 11px; }
.library-resume { padding: 8px 10px; color: var(--accent); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; font-weight: 700; }

@media (min-width: 900px) {
  .top-nav a { padding-right: 9px; padding-left: 9px; font-size: 13px; }
}

@media (max-width: 599px) {
  .search-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .filter-control { gap: 4px; font-size: 11px; }
  .filter-control select { height: 40px; padding: 0 6px; font-size: 11px; }
  .social-links { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .library-history-item { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .library-history-cover img { width: 44px; height: 58px; }
  .library-resume { grid-column: 2; justify-self: start; }
}

/* Owner badge on chapter comments */
.owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
}

.comment-actions { display:flex; gap:6px; margin-top:7px; }
.comment-actions form { display:flex; gap:5px; align-items:center; }
.comment-actions input { max-width:320px; min-height:28px; padding:4px 7px; background:var(--bg); border:1px solid var(--border); border-radius:4px; color:var(--text); font-size:12px; }
.comment-actions button { background:transparent; border:0; color:var(--muted); font-size:11px; cursor:pointer; padding:2px 0; }
.comment-actions button:hover { color:var(--accent); }

/* ---------------- Chapter comments ---------------- */
.chapter-comments { background: var(--bg); padding: 8px 0 48px; }
.cc-inner { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.cc-head { margin: 28px 0 16px; }
.cc-head h2 { color: var(--text); }

.comment-rules {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
}
.comment-rules summary {
  display: flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 11px 14px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.comment-rules summary::-webkit-details-marker { display: none; }
.comment-rules summary svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.comment-rules summary::after {
  content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); font-weight: 400;
}
.comment-rules[open] summary::after { content: "–"; }
.comment-rules ol {
  margin: 0; padding: 0 16px 14px 40px; color: var(--muted);
  font-size: 13px; line-height: 1.6; display: grid; gap: 4px;
}
.comment-rules ol li::marker { color: var(--accent); font-weight: 700; }
.comment-rules ol strong { color: var(--text); }
.comment-rules-note {
  margin: 0; padding: 10px 14px; border-top: 1px solid var(--border);
  background: var(--accent-soft); color: var(--text); font-size: 12px;
}

.comment-notice {
  margin: 0 0 14px; padding: 11px 13px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}
.comment-notice.success { color: #46c98a; background: rgba(70, 201, 138, .12); }
.comment-notice.error { color: var(--danger); background: var(--accent-soft); }

.comment-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
  box-shadow: var(--shadow); /* only the active composer is elevated; list stays flat */
}
.comment-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-form-head label { font-size: 13px; color: var(--muted); }
.comment-form-head label strong { color: var(--text); }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.comment-avatar-fallback {
  display: grid; place-items: center; background: var(--surface-2); color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.comment-form textarea {
  width: 100%; resize: vertical; min-height: 86px; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 14px; line-height: 1.5;
}
.comment-form textarea:focus { border-color: var(--accent); outline: 0; }
.comment-form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; flex-wrap: wrap;
}
.comment-hint { color: var(--muted); font-size: 12px; }
.comment-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.comment-submit:active { transform: scale(.97); }

.comment-login-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.comment-login-prompt { margin: 0; color: var(--muted); font-size: 13.5px; }

.comment-list { display: grid; gap: 12px; }
.chapter-comment {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.chapter-comment-owner {
  border-color: var(--accent); background: var(--accent-soft);
}
.chapter-comment .comment-body { min-width: 0; flex: 1; }
.chapter-comment .comment-author {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 4px;
}
.chapter-comment .comment-author strong { font-size: 13.5px; color: var(--text); }
.chapter-comment-owner .comment-author strong { color: var(--accent); }
.chapter-comment .comment-author time { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.chapter-comment p { margin: 0; font-size: 14px; line-height: 1.55; word-wrap: break-word; white-space: pre-line; }
.comment-empty {
  text-align: center; color: var(--muted); font-size: 13.5px;
  padding: 26px 14px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}

@media (max-width: 480px) {
  .chapter-comment .comment-author time { margin-left: 0; width: 100%; order: 3; }
  .profile-hero { flex-wrap: wrap; }
  .profile-hero-info { flex-basis: 100%; order: 2; }
  .profile-hero-logout-form { order: 3; width: 100%; margin-top: 2px; }
  .profile-hero-logout { width: 100%; }
}

@media (max-width: 420px) {
  .donate-pill { width: 40px; padding: 0; justify-content: center; }
  .donate-pill span { display: none; }
}

@media (max-width: 360px) {
  .install-pill { width: 40px; padding: 0; }
  .install-pill span { display: none; }
}

.notification-list { display: grid; gap: 9px; margin-bottom: 20px; }
.notification-item { display: grid; gap: 3px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; transition: border-color .18s, transform .18s; }
.notification-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.notification-item.unread { border-left: 3px solid var(--accent); background: linear-gradient(100deg,var(--accent-soft),var(--surface) 45%); }
.notification-item strong { font-size: 14px; }
.notification-item span, .notification-item time { color: var(--muted); font-size: 12px; }
.library-notifications .section-head { margin-top: 22px; }
.comment-report { margin-top: 9px; }
.comment-report summary { width: fit-content; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.comment-report summary:hover { color: var(--accent); }
.comment-report form { display: flex; gap: 8px; margin-top: 8px; }
.comment-report input { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; }
.comment-report button { padding: 0 13px; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }
.comment-report[open] { padding: 10px; margin-top: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; }
.comment-submit:disabled { opacity: .65; cursor: wait; }
.chapter-comment { border-radius: 12px; padding: 16px; box-shadow: 0 5px 20px rgba(0,0,0,.08); }
.comment-form { border-radius: 14px; border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.profile-hero, .profile-stat-card, .settings-group, .social-link { border-radius: 12px; }
.settings-group { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.settings-row { min-height: 52px; }
.profile-form .profile-field input, .profile-form .profile-field select { border-radius: 9px; transition: border-color .18s, box-shadow .18s; }
.profile-form .profile-field input:focus, .profile-form .profile-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
.profile-submit, .comment-submit { border-radius: 9px; box-shadow: 0 5px 14px var(--accent-soft); }
.profile-tab, .library-tab { transition: color .18s, border-color .18s; }

.profile-owner-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2, inherit);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
}
