/* ==========================================================================================================
   Ethereal Config Hub - stylesheet.  Dark only.  Tokens first, then shell, browse, detail, forms, overlays.
   Breakpoints:  phone < 700  |  tablet 700-1099  |  desktop >= 1100 (3-4 column grid)
   Brand tokens are the site's (account.html / index.html) and match the Cloud Panel.
   ========================================================================================================== */

:root {
  --bg: #14141a;
  --bg-deep: #0f0f14;
  --card: #1d1c25;
  --card-2: #25242e;
  --card-3: #2c2b37;
  --field: #14141a;
  --line: #2c2b35;
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: #3a3946;
  --accent: #9b8bff;
  --accent-hover: #7b6bdf;
  --accent-ink: #15131f;
  --accent-soft: rgba(155, 139, 255, .13);
  --accent-line: rgba(155, 139, 255, .4);
  --glow: rgba(155, 139, 255, .35);
  --text: #ffffff;
  --text-1: #f3f3f8;
  --text-2: #c9ccd6;
  --dim: #8c94a2;
  --faint: #858d9c;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --star: #fbbf24;
  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tb-h: 64px;
  --gut: 32px;
  --max: 1240px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--bg); scroll-padding-top: calc(var(--tb-h) + 16px); }
html.ov-open { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text-1);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(155, 139, 255, .11), transparent 62%),
    radial-gradient(760px 440px at -6% 104%, rgba(91, 69, 200, .08), transparent 60%);
}
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-appearance: none; appearance: none; text-align: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg.ico { width: 20px; height: 20px; flex: none; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { padding: 24px; text-align: center; color: var(--dim); }
::selection { background: rgba(155, 139, 255, .35); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus { outline: none; }
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 400; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------------------------- first paint */
.boot { max-width: var(--max); margin: 0 auto; padding: 24px var(--gut); }
.boot-bar { display: flex; align-items: center; gap: 14px; height: 40px; margin-bottom: 28px; }
.boot-logo { width: 38px; height: 30px; background: linear-gradient(135deg, #cfc6ff 0%, #9b8bff 45%, #5a45c8 100%); opacity: .8; -webkit-mask: url(/confighub/assets/logo.png) center / contain no-repeat; mask: url(/confighub/assets/logo.png) center / contain no-repeat; }
.boot-line { width: 160px; height: 14px; border-radius: 7px; background: #25242e; }
.boot-hero { height: 250px; border-radius: 24px; background: linear-gradient(90deg, #1d1c25 25%, #25242e 50%, #1d1c25 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel { background: linear-gradient(90deg, #1d1c25 25%, #26252f 50%, #1d1c25 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
.boot-skel { height: 220px; border-radius: 20px; margin-top: 20px; }
.page-boot { max-width: var(--max); margin: 0 auto; padding: 36px var(--gut); }

/* ---------------------------------------------------------------------------------------- frame */
.frame { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 26, .8); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line-soft); padding-top: var(--safe-t); }
.topbar-in { max-width: var(--max); margin: 0 auto; height: var(--tb-h); padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; border-radius: 10px; }
/* the real Ethereal logo: the in-game menu's own file (same as the Cloud Panel), tinted with the accent */
.logo { position: relative; display: inline-block; flex: none; width: 38px; height: 30px; filter: drop-shadow(0 0 12px var(--glow)); }
.logo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #cfc6ff 0%, var(--accent) 45%, #5a45c8 100%);
  -webkit-mask: url(/confighub/assets/logo.png) center / contain no-repeat;
  mask: url(/confighub/assets/logo.png) center / contain no-repeat;
}
.brand-word { display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.brand-sep { width: 1px; height: 18px; background: var(--line-strong); }
.brand-hub { font-weight: 600; font-size: 15px; color: var(--text-2); letter-spacing: -.005em; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.topnav-link { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; white-space: nowrap; }
.topnav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.topnav-link[aria-current="page"] { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(155, 139, 255, .2); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 5px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background .15s; max-width: 220px; }
.user-chip:hover { border-color: var(--line-strong); background: #21202a; }
.user-name { font-size: 13.5px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.user-slot { display: contents; }

.banners:empty { display: none; }
.banner { background: rgba(251, 191, 36, .07); border-bottom: 1px solid rgba(251, 191, 36, .2); }
.banner.b-info { background: rgba(155, 139, 255, .08); border-bottom-color: rgba(155, 139, 255, .2); }
.banner-in { max-width: var(--max); margin: 0 auto; padding: 11px var(--gut); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.banner-in .ico { color: var(--accent); width: 18px; height: 18px; }
.banner-in p { flex: 1; min-width: 0; }
.banner-in b { color: #fff; font-weight: 600; }
.banner-link { flex: none; font-weight: 600; color: var(--accent); white-space: nowrap; }
.banner-link:hover { color: #c2b8ff; }

.main { flex: 1; width: 100%; min-width: 0; outline: 0; }
.page { max-width: var(--max); margin: 0 auto; padding: 32px var(--gut) 72px; }

.footer { border-top: 1px solid var(--line-soft); margin-top: 24px; }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 36px; display: flex; gap: 32px; justify-content: space-between; align-items: flex-start; color: var(--dim); font-size: 13.5px; }
.footer-note { max-width: 62ch; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; flex: none; }
.footer-links a:hover { color: #fff; }

.tabbar { display: none; }

/* ---------------------------------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-align: center; transition: background .15s, box-shadow .2s, color .15s, transform .1s, opacity .15s; text-decoration: none; }
.btn .ico { width: 17px; height: 17px; }
.btn:active:not(:disabled):not(.is-disabled) { transform: scale(.98); }
.btn:disabled, .btn.is-disabled { opacity: .45; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled):not(.is-disabled) { background: #aa9cff; box-shadow: 0 0 24px var(--glow); }
.btn-ghost { background: #2c2b35; color: #fff; }
.btn-ghost:hover:not(:disabled):not(.is-disabled) { background: #383744; }
.btn-quiet { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.btn-quiet:hover:not(:disabled) { border-color: var(--line-strong); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-danger { background: #cf3a3a; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc4343; box-shadow: 0 0 22px rgba(248, 113, 113, .35); }
.btn-danger-soft { background: rgba(248, 113, 113, .1); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .26); }
.btn-danger-soft:hover:not(:disabled) { background: rgba(248, 113, 113, .18); color: #fff; }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn .spin { border-color: rgba(21, 19, 31, .25); border-top-color: currentColor; }
.btn-ghost .spin, .btn-quiet .spin { border-color: rgba(255, 255, 255, .2); border-top-color: currentColor; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; flex: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--dim); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: #fff; }
.icon-btn .ico { width: 19px; height: 19px; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 4px 2px; border-radius: 6px; }
.link-btn:hover { color: #c2b8ff; }
.link-btn .ico { width: 15px; height: 15px; }
.link-btn.is-danger { color: #fca5a5; }
.link-btn.is-danger:hover { color: #fff; }

/* ---------------------------------------------------------------------------------------- badges, pills, tags */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 650; letter-spacing: .01em; background: rgba(15, 15, 20, .72); color: var(--text-1); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.badge.b-ok { color: #86efac; border-color: rgba(74, 222, 128, .35); background: rgba(10, 30, 18, .7); }
.badge.b-accent { color: #d8d2ff; border-color: var(--accent-line); background: rgba(40, 32, 80, .7); }
.badge.b-warn { color: #fde68a; border-color: rgba(251, 191, 36, .35); background: rgba(40, 30, 6, .7); }
.badge.b-new { color: #c9f0ff; border-color: rgba(125, 211, 252, .38); background: rgba(8, 28, 40, .7); }
.badge.b-danger { color: #fecaca; border-color: rgba(248, 113, 113, .35); background: rgba(45, 12, 12, .7); }
.pill-product { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; background: rgba(12, 12, 17, .62); border: 1px solid rgba(255, 255, 255, .13); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: 100%; }
.pill-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: hsl(var(--hue, 262) 90% 72%); box-shadow: 0 0 10px hsl(var(--hue, 262) 90% 62% / .7); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, .05); color: var(--text-2); border: 1px solid var(--line-soft); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-more { color: var(--dim); }
.tag-btn { cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tag-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.tag-btn.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: #fff; }
.tag-btn .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 14px; font-weight: 700; color: #15131f; background: linear-gradient(135deg, hsl(var(--hue, 262) 85% 82%), hsl(var(--hue, 262) 65% 60%)); }
.av-xs { width: 20px; height: 20px; font-size: 10.5px; }
.av-sm { width: 30px; height: 30px; font-size: 13px; }
.av-lg { width: 44px; height: 44px; font-size: 18px; }

/* ---------------------------------------------------------------------------------------- stars */
.stars { --sz: 14px; position: relative; display: inline-flex; vertical-align: middle; flex: none; height: var(--sz); width: calc(var(--sz) * 5); }
.stars.s-md { --sz: 18px; }
.stars.s-lg { --sz: 24px; }
.stars-row { display: flex; width: calc(var(--sz) * 5); }
.stars-row svg.ico { width: var(--sz); height: var(--sz); }
.stars-row.base { color: #3f3e4c; }
.stars-clip { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; }
.stars-row.fill { color: var(--star); filter: drop-shadow(0 0 6px rgba(251, 191, 36, .3)); }
.stars.is-empty .stars-clip { display: none; }

.rate-input { display: inline-flex; gap: 2px; padding: 4px; margin: -4px; border-radius: 12px; }
.rate-star { width: 40px; height: 40px; display: inline-grid; place-items: center; color: #3b3a47; border-radius: 10px; transition: color .12s, transform .12s var(--ease); }
.rate-star .ico { width: 30px; height: 30px; }
.rate-star.on { color: var(--star); }
.rate-star.on .ico { filter: drop-shadow(0 0 8px rgba(251, 191, 36, .35)); }
.rate-star.preview { transform: scale(1.12); }
.rate-input:not(.is-disabled) .rate-star:hover { transform: scale(1.12); }
.rate-input.is-disabled .rate-star { cursor: not-allowed; opacity: .55; }
.rate-input.is-busy { opacity: .75; }

/* ---------------------------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(155deg, #211f31 0%, #1b1a26 48%, #17161e 100%); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.hero-art { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 88% -10%, rgba(155, 139, 255, .30), transparent 70%),
    radial-gradient(420px 220px at 6% 120%, rgba(91, 69, 200, .22), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .55)); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .55)); }
.hero-in { position: relative; padding: 44px 48px 40px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d8d2ff; background: rgba(155, 139, 255, .13); border: 1px solid rgba(155, 139, 255, .28); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-title { margin-top: 16px; font-size: 46px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.hero-sub { margin-top: 12px; font-size: 17px; line-height: 1.55; color: #b4b9c6; max-width: 56ch; }
.search-form { margin-top: 26px; position: relative; display: flex; align-items: center; height: 58px; padding: 0 8px 0 0; border-radius: 16px; background: rgba(14, 14, 19, .8); border: 1px solid #34333f; transition: border-color .15s, box-shadow .2s; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8); }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 139, 255, .16), 0 14px 34px -18px rgba(0, 0, 0, .8); }
.search-ico { width: 54px; display: grid; place-items: center; color: var(--dim); flex: none; }
.search-input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; color: #fff; padding: 0 4px 0 0; -webkit-appearance: none; appearance: none; }
.search-input::placeholder { color: #7f8796; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-clear { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--dim); flex: none; }
.search-clear:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.search-clear .ico { width: 16px; height: 16px; }
.kbd-hint { font: 600 12px/1 var(--mono); color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; margin: 0 8px; flex: none; }
.search-form:focus-within .kbd-hint { display: none; }
.search-go { height: 42px; flex: none; }
.search-go .ico { display: none; }
@media (max-width: 699px) { .search-go .ico { display: block; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--dim); font-size: 13.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 16px; height: 16px; color: var(--accent); }


.hero-picks { position: absolute; z-index: 1; right: 40px; top: 50%; transform: translateY(-50%); width: 340px; padding: 18px; border-radius: 20px; background: rgba(14, 14, 20, .55); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); display: none; }
.picks-title { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.picks-title .ico { width: 14px; height: 14px; color: var(--star); }
.picks-list { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; transition: background .15s; }
.pick-row:hover { background: rgba(255, 255, 255, .06); }
.pick-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: linear-gradient(135deg, #cfc6ff, #9b8bff); flex: none; }
.pick-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.pick-text b { font-size: 14px; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-text span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-score { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; flex: none; }
.pick-score .star { width: 13px; height: 13px; color: var(--star); }
@media (min-width: 1180px) {
  .hero-picks:not([hidden]) { display: block; }
  .hero.has-picks .hero-in { max-width: 640px; }
}

/* ---------------------------------------------------------------------------------------- toolbar / filters */
.toolbar { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { height: 36px; padding: 0 15px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 550; color: var(--text-2); background: var(--card); border: 1px solid var(--line); white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--line-strong); color: #fff; }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: #fff; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; flex: none; }
.seg-btn { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 550; color: var(--dim); white-space: nowrap; transition: background .15s, color .15s; text-align: center; }
.seg-btn:hover { color: #fff; }
.seg-btn.is-on { color: #fff; background: #302f3c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 14px -6px rgba(0, 0, 0, .6); }
.lbl-short { display: none; }
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tagbar-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.tagbar-label .ico { width: 14px; height: 14px; }
.modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.modbar .tagbar-label { color: #d4b04a; }

.results { margin-top: 26px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 18px; }
.results-lead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.results-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 550; background: var(--accent-soft); border: 1px solid var(--accent-line); color: #fff; max-width: 260px; }
.filter-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filter-pill .ico { width: 13px; height: 13px; stroke-width: 2.4; color: #cfc6ff; flex: none; }
.filter-pill:hover { background: rgba(155, 139, 255, .22); }
.results-busy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); flex: none; }
.results-body { position: relative; min-height: 120px; transition: opacity .2s; }
.results-body.is-loading { opacity: .5; pointer-events: none; }
.slow-note { margin-top: 18px; text-align: center; color: var(--dim); font-size: 13.5px; }
.inline-warn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; font-size: 14px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); color: #fde68a; }
.inline-warn .ico { width: 18px; height: 18px; flex: none; }
.inline-warn span { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------------------------------- grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.card { --hue: 262; position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 20px 40px -30px rgba(0, 0, 0, .9); transition: transform .22s var(--ease), border-color .2s, box-shadow .25s; }
.card:not(.is-preview):hover, .card:not(.is-preview):focus-within { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 46px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(155, 139, 255, .12), 0 0 32px -10px var(--glow); }

.card.is-hidden, .card.is-removed { opacity: .82; }
.card-cover { position: relative; height: 92px; flex: none; overflow: hidden;
  background:
    radial-gradient(130% 160% at 90% -30%, hsl(var(--hue) 90% 66% / .62), transparent 62%),
    radial-gradient(90% 120% at 0% 120%, hsl(var(--hue) 75% 50% / .34), transparent 70%),
    linear-gradient(135deg, hsl(var(--hue) 44% 25%), hsl(var(--hue) 38% 13%)); }
.card-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000); }
.cover-glyph { position: absolute; right: -10px; bottom: -22px; color: hsl(var(--hue) 90% 80%); opacity: .2; transform: rotate(-10deg); }
.cover-glyph .ico { width: 104px; height: 104px; stroke-width: 1.2; }
.cover-top { position: absolute; z-index: 1; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cover-badges { display: inline-flex; gap: 6px; flex: none; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 16px; flex: 1; min-width: 0; }
.card-title { font-size: 16.5px; line-height: 1.3; font-weight: 650; letter-spacing: -.012em; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-link { color: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--r-card); }
.card-by { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--dim); }
.by-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-text b { font-weight: 600; color: var(--text-2); }
.by-time { flex: none; white-space: nowrap; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; height: 26px; overflow: hidden; }
.card-tags.is-empty { visibility: hidden; }
.card-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-rating { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rating-num { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rating-num b { color: #fff; font-weight: 650; }
.rating-none { font-size: 12.5px; color: var(--faint); font-weight: 550; }
.card-stats { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; }
.stat { display: inline-flex; align-items: center; gap: 5px; }
.stat .ico { width: 15px; height: 15px; }
.card.is-preview { pointer-events: none; }

.skel-card { min-height: 296px; }
.skel-card .card-cover { background: none; }
.skel-card .card-cover::after { display: none; }
.sk-line { height: 14px; border-radius: 7px; }
.sk-line.w80 { width: 80%; height: 18px; } .sk-line.w50 { width: 50%; } .sk-line.w65 { width: 65%; margin-top: auto; }
.sk-row { display: flex; gap: 8px; }
.sk-chip { width: 60px; height: 24px; border-radius: 12px; }

/* entrance motion (first paint of a grid / page only; removed for reduced-motion users below) */
/* opacity only: a transform on .page would become the containing block of the fixed phone bars (install / publish) */
.page { animation: fade .3s ease both; }
.grid.is-fresh .card { animation: rise .38s var(--ease) both; animation-delay: calc(min(var(--i, 0), 11) * 28ms); }

/* ---------------------------------------------------------------------------------------- pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, color .15s; }
a.pg:hover { border-color: var(--line-strong); color: #fff; }
.pg.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pg.is-disabled { opacity: .35; }
.pg .ico { width: 16px; height: 16px; }
.pg-nums { display: flex; gap: 6px; align-items: center; }
.pg-gap { color: var(--faint); padding: 0 2px; }
.pg-of { display: none; font-size: 13px; color: var(--dim); }

/* ---------------------------------------------------------------------------------------- empty / gate */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 64px 24px; border: 1px dashed var(--line-strong); border-radius: 20px; background: rgba(29, 28, 37, .5); }
.empty-orb, .gate-orb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 20%, rgba(155, 139, 255, .3), rgba(155, 139, 255, .08)); border: 1px solid rgba(155, 139, 255, .3); box-shadow: 0 14px 40px -14px var(--glow); }
.empty-orb .ico, .gate-orb .ico { width: 30px; height: 30px; }
.empty-orb.is-warn { color: var(--warn); background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, .25), rgba(251, 191, 36, .06)); border-color: rgba(251, 191, 36, .3); box-shadow: none; }
.empty-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.empty-text { max-width: 46ch; color: var(--dim); line-height: 1.6; margin-bottom: 8px; }
.page-gate { display: grid; place-items: center; min-height: 60vh; }
.gate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 560px; padding: 48px 40px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #211f31, #1a1924); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.gate-title { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-top: 8px; }
.gate-text { color: #b4b9c6; line-height: 1.65; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.gate-fine { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* ---------------------------------------------------------------------------------------- toasts */
.toasts { position: fixed; z-index: 160; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; width: min(396px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 14px; background: #262531; border: 1px solid #3b3a48; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .2s, transform .25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px) scale(.98); }
.toast-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.toast-ico .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.tone-ok .toast-ico { background: rgba(74, 222, 128, .14); color: var(--ok); }
.tone-info .toast-ico { background: var(--accent-soft); color: var(--accent); }
.tone-warn .toast-ico { background: rgba(251, 191, 36, .14); color: var(--warn); }
.tone-err .toast-ico { background: rgba(248, 113, 113, .14); color: var(--danger); }
.toast-body { flex: 1; min-width: 0; padding-top: 2px; }
.toast-text { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.35; }
.toast-detail { margin-top: 2px; font-size: 13px; color: var(--dim); line-height: 1.4; }
.toast-act { align-self: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--accent); background: var(--accent-soft); }
.toast-act:hover { background: rgba(155, 139, 255, .22); }
.toast-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--faint); align-self: center; }
.toast-x:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.toast-x .ico { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------------------------- overlays */
.ov-wrap { position: fixed; inset: 0; z-index: 120; }
.ov-wrap.ov-w-dialog { display: grid; place-items: center; padding: 20px; }
.ov-scrim { position: absolute; inset: 0; background: rgba(7, 7, 11, .66); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .18s; }
.ov-wrap.in .ov-scrim { opacity: 1; }
.ov-box { position: relative; display: flex; flex-direction: column; background: #1e1d27; border: 1px solid #35343f; border-radius: 18px; box-shadow: 0 34px 90px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); opacity: 0; transition: opacity .16s, transform .24s var(--ease); outline: 0; overflow: hidden; }
.ov-dialog { width: min(520px, 100%); max-height: calc(100dvh - 40px); transform: translateY(12px) scale(.985); }
.ov-dialog.is-wide { width: min(640px, 100%); }
.ov-wrap.in .ov-box { opacity: 1; transform: none; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 14px 6px 24px; }
.ov-title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.ov-body { padding: 8px 24px 24px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; }
.ov-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ov-sheet { width: 100%; }
.ov-wrap.ov-w-sheet { display: flex; align-items: flex-end; }
.ov-sheet { max-height: 90dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: var(--safe-b); transform: translateY(24px); }
.ov-grab { width: 40px; height: 4px; border-radius: 2px; background: #4a4958; margin: 10px auto 2px; flex: none; }
.confirm { align-items: center; text-align: center; padding-top: 18px; }
.confirm-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.confirm-ico .ico { width: 24px; height: 24px; }
.confirm-ico.is-danger { background: rgba(248, 113, 113, .13); color: var(--danger); }
.confirm-ico.is-warn { background: rgba(251, 191, 36, .13); color: var(--warn); }
.confirm-body { color: var(--text-1); line-height: 1.55; font-size: 15px; }
.confirm-detail { color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.ov-confirm .ov-actions { justify-content: center; width: 100%; }
.ov-confirm .ov-head { padding-bottom: 0; }
.ov-confirm .ov-title { font-size: 19px; }

/* ---------------------------------------------------------------------------------------- forms */
.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label { font-size: 13.5px; font-weight: 650; color: var(--text-1); }
.field-opt { font-weight: 500; color: var(--faint); font-size: 12.5px; }
.field-count { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.field-count.is-warn { color: var(--warn); }
.field-count.is-over { color: var(--danger); }
.field-hint { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.field-err, .form-err { font-size: 13px; line-height: 1.45; color: #fca5a5; }
.field-err:empty, .form-err:empty { display: none; }
.form-err { padding: 10px 14px; border-radius: 10px; background: rgba(248, 113, 113, .09); border: 1px solid rgba(248, 113, 113, .26); }
.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-field); background: var(--field); border: 1px solid var(--line); color: #fff; font-size: 15px; line-height: 1.45; transition: border-color .15s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #7f8796; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 139, 255, .2); }
.textarea { resize: vertical; min-height: 96px; }
.has-error .input, .input[aria-invalid="true"] { border-color: rgba(248, 113, 113, .6); }
.has-error .input:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.dlg-text { color: var(--text-2); line-height: 1.6; font-size: 14.5px; }
.dlg-text b { color: #fff; }
.dlg-loading { display: flex; align-items: center; gap: 10px; padding: 36px 0; justify-content: center; color: var(--dim); }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-chips .chip { height: 32px; font-size: 13px; }

.callout { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); background: var(--card); color: var(--text-2); }
.callout > .ico { width: 18px; height: 18px; margin-top: 2px; }
.callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.callout-link { font-weight: 650; color: var(--accent); }
.callout-link:hover { color: #c2b8ff; }
.c-warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .26); color: #fde7a6; }
.c-warn > .ico { color: var(--warn); }
.c-err { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .28); color: #fecaca; }
.c-err > .ico { color: var(--danger); }
.c-ok { background: rgba(74, 222, 128, .07); border-color: rgba(74, 222, 128, .26); color: #bbf7d0; }
.c-ok > .ico { color: var(--ok); }
.c-info > .ico { color: var(--accent); }

/* tag editor */
.tagbox { display: flex; flex-direction: column; gap: 8px; }
.tagbox-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px; padding: 7px 10px; border-radius: var(--r-field); background: var(--field); border: 1px solid var(--line); cursor: text; transition: border-color .15s, box-shadow .2s; }
.tagbox-field:hover { border-color: var(--line-strong); }
.tagbox-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 139, 255, .2); }
.tag-chip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 550; background: var(--accent-soft); border: 1px solid var(--accent-line); color: #fff; max-width: 100%; }
.tag-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-x { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #cfc6ff; flex: none; }
.tag-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tag-x .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.tag-input { flex: 1; min-width: 120px; height: 32px; background: transparent; border: 0; outline: 0; font-size: 15px; color: #fff; padding: 0 4px; }
.tag-input::placeholder { color: #7f8796; }
.tagbox-foot { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); }
.tag-hint { flex: 1; min-width: 0; }
.tag-preview { color: var(--accent); font-weight: 600; }
.tag-count { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-suggest .tag-btn { height: 28px; }

/* cloud config picker */
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color .15s, background .15s, box-shadow .2s; }
.pick:hover { border-color: var(--line-strong); background: #211f2a; }
.pick.is-on { border-color: var(--accent-line); background: linear-gradient(90deg, rgba(155, 139, 255, .14), rgba(155, 139, 255, .04)); box-shadow: inset 0 0 0 1px rgba(155, 139, 255, .16); }
.pick-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #4a4958; flex: none; display: grid; place-items: center; transition: border-color .15s; }
.pick.is-on .pick-radio { border-color: var(--accent); }
.pick.is-on .pick-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.pick-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.pick-name { font-size: 15px; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--dim); }
.pick-meta .pill-product { background: rgba(255, 255, 255, .05); backdrop-filter: none; -webkit-backdrop-filter: none; height: 24px; }
.pick-err:empty { display: none; }
.pick-err { margin-top: 12px; }
.empty.is-compact { padding: 36px 20px; }

/* ---------------------------------------------------------------------------------------- page heads */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-title { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.page-sub { margin-top: 8px; color: var(--dim); font-size: 15.5px; max-width: 60ch; }
.dim { color: var(--dim); }

/* ---------------------------------------------------------------------------------------- detail */
.crumbs { margin-bottom: 16px; }
.crumb-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--dim); transition: color .15s, background .15s; }
.crumb-back:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.crumb-back .ico { width: 18px; height: 18px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px 32px; align-items: start; grid-template-areas: "head head" "main actions" "main extra"; }
.d-head { grid-area: head; --hue: 262; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 24px 50px -34px rgba(0, 0, 0, .9); }
.d-actions { grid-area: actions; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.d-extra { grid-area: extra; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-cover { position: relative; height: 112px; overflow: hidden;
  background:
    radial-gradient(120% 170% at 88% -40%, hsl(var(--hue) 90% 66% / .66), transparent 62%),
    radial-gradient(80% 120% at 0% 130%, hsl(var(--hue) 75% 50% / .36), transparent 70%),
    linear-gradient(135deg, hsl(var(--hue) 44% 26%), hsl(var(--hue) 38% 13%)); }
.d-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0 / 18px 18px; -webkit-mask-image: linear-gradient(120deg, transparent 25%, #000); mask-image: linear-gradient(120deg, transparent 25%, #000); }
.d-cover .cover-glyph { right: 24px; bottom: -34px; }
.d-cover .cover-glyph .ico { width: 150px; height: 150px; }
.d-cover .cover-top { left: 24px; right: 24px; top: 20px; }
.d-cover.skel { background: linear-gradient(90deg, #1d1c25 25%, #26252f 50%, #1d1c25 75%); background-size: 200% 100%; border-radius: 0; }
.d-head-in { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-title { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.d-by { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d-by-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 15px; color: var(--text-2); }
.d-by-text b { color: #fff; font-weight: 650; overflow-wrap: anywhere; }
.d-by-sub { font-size: 13px; color: var(--dim); }
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d-tags .tag { height: 30px; font-size: 13.5px; max-width: 200px; }
.av-md { width: 40px; height: 40px; font-size: 16px; }
.d-notice:empty { display: none; }

.tabs { display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--dim); transition: color .15s, background .15s; white-space: nowrap; }
.tab-btn:hover { color: #fff; }
.tab-btn.is-on { color: #fff; background: #302f3c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 14px -6px rgba(0, 0, 0, .6); }
.tab-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--dim); font-variant-numeric: tabular-nums; }
.tab-btn.is-on .tab-count { background: var(--accent-soft); color: #d8d2ff; }
.tabpanel { display: flex; flex-direction: column; gap: 18px; min-width: 0; outline: 0; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; color: var(--text-1); max-width: 72ch; }
.desc.is-empty { color: var(--dim); font-style: italic; }
.based-on { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.based-on:hover { border-color: var(--accent-line); background: #211f2a; }
.based-on > .ico:first-child { color: var(--accent); }
.based-on > span { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; overflow-wrap: anywhere; }
.based-lbl { color: var(--dim); font-size: 13px; }
.based-on b { color: #fff; font-weight: 650; }
.based-by { color: var(--dim); font-size: 13.5px; }
.safe-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(155, 139, 255, .06); border: 1px solid rgba(155, 139, 255, .18); color: var(--text-2); font-size: 14px; line-height: 1.6; }
.safe-note > .ico { color: var(--accent); margin-top: 2px; flex: none; }
.safe-note b { color: #fff; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 20px 40px -32px rgba(0, 0, 0, .9); min-width: 0; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.side-title .ico { width: 15px; height: 15px; }
.side-note { font-size: 13.5px; color: var(--dim); line-height: 1.55; margin-bottom: 14px; }
.side-note b { color: var(--text-1); }
.side-note.is-warn { color: #f5d27a; margin: 12px 0 0; }
.install-card { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(160deg, #24223a, #1d1c27 60%); border-color: rgba(155, 139, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 40px -20px var(--glow); }
.install-btn { width: 100%; }
.install-card .link-btn { align-self: center; }
.install-hint { font-size: 13px; line-height: 1.5; color: var(--dim); text-align: center; }
.install-hint.is-warn { color: #f5d27a; }
.install-status:empty { display: none; }
.install-result { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .26); animation: rise .3s var(--ease); }
.result-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #d1fadf; }
.result-title .ico { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }
.result-title b { color: #fff; overflow-wrap: anywhere; }
.result-sub { font-size: 13px; color: #a7d9b8; line-height: 1.45; }
.result-live { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #b9f5cf; line-height: 1.45; }
.result-live .ico { width: 16px; height: 16px; flex: none; }
.result-live .spin { border-top-color: var(--ok); }
.result-live.is-idle { color: #a7d9b8; }
.rating-sum { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.rating-big { display: flex; align-items: baseline; gap: 4px; }
.rating-avg { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.rating-of { font-size: 14px; color: var(--faint); font-weight: 600; }
.rating-meta { display: flex; flex-direction: column; gap: 6px; }
.rating-n { font-size: 13px; color: var(--dim); }
.rating-mine { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rating-mine-lbl { font-size: 13.5px; font-weight: 650; color: var(--text-1); }
.rating-status { font-size: 13px; color: var(--dim); line-height: 1.45; min-height: 19px; }
.rating-status.is-warn { color: #f5d27a; }
.kvs { display: flex; flex-direction: column; margin: 0; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--dim); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.btn-col .btn { justify-content: flex-start; }
.admin-card { border-color: rgba(251, 191, 36, .22); }
.admin-card .side-title { color: #f5d27a; }
.report-row { padding: 0 4px; }
.link-btn.is-quiet { color: var(--dim); }
.link-btn.is-quiet:hover { color: #fff; }
.install-bar { display: contents; }

/* ---------------------------------------------------------------------------------------- comments */
.comments { display: flex; flex-direction: column; gap: 24px; }
.composer { display: flex; gap: 14px; align-items: flex-start; }
.composer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.composer-ta { min-height: 88px; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.composer-foot .field-count { margin-right: auto; }
.composer-keys { font-size: 12px; color: var(--faint); }
.composer-note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px dashed var(--line-strong); color: var(--dim); font-size: 14px; }
.composer-note .ico { width: 18px; height: 18px; flex: none; }
.comment-list { display: flex; flex-direction: column; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-soft); animation: rise .25s var(--ease); }
.comment:first-child { border-top: 0; padding-top: 4px; }
.comment-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.comment-author { font-weight: 650; color: #fff; overflow-wrap: anywhere; }
.comment-time, .comment-edited { color: var(--dim); }
.comment-edited { font-style: italic; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: var(--text-1); }
.comment-actions { display: flex; gap: 14px; margin-top: 2px; }
.comment-actions .link-btn { font-size: 13px; color: var(--dim); padding: 4px 0; }
.comment-actions .link-btn:hover { color: #fff; }
.comment-actions .link-btn.is-danger:hover { color: #fca5a5; }
.comment-actions .link-btn .ico { width: 14px; height: 14px; }
.comment.is-removing { opacity: .4; pointer-events: none; }
.comment-edit { display: flex; flex-direction: column; gap: 8px; }
.comments-foot { display: flex; flex-direction: column; gap: 12px; }
.comments-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--dim); }
.comments-empty .ico { width: 28px; height: 28px; color: var(--faint); margin-bottom: 6px; }
.skel-comment { border-top: 0; }
.sk-av { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------------------------------- my configs */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tile-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(155, 139, 255, .22); flex: none; }
.tile-val { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-lbl { font-size: 13px; color: var(--dim); margin-top: 2px; }
.tile-sub { font-size: 12px; color: var(--faint); }
.usage { margin-bottom: 24px; }
.usage-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--dim); }
.usage-lbl { display: inline-flex; align-items: center; gap: 8px; }
.usage-lbl .ico { width: 15px; height: 15px; }
.usage-bar { width: 160px; height: 6px; border-radius: 3px; background: #2a2935; overflow: hidden; flex: none; }
.usage-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7b6bdf, var(--accent)); }
.mine-list { display: flex; flex-direction: column; gap: 14px; }
.mine-row { --hue: 262; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 12px 24px; padding: 16px 20px 16px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.mine-row:hover { border-color: var(--line-strong); }
.mine-row.is-hidden, .mine-row.is-removed { opacity: .8; }
.mine-row.is-removing { opacity: .4; pointer-events: none; }
.mine-thumb { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: hsl(var(--hue) 90% 82%); background: radial-gradient(120% 140% at 85% -10%, hsl(var(--hue) 85% 62% / .5), transparent 60%), linear-gradient(135deg, hsl(var(--hue) 38% 22%), hsl(var(--hue) 34% 13%)); border: 1px solid rgba(255, 255, 255, .06); }
.mine-thumb .ico { width: 28px; height: 28px; }
.mine-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mine-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.mine-title a:hover { color: #d8d2ff; }
.mine-title .badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
.mine-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--dim); }
.mine-sub .pill-product { background: rgba(255, 255, 255, .05); backdrop-filter: none; -webkit-backdrop-filter: none; height: 24px; }
.mine-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mine-stats { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); min-width: 150px; font-variant-numeric: tabular-nums; }
.mine-stat { display: flex; align-items: center; gap: 8px; }
.mine-stat .ico { width: 15px; height: 15px; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.skel-row { grid-template-columns: 64px 1fr; }

/* ---------------------------------------------------------------------------------------- publish */
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.pub-form { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pub-step { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 16px -2px var(--glow); flex: none; }
.step-sub { color: var(--dim); font-size: 14px; line-height: 1.55; margin-top: -6px; }
.pub-side { position: sticky; top: calc(var(--tb-h) + 24px); }
.pub-side-in { display: flex; flex-direction: column; gap: 14px; }
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.preview-head .side-title { margin: 0; }
.preview-note { font-size: 12.5px; color: var(--faint); }
.preview-by { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dim); }
.preview-by b { color: var(--text-1); }
.pub-rules { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--dim); }
.pub-rules li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.pub-rules .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.pub-rules b { color: var(--text-1); }
.pub-submit { min-width: 220px; }
.pub-bar { display: flex; }
.based-chip { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; }
.based-chip > .ico { width: 16px; height: 16px; color: var(--accent); }
.based-chip > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.based-chip b { color: #fff; }
.based-chip .icon-btn { width: 32px; height: 32px; }
.pub-gate:empty { display: none; }

/* ---------------------------------------------------------------------------------------- keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse-a { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------------------------------------------------------------------------------- responsive */
@media (max-width: 1099px) {
  :root { --gut: 24px; }
  .hero-in { padding: 36px 36px 34px; }
  .hero-title { font-size: 40px; }
}
@media (max-width: 699px) {
  :root { --gut: 16px; --tb-h: 56px; }
  body { font-size: 15px; }
  .topbar-in { gap: 12px; }
  .brand-word { gap: 10px; }
  .brand-hub { font-size: 14px; }
  .topnav, .top-publish { display: none; }
  .user-chip { padding: 0 5px; min-height: 44px; min-width: 44px; justify-content: center; }
  .user-name { display: none; }
  .page { padding: 16px var(--gut) calc(88px + var(--safe-b)); }
  .footer { margin-bottom: 64px; }
  .footer-in { flex-direction: column; gap: 16px; padding-bottom: 28px; }
  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(18, 18, 24, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); }
  .tabbar.is-gated { display: none; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--dim); }
  .tab .ico { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: #fff; background: var(--accent-soft); }
  .tab[aria-current="page"] .ico { color: var(--accent); }
  .frame[data-route="detail"] .tabbar { display: none; }
  .frame[data-route="detail"] .footer { margin-bottom: 0; }
  .hero { border-radius: 20px; }
  .hero-in { padding: 24px 20px 22px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15.5px; }
  .search-form { height: 54px; margin-top: 20px; }
  .search-ico { width: 44px; }
  .kbd-hint { display: none; }
  .search-go { padding: 0; width: 44px; height: 44px; }
  .search-go .btn-lbl { display: none; }
  .hero-points { display: none; }
  .toolbar { margin-top: 20px; }
  .results-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 40px; flex: none; }
  .seg { display: flex; }
  .seg-btn { flex: 1; height: 38px; padding: 0 6px; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .tagbar { flex-wrap: nowrap; overflow-x: auto; margin: 12px calc(var(--gut) * -1) 0; padding: 2px var(--gut); scrollbar-width: none; }
  .tagbar::-webkit-scrollbar { display: none; }
  .tagbar .tag, .tagbar-label { flex: none; }
  .tagbar .tag { height: 32px; }
  .results { margin-top: 20px; }
  .results-title { font-size: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card:not(.is-preview):hover { transform: none; }
  .pager { gap: 6px; }
  .pg-nums { display: none; }
  .pg-of { display: inline; flex-basis: 100%; text-align: center; order: 5; }
  .pg-nav { flex: 1; max-width: 160px; height: 44px; }
  .empty { padding: 44px 18px; }
  .gate { padding: 32px 22px; border-radius: 20px; }
  .gate-title { font-size: 24px; }
  .gate-actions { flex-direction: column; width: 100%; }
  .gate-actions .btn { width: 100%; }
  .toasts { right: 12px; left: 12px; width: auto; bottom: calc(76px + var(--safe-b)); }
  .frame[data-route="detail"] ~ .toasts { bottom: calc(92px + var(--safe-b)); }
  html.ov-open .toasts { bottom: auto; top: calc(var(--safe-t) + 10px); }
  .ov-body { padding: 4px 18px 20px; }
  .ov-head { padding: 8px 8px 4px 20px; }
  .ov-actions .btn { flex: 1; }
  .banner-in { padding: 10px var(--gut); font-size: 13px; flex-wrap: wrap; row-gap: 4px; }
  .banner-in p { flex-basis: calc(100% - 40px); }
  .btn { height: 46px; }
  .btn-sm { height: 44px; }
}
@media (max-width: 1099px) {
  .d-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px 24px; }
  .pub-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .mine-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .mine-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .d-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "actions" "main" "extra"; }
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-side { position: static; }
  .pub-side .card { max-width: 340px; }
}
@media (max-width: 699px) {
  .page-head { margin-bottom: 18px; }
  .page-title { font-size: 28px; }
  .page-head .btn { width: 100%; }
  .d-title { font-size: 26px; }
  .d-head { border-radius: 18px; }
  .d-cover { height: 84px; }
  .d-cover .cover-top { left: 16px; right: 16px; top: 14px; }
  .d-cover .cover-glyph .ico { width: 110px; height: 110px; }
  .d-head-in { padding: 16px 18px 20px; gap: 14px; }
  .page-detail { padding-bottom: calc(110px + var(--safe-b)); }
  .install-bar { display: block; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(18, 18, 24, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .8); }
  .install-bar .btn { height: 52px; }
  .install-card { padding: 0; gap: 10px; background: none; border: 0; box-shadow: none; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; justify-content: center; height: 44px; }
  .desc { font-size: 15.5px; }
  .side-card { padding: 18px; border-radius: 16px; }
  .rate-star { width: 48px; height: 48px; }
  .rate-star .ico { width: 34px; height: 34px; }
  .rating-avg { font-size: 38px; }
  .composer { flex-direction: column; gap: 10px; }
  .composer > .avatar { display: none; }
  .composer-keys { display: none; }
  .input, .tag-input, .search-input { font-size: 16px; }
  .comment-actions .link-btn { padding: 10px 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .tile-val { font-size: 21px; }
  .usage-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .usage-bar { width: 100%; }
  .mine-row { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; gap: 12px 14px; }
  .mine-thumb { width: 48px; height: 48px; border-radius: 13px; }
  .mine-thumb .ico { width: 22px; height: 22px; }
  .mine-stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
  .mine-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mine-actions .btn { padding: 0 6px; height: 44px; flex-direction: column; gap: 2px; font-size: 12px; }
  .mine-actions .btn .ico { width: 16px; height: 16px; }
  .pub-step { padding: 18px 16px; border-radius: 18px; }
  .pub-form { gap: 16px; }
  .pub-side .card { max-width: none; }
  .page-publish { padding-bottom: calc(110px + var(--safe-b)); }
  .pub-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(18, 18, 24, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); }
  .pub-submit { width: 100%; min-width: 0; }
  .pick { padding: 14px; }
}

@media (min-width: 1500px) {
  :root { --max: 1320px; }
}


/* phone: every tap target >= 44 px (the audit in README lists what was checked) */
@media (max-width: 699px) {
  .brand { min-height: 44px; }
  .chip { height: 44px; }
  .seg-btn { height: 44px; }
  .tagbar .tag, .d-tags .tag, .tag-suggest .tag-btn { height: 40px; }
  .crumb-back { height: 44px; }
  .link-btn { min-height: 44px; }
  .comment-actions .link-btn { min-height: 44px; padding: 0 4px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .reason-chips .chip { height: 44px; }
  .tag-x { width: 32px; height: 32px; }
  .tag-chip { height: 38px; }
  .icon-btn { width: 44px; height: 44px; }
  .search-clear { width: 44px; height: 44px; }
  .pg-nav { height: 44px; }
}

/* the page name ("Config Hive") is longer than it used to be: keep the brand bar on one line on the smallest phones */
@media (max-width: 380px) {
  .topbar-in { gap: 8px; }
  .brand-word { gap: 8px; }
  .brand-hub { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .skel, .boot-hero { animation: none; }
}

/* ==== white label: ShadowX - GENERATED by _gen_shadow_brand_css.py, do not edit between the markers ==== */
:root[data-brand="shadow"] { --accent: #F2B01E; --accent-hover: #E0A010; --accent-ink: #1A1204; --accent-soft: rgba(242, 176, 30, .13); --accent-line: rgba(242, 176, 30, .4); --glow: rgba(242, 176, 30, .35); }
:root[data-brand="shadow"] body::before { background: radial-gradient(900px 460px at 82% -8%, rgba(242, 176, 30, .11), transparent 62%),
    radial-gradient(760px 440px at -6% 104%, rgba(184, 127, 0, .08), transparent 60%); }
:root[data-brand="shadow"] ::selection { background: rgba(242, 176, 30, .35); }
:root[data-brand="shadow"] .boot-logo { background: linear-gradient(135deg, #FFD777 0%, #F2B01E 45%, #B87F00 100%); }
:root[data-brand="shadow"] .logo::before { background: linear-gradient(135deg, #FFD777 0%, var(--accent) 45%, #B87F00 100%); }
:root[data-brand="shadow"] .topnav-link[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(242, 176, 30, .2); }
:root[data-brand="shadow"] .banner.b-info { background: rgba(242, 176, 30, .08); border-bottom-color: rgba(242, 176, 30, .2); }
:root[data-brand="shadow"] .banner-link:hover { color: #FFD777; }
:root[data-brand="shadow"] .btn-primary:hover:not(:disabled):not(.is-disabled) { background: #FFC83D; }
:root[data-brand="shadow"] .link-btn:hover { color: #FFD777; }
:root[data-brand="shadow"] .badge.b-accent { color: #FFE3A1; background: rgba(60, 44, 10, .7); }
:root[data-brand="shadow"] .avatar { color: #1A1204; }
:root[data-brand="shadow"] .hero { background: linear-gradient(155deg, #24211a 0%, #1c1a15 48%, #17161e 100%); }
:root[data-brand="shadow"] .hero-art { background: radial-gradient(520px 260px at 88% -10%, rgba(242, 176, 30, .30), transparent 70%),
    radial-gradient(420px 220px at 6% 120%, rgba(184, 127, 0, .22), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px; }
:root[data-brand="shadow"] .eyebrow { color: #FFE3A1; background: rgba(242, 176, 30, .13); border: 1px solid rgba(242, 176, 30, .28); }
:root[data-brand="shadow"] .search-form:focus-within { box-shadow: 0 0 0 4px rgba(242, 176, 30, .16), 0 14px 34px -18px rgba(0, 0, 0, .8); }
:root[data-brand="shadow"] .pick-rank { background: linear-gradient(135deg, #FFD777, #F2B01E); }
:root[data-brand="shadow"] .filter-pill .ico { color: #FFD777; }
:root[data-brand="shadow"] .filter-pill:hover { background: rgba(242, 176, 30, .22); }
:root[data-brand="shadow"] .card:not(.is-preview):hover, :root[data-brand="shadow"] .card:not(.is-preview):focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 46px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(242, 176, 30, .12), 0 0 32px -10px var(--glow); }
:root[data-brand="shadow"] .empty-orb, :root[data-brand="shadow"] .gate-orb { background: radial-gradient(circle at 30% 20%, rgba(242, 176, 30, .3), rgba(242, 176, 30, .08)); border: 1px solid rgba(242, 176, 30, .3); }
:root[data-brand="shadow"] .gate { background: linear-gradient(160deg, #24211a, #1b1913); }
:root[data-brand="shadow"] .toast-act:hover { background: rgba(242, 176, 30, .22); }
:root[data-brand="shadow"] .input:focus { box-shadow: 0 0 0 3px rgba(242, 176, 30, .2); }
:root[data-brand="shadow"] .callout-link:hover { color: #FFD777; }
:root[data-brand="shadow"] .tagbox-field:focus-within { box-shadow: 0 0 0 3px rgba(242, 176, 30, .2); }
:root[data-brand="shadow"] .tag-x { color: #FFD777; }
:root[data-brand="shadow"] .pick.is-on { background: linear-gradient(90deg, rgba(242, 176, 30, .14), rgba(242, 176, 30, .04)); box-shadow: inset 0 0 0 1px rgba(242, 176, 30, .16); }
:root[data-brand="shadow"] .tab-btn.is-on .tab-count { color: #FFE3A1; }
:root[data-brand="shadow"] .safe-note { background: rgba(242, 176, 30, .06); border: 1px solid rgba(242, 176, 30, .18); }
:root[data-brand="shadow"] .install-card { background: linear-gradient(160deg, #28241b, #1d1c27 60%); border-color: rgba(242, 176, 30, .28); }
:root[data-brand="shadow"] .tile-ico { border: 1px solid rgba(242, 176, 30, .22); }
:root[data-brand="shadow"] .usage-bar i { background: linear-gradient(90deg, #E0A010, var(--accent)); }
:root[data-brand="shadow"] .mine-title a:hover { color: #FFE3A1; }

/* logo: the real ShadowX logo (served by the loader host) instead of the tinted Ethereal mask */
:root[data-brand="shadow"] .logo { width: 52px; }
:root[data-brand="shadow"] .logo::before { background: url(/loader/assets/logo.png) center / contain no-repeat; -webkit-mask: none; mask: none; }
:root[data-brand="shadow"] .boot-logo { width: 52px; background: url(/loader/assets/logo.png) center / contain no-repeat; -webkit-mask: none; mask: none; opacity: .8; }
/* ==== end white label ==== */
