/* 主题变量：:root 为浅色（默认），[data-theme="dark"] 覆盖为深色 */
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --bg-soft: #f1f4f8;
  --card: #ffffff;
  --border: #dfe5ee;
  --text: #1b2430;
  --muted: #6b7787;
  --accent: #1a73e8;
  --accent-2: #e5484d;
  --ok: #1a7f37;
  --on-accent: #ffffff;
  --accent-hover: #1765cc;
  --header-bg: rgba(255, 255, 255, .9);
  --img-bg: #e8ecf2;
  --hover-border: #b9c6d8;
  --tag-bg: #eef1f6;
  --tag-hot-border: #f3c4c6;
  --tag-hot-bg: #fdecec;
  --tag-feat-text: #a06800;
  --tag-feat-border: #f0dcae;
  --tag-feat-bg: #fdf6e3;
  --tag-off-text: #6f4bd8;
  --tag-off-border: #ddd0f5;
  --tag-off-bg: #f3eeff;
  --flash-ok-bg: #e8f6ed;
  --flash-ok-border: #b7e0c6;
  --flash-ok-text: #14742f;
  --flash-err-bg: #fdecec;
  --flash-err-border: #f5c2c5;
  --flash-err-text: #c02b31;
  --flash-warn-bg: #fdf6e3;
  --flash-warn-border: #f0dcae;
  --flash-warn-text: #96650a;
  --danger-border: #e0aeb0;
  --danger-text: #c02b31;
  --danger-hover: #fdecec;
  --shadow: 0 12px 30px rgba(23, 43, 77, .14);
  --choice-on-bg: #e8f1fd;
  --hero-glow: rgba(26, 115, 232, .12);
  --radius: 10px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #161b22;
  --card: #1a2029;
  --border: #262d38;
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #3ea6ff;
  --accent-2: #ff6b6b;
  --ok: #3fb950;
  --on-accent: #06121f;
  --accent-hover: #63b8ff;
  --header-bg: rgba(14, 17, 22, .92);
  --img-bg: #0b0e13;
  --hover-border: #334052;
  --tag-bg: #1f2937;
  --tag-hot-border: #4a2226;
  --tag-hot-bg: #241417;
  --tag-feat-text: #ffd166;
  --tag-feat-border: #4a3f22;
  --tag-feat-bg: #241f14;
  --tag-off-text: #c9a7ff;
  --tag-off-border: #3d3157;
  --tag-off-bg: #1e1a2b;
  --flash-ok-bg: #10251a;
  --flash-ok-border: #1f5136;
  --flash-ok-text: #57d38c;
  --flash-err-bg: #2a1416;
  --flash-err-border: #5c2429;
  --flash-err-text: #ff8b8b;
  --flash-warn-bg: #2a2414;
  --flash-warn-border: #5c4b24;
  --flash-warn-text: #ffcc66;
  --danger-border: #7d2b2b;
  --danger-text: #ff7b72;
  --danger-hover: #2d1517;
  --shadow: 0 12px 30px rgba(0, 0, 0, .45);
  --choice-on-bg: #12212f;
  --hero-glow: rgba(62, 166, 255, .18);
}

