/* Chickxel community pages. Base look follows the homepage (docs/style.css). */
:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --soft: #16171c;
  --side: #121317;
  --card: #15161b;
  --hover: #1d1f25;
  --ink: #eceef2;
  --ink-deep: #ffffff;
  --muted: #9599a6;
  --body: #c3c6cf;
  --lead: #a9adb9;
  --line: #2c2e36;
  --line-soft: #212329;
  --accent: #ffd02f;
  --accent-soft: rgba(255, 208, 47, .1);
  --gold: #e8b93a;
  --blue: #8aa0ff;
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .12);
  --green: #5fd18b;
  --shadow: rgba(0, 0, 0, .45);
  --top-bg: rgba(14, 15, 19, .88);
  --checker-a: #1b1c21;
  --checker-b: #23252b;
  --max: 1200px;
  --top: 72px;
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; letter-spacing: -.018em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img.pixel, .pixel img { image-rendering: pixelated; }
code, kbd { font-family: "JetBrains Mono", Consolas, "SF Mono", monospace; font-size: .86em; letter-spacing: 0; }
code { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 5px; padding: .05em .35em; color: var(--ink-deep); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.filled { fill: currentColor; stroke: none; }
.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.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; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--top-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.top .bar { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-deep); font-size: 16px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.brand-mark img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav { display: flex; gap: 6px; margin-left: auto; font-size: 13.5px; font-weight: 650; min-width: 0; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--ink-deep); color: #111216; }
.lang { position: relative; display: flex; align-items: center; color: var(--muted); }
.lang .icon { position: absolute; left: 12px; width: 15px; height: 15px; pointer-events: none; }
.lang .icon.chev { left: auto; right: 10px; width: 14px; height: 14px; color: #6b6f7e; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--soft); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 30px 8px 34px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.lang select:hover, .lang select:focus { border-color: var(--line); background-color: var(--hover); outline: none; }
.account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-link { display: inline-flex; align-items: center; gap: 8px; max-width: 180px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-soft); color: var(--ink); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.account-link:hover { text-decoration: none; background: var(--hover); }
.account-link[aria-current="page"] { border-color: var(--line); }
.account-link .name { overflow: hidden; text-overflow: ellipsis; }
.login-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #17140a; font-size: 13.5px; font-weight: 750; white-space: nowrap; }
.login-link:hover { text-decoration: none; background: #ffdc5c; }

/* Avatars */
.avatar { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #2a2c34; color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.3; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--hover); }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .vote:focus-visible, .page-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17140a; }
.btn.primary:hover { background: #ffdc5c; }
.btn.danger { color: var(--red); border-color: rgba(255, 107, 107, .35); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 7px 12px; font-size: 13px; gap: 6px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.provider { width: 100%; justify-content: flex-start; padding: 14px 20px; font-size: 15.5px; gap: 14px; }
.btn.provider .icon { width: 22px; height: 22px; }
.btn.provider.github { background: #24292f; border-color: #3a4048; color: #fff; }
.btn.provider.github:hover { background: #32383f; }
.btn.provider.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.provider.discord:hover { background: #4752c4; border-color: #4752c4; }
.btn.provider.google { background: #fff; border-color: #fff; color: #1f1f1f; }
.btn.provider.google:hover { background: #eef0f3; }

/* Page layout */
main { flex: 1 0 auto; }
.page-main { padding: 40px 0 72px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.page-head h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 40px); font-weight: 650; line-height: 1.1; letter-spacing: -.05em; color: var(--ink-deep); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.toolbar .grow { flex: 1 1 auto; }
.tabs { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 999px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"], .tab[aria-selected="true"] { background: var(--ink-deep); color: #111216; }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .icon { position: absolute; left: 12px; z-index: 1; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--red); }
input[type="text"], input[type="search"], input[type="url"], textarea, select.input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input[type="text"]:focus, input[type="search"]:focus, textarea:focus, select.input:focus { outline: none; border-color: var(--blue); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.toolbar input[type="text"], .toolbar input[type="search"] { width: 220px; max-width: 100%; padding-top: 8px; padding-bottom: 8px; border-radius: 999px; font-size: 14px; }
.search input[type="search"] { padding-left: 36px; }
.form-card { max-width: 720px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; padding: 26px 24px 24px; }
.form-card + .form-card, .form-card + .login-card { margin-top: 18px; }
.me-links { margin-top: 18px; }
.form-card h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -.03em; color: var(--ink-deep); }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 22px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--soft); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.file-drop:hover, .file-drop.drag, .file-drop:focus-within { border-color: var(--blue); background: var(--hover); }
.file-drop .icon { width: 28px; height: 28px; color: var(--ink); }
.file-drop strong { color: var(--ink); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.preview-box { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.preview-info { font-size: 14px; color: var(--body); }
.preview-pix { height: 280px; border-radius: 14px; }
.issues { margin: 14px 0 0; padding: 14px 18px; border: 1px solid rgba(255, 107, 107, .35); border-radius: 14px; background: var(--red-soft); color: #ffd3d3; font-size: 14px; }
.issues strong { display: block; margin-bottom: 6px; color: #fff; }
.issues ul { margin: 0; padding-left: 1.2em; }
.issues li { margin: 3px 0; }
.issues code { background: rgba(0, 0, 0, .25); border-color: transparent; color: #fff; }
.steps { margin: 0 0 22px; padding-left: 1.3em; color: var(--body); }
.steps li { margin: 6px 0; }
.note { background: var(--accent-soft); border: 1px solid rgba(255, 208, 47, .28); border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 15px; color: #efdfae; }
.note p { margin: 0; }
.note.plain { background: var(--soft); border-color: var(--line-soft); color: var(--body); }

/* Pixel viewer: integer scaling on a checkerboard */
.pixbox { display: flex; overflow: hidden; background-color: var(--checker-a); background-image: linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%), linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.pixbox > * { margin: auto; }
.pixbox img, .pixbox canvas { display: block; flex: none; max-width: none; image-rendering: pixelated; }
.pixbox.empty { color: var(--muted); }
.pixbox.empty .icon { width: 36px; height: 36px; opacity: .6; }

/* Cards / grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.art-card, .pkg-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.art-card:hover, .pkg-card:hover { text-decoration: none; border-color: var(--line); box-shadow: var(--shadow) 0 12px 30px -8px; transform: translateY(-2px); }
.art-card .pixbox, .pkg-card .pixbox { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line-soft); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.card-title { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.card-meta .by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-meta .by span { overflow: hidden; text-overflow: ellipsis; }
.card-summary { margin: 0; font-size: 13.5px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.counts { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.counts span { display: inline-flex; align-items: center; gap: 4px; }
.counts .icon { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--body); background: var(--soft); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
a.chip:hover { text-decoration: none; border-color: var(--line); color: var(--ink); }
.chip.gold { color: var(--gold); background: var(--accent-soft); border-color: rgba(255, 208, 47, .25); }
.chip.warn { color: var(--red); background: var(--red-soft); border-color: rgba(255, 107, 107, .3); }
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.empty-state .icon { width: 32px; height: 32px; margin-bottom: 8px; }
.empty-state p { margin: 4px 0; }
.empty-state .buttons { margin-top: 14px; }
.empty-state.center .buttons { justify-content: center; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }

/* Detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.detail.with-more { grid-template-areas: "view side" "more side"; grid-template-rows: auto 1fr; row-gap: 24px; }
.d-view { grid-area: view; }
.d-side { grid-area: side; }
.d-more { grid-area: more; min-width: 0; }
.d-more > :first-child { margin-top: 0; }
.viewer { background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; }
.viewer .pixbox { height: min(70vh, 720px); min-height: 260px; overflow: auto; }
.viewer .pixbox.empty { height: 220px; min-height: 0; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.viewer-bar .buttons { flex-wrap: nowrap; gap: 2px; }
.viewer-bar .btn.small { padding: 6px 8px; }
.side h1 { margin: 6px 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 650; line-height: 1.15; letter-spacing: -.045em; color: var(--ink-deep); }
.desc { margin: 14px 0; color: var(--body); white-space: pre-wrap; }
.author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; }
.author:hover { text-decoration: none; color: var(--ink-deep); }
.author .handle { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0; padding: 16px 18px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 14px; font-size: 14px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.banner { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; background: var(--red-soft); border: 1px solid rgba(255, 107, 107, .3); color: #ffd3d3; font-size: 14px; }
.section-h { margin: 32px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-deep); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line-soft); padding: 10px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 12.5px; font-weight: 750; background: var(--side); }
td { color: var(--body); }

/* Votes */
.votes { display: inline-flex; gap: 6px; }
.vote { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--body); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.vote:hover { background: var(--hover); color: var(--ink); }
.vote[aria-pressed="true"].up { background: var(--accent-soft); border-color: rgba(255, 208, 47, .5); color: var(--accent); }
.vote[aria-pressed="true"].down { background: var(--red-soft); border-color: rgba(255, 107, 107, .5); color: var(--red); }
.vote:disabled { opacity: .6; cursor: progress; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.page-link:hover { text-decoration: none; background: var(--hover); }
.page-link[aria-current="page"] { background: var(--ink-deep); border-color: var(--ink-deep); color: #111216; }
.page-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 2px; }

/* Profile */
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.profile h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; letter-spacing: -.045em; color: var(--ink-deep); line-height: 1.15; }
.profile p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Login */
.login-card { max-width: 440px; margin: 24px auto 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px; padding: 32px 28px 28px; box-shadow: var(--shadow) 0 18px 48px -12px; }
.login-card h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 650; letter-spacing: -.05em; color: var(--ink-deep); }
.login-card > p { margin: 0 0 22px; color: var(--muted); }
.provider-list { display: flex; flex-direction: column; gap: 10px; }
.dev-login { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; gap: 8px; }
.dev-login input { flex: 1; min-width: 0; }
.app-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(255, 208, 47, .28); color: #efdfae; font-size: 14.5px; }
.app-note img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.app-note strong { display: block; color: #fff6d6; }
.fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* Admin */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; }
.report .pixbox { width: 96px; height: 96px; border-radius: 10px; }
.report h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink-deep); letter-spacing: -.02em; }
.report .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.report .note-text { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); color: var(--body); font-size: 14px; white-space: pre-wrap; }
.report .actions { margin: 12px 0 0; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-tools input { width: 240px; max-width: 100%; }
.user-result { margin-top: 12px; }

/* Legal text */
.legal { max-width: 820px; }
.legal h1 { margin: 6px 0 6px; font-size: clamp(30px, 4vw, 40px); font-weight: 650; letter-spacing: -.05em; color: var(--ink-deep); }
.legal h2 { margin: 34px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-deep); }
.legal p, .legal li { color: var(--body); line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal .draft { margin: 16px 0 24px; }
mark.review { background: var(--accent); color: #17140a; border-radius: 4px; padding: 0 4px; font-weight: 700; }
html[lang="ko"] [data-lang="en"], html[lang="en"] [data-lang="ko"] { display: none; }

/* Not found */
.nf { text-align: center; padding: 60px 0; }
.nf .code { font-size: 72px; font-weight: 800; letter-spacing: -.06em; color: var(--gold); line-height: 1; }
.nf h1 { margin: 12px 0 8px; font-size: 28px; color: var(--ink-deep); letter-spacing: -.04em; }
.nf p { color: var(--muted); margin: 0 0 22px; }
.nf .buttons { justify-content: center; }

/* Dialog */
dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: var(--shadow) 0 24px 60px -10px; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.03em; color: var(--ink-deep); }
dialog p { margin: 0 0 16px; color: var(--body); }
.radio-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; }
.radio-list label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line-soft); cursor: pointer; font-size: 14.5px; }
.radio-list label:hover { border-color: var(--line); }
.radio-list input { accent-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Toasts */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(520px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 14px; background: #24262e; border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; box-shadow: var(--shadow) 0 12px 30px -6px; pointer-events: auto; animation: toast-in .18s ease-out; }
.toast .icon { margin-top: 2px; }
.toast.error { border-color: rgba(255, 107, 107, .5); }
.toast.error .icon { color: var(--red); }
.toast.ok .icon { color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

footer { background: #08090b; border-top: 1px solid var(--line-soft); color: #8b8f9b; padding: 32px 0; font-size: 14px; margin-top: auto; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer strong { color: #fff; }
footer a { color: #d5d7de; }

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail.with-more { grid-template-areas: "view" "side" "more"; grid-template-rows: none; }
}

@media (max-width: 680px) {
  :root { --top: 60px; }
  .wrap { width: calc(100% - 32px); }
  .top .bar { padding: 0 12px; gap: 8px; }
  .brand-text { display: none; }
  .nav { gap: 2px; font-size: 13px; }
  .nav a { padding: 8px 9px; }
  .nav .hide-sm { display: none; }
  .lang .icon:not(.chev) { display: none; }
  .lang .icon.chev { right: 7px; }
  .lang select { padding: 7px 24px 7px 10px; font-size: 13px; }
  .account-link { padding: 3px; }
  .account-link .name { display: none; }
  .login-link { padding: 8px 10px; }
  .login-link .label { display: none; }
  .page-main { padding: 26px 0 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 14.5px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .toolbar input[type="text"], .toolbar input[type="search"] { width: 100%; }
  .toolbar .search, .toolbar form { flex: 1 1 100%; }
  .viewer .pixbox { height: min(60vh, 420px); min-height: 200px; }
  .form-card { padding: 20px 16px; }
  .login-card { padding: 26px 18px 22px; }
  .report { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .report .pixbox { width: 64px; height: 64px; }
  .profile .avatar.lg { width: 56px; height: 56px; }
}