/* 上传页水印预览用的字体（烧录到图片里用的是服务端的思源黑体） */
@font-face {
  font-family: 'wm-bold';
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-serif';
  src: url('../fonts/IBMPlexSerif-Bold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-script';
  src: url('../fonts/Pacifico-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-mono';
  src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-narrow';
  src: url('../fonts/Oswald-Medium.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-tech';
  src: url('../fonts/Orbitron-Medium.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-serif-hi';
  src: url('../fonts/PlayfairDisplay-Medium.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'wm-script-hi';
  src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 6px 10px; border-radius: 6px; color: var(--muted); font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-soft); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font-size: 14px; transition: .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-danger { border-color: var(--danger-border); color: var(--danger-text); }
.btn-danger:hover { background: var(--danger-hover); color: var(--danger-text); }

/* ---------- hero ---------- */
.hero {
  padding: 60px 0 40px;
  background: radial-gradient(1200px 400px at 50% -80px, var(--hero-glow), transparent);
  text-align: center;
}
.hero h1 { font-size: 34px; margin: 0 0 10px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 22px; }
.search-form input { flex: 1; }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%; padding: 9px 12px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: var(--accent); }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
.form-row { display: flex; gap: 14px; }
.form-row > div { flex: 1; }
.form-card {
  max-width: 620px; margin: 32px auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.form-actions { margin-top: 22px; display: flex; gap: 10px; align-items: center; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 26px 0; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.stat b { display: block; font-size: 24px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- section ---------- */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 13px; }
.section-head .more:hover { color: var(--accent); }

/* ---------- photo grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--hover-border); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--img-bg); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px 12px; }
.card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.card .meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.card .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11px;
  background: var(--tag-bg); color: var(--muted); border: 1px solid var(--border);
}
.tag.hot { color: var(--accent-2); border-color: var(--tag-hot-border); background: var(--tag-hot-bg); }
.tag.featured { color: var(--tag-feat-text); border-color: var(--tag-feat-border); background: var(--tag-feat-bg); }
.tag.offline { color: var(--tag-off-text); border-color: var(--tag-off-border); background: var(--tag-off-bg); }
/* 已提交的表单进入"提交中"，避免连点重复提交 */
form.is-submitting { opacity: .72; pointer-events: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ribbon { position: absolute; top: 8px; left: 8px; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 24px; margin: 26px 0; }
.detail .photo-box { background: var(--img-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.detail .photo-box img { width: 100%; cursor: zoom-in; }
.detail h1 { font-size: 22px; margin: 0 0 8px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.info-list li span:first-child { color: var(--muted); }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* ---------- flash ---------- */
.flash-wrap { margin: 16px auto 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; border: 1px solid; }
.flash.success { background: var(--flash-ok-bg); border-color: var(--flash-ok-border); color: var(--flash-ok-text); }
.flash.error { background: var(--flash-err-bg); border-color: var(--flash-err-border); color: var(--flash-err-text); }
.flash.warning { background: var(--flash-warn-bg); border-color: var(--flash-warn-border); color: var(--flash-warn-text); }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
.rank-no { width: 40px; color: var(--accent); font-weight: 700; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-soft); font-size: 13px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--muted); }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.notice { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.notice h3 { margin: 0 0 6px; font-size: 15px; }
.notice p { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

footer.site-footer {
  border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 0;
  color: var(--muted); font-size: 13px; text-align: center;
}
footer.site-footer a { color: var(--accent); }

/* ---------- register code ---------- */
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }
#code-tip { margin-top: 6px; font-size: 12px; }

/* ---------- header dropdown menu ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; z-index: 60;
  display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--text); }
.avatar-sm {
  display: inline-flex; width: 22px; height: 22px; font-size: 12px;
  vertical-align: middle; margin-right: 2px;
}

/* ---------- 头像 ---------- */
img.avatar, img.avatar-sm { object-fit: cover; background: var(--bg-soft); }
img.avatar { display: block; }
img.avatar-sm { display: inline-block; vertical-align: middle; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }
.avatar-row { display: flex; gap: 14px; align-items: center; }
.avatar-row-main { flex: 1; min-width: 0; }
.avatar-row input[type="file"] { width: auto; max-width: 100%; padding: 6px 8px; font-size: 13px; }
.avatar-row .muted { margin: 6px 0 0; font-size: 12px; }

/* ---------- upload wizard ---------- */
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.choice {
  display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 16px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); cursor: pointer; transition: .15s;
}
.choice:hover { border-color: var(--accent); }
.choice.on { border-color: var(--accent); background: var(--choice-on-bg); }
.choice input { display: none; }
.choice-title { font-size: 17px; font-weight: 600; }
.choice .muted { font-size: 12px; }
.step-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--border);
}
.step-head .btn { margin-left: auto; }

/* ---------- my uploads card extra ---------- */
.card-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.card-wrap .card { border: none; border-radius: 0; }
.card-wrap .card:hover { transform: none; }
.card-extra { padding: 10px 12px; border-top: 1px dashed var(--border); font-size: 12px; }
.card-extra .btn { margin-top: 8px; }
.card-extra textarea { font-size: 12px; }

/* ---------- detail sub block ---------- */
.sub-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.sub-block h3 { margin: 0 0 8px; font-size: 15px; }
.sub-block p { margin: 6px 0; font-size: 13px; white-space: pre-wrap; }

/* ---------- admin layout ---------- */
.admin-badge {
  padding: 2px 10px; border-radius: 20px; font-size: 12px;
  background: var(--tag-bg); border: 1px solid var(--border); color: var(--muted);
}
.admin-layout {
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px; max-width: 1200px; margin: 24px auto 40px; padding: 0 16px;
  align-items: start;
}
.admin-side { position: sticky; top: 76px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px;
  border: 1px solid transparent;
}
.admin-nav a:hover { background: var(--bg-soft); color: var(--text); }
.admin-nav a.active {
  background: var(--bg-soft); border-color: var(--border);
  color: var(--accent); font-weight: 600;
}
.admin-main { min-width: 0; }
.admin-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.admin-head h2 { margin: 0; font-size: 20px; }
.admin-head-actions { margin-left: auto; font-size: 13px; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head .more { margin-left: auto; color: var(--muted); font-size: 13px; }
.panel-head .more:hover { color: var(--accent); }
.admin-main .panel { margin-bottom: 16px; }

.row-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
a.row-thumb-link { display: inline-block; line-height: 0; border-radius: 6px; }
a.row-thumb-link:hover img.row-thumb,
a.row-thumb-link:focus img.row-thumb { outline: 2px solid var(--accent); outline-offset: 1px; }
a.row-thumb-link:hover { opacity: .88; }
.row-actions { display: flex; flex-direction: column; gap: 6px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.input-sm { padding: 4px 8px; font-size: 12px; width: auto; }
.inline-form .input-sm { width: 120px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input[type="text"] { flex: 1; min-width: 200px; }
.filter-bar select, .filter-bar .btn { width: auto; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.plain-list li:last-child { border-bottom: none; }
.plain-list li > div { flex: 1; min-width: 0; }

.appeal-list { display: flex; flex-direction: column; gap: 14px; }
.appeal-head { display: flex; gap: 12px; align-items: flex-start; }
.appeal-head > div { flex: 1; min-width: 0; }
.appeal-head .muted { font-size: 12px; }
.appeal-reason { margin-top: 10px; font-size: 13px; }
.appeal-reason p { margin: 4px 0 0; white-space: pre-wrap; }
.appeal-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.appeal-form label { margin-top: 0; }
.appeal-form .row-actions { flex-direction: row; margin-top: 10px; }

/* ---------- 详情页作者卡片 ---------- */
.author-card {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 12px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  transition: .15s;
}
.author-card:hover { border-color: var(--accent); }
.author-card .author-meta { flex: 1; min-width: 0; }
.author-card b { display: block; font-size: 14px; }
.author-card em { display: block; font-style: normal; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-card .author-go { color: var(--muted); font-size: 12px; white-space: nowrap; }
.author-card:hover .author-go { color: var(--accent); }

/* ---------- 图片放大灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; padding: 24px;
  background: rgba(0, 0, 0, .94);
  overflow: auto; text-align: center;
}
.lightbox.open { display: block; }
.lightbox img {
  margin: 0 auto; max-width: 100%; max-height: calc(100vh - 48px);
  object-fit: contain; cursor: zoom-in;
}
.lightbox.actual img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-tip {
  position: fixed; left: 0; right: 0; bottom: 12px;
  color: var(--muted); font-size: 12px; text-align: center; pointer-events: none;
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- 上传页：第二条文字水印编辑器 ---------- */
.wm-editor {
  margin-top: 14px; padding: 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.wm-editor-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wm-switch {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--text); font-size: 14px; cursor: pointer;
}
.wm-hint { margin-left: auto; font-size: 12px; }
.wm-editor.off .wm-switch { color: var(--muted); }
.wm-stage {
  display: flex; justify-content: center; padding: 10px;
  background: var(--img-bg); border: 1px solid var(--border); border-radius: 8px;
}
.wm-wrapper {
  position: relative; display: inline-block; max-width: 100%; line-height: 0;
  cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.wm-wrapper.dragging { cursor: grabbing; }
.wm-wrapper img { display: block; width: auto; height: auto; max-width: 100%; max-height: 62vh; }
.wm-overlay {
  position: absolute; transform: translate(-50%, -50%);
  white-space: nowrap; color: #fff; font-weight: 600; pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.wm-controls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-top: 12px;
}
.wm-controls label { margin-top: 0; }
.wm-val { color: var(--accent); }
.wm-controls input[type="range"] {
  width: 100%; height: 24px; padding: 0;
  background: transparent; border: none; accent-color: var(--accent);
}

@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .hero h1 { font-size: 26px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-cols { grid-template-columns: 1fr; }
}
