:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #f1eadf;
  --surface-3: #e9dfd0;
  --text: #2f2a24;
  --muted: #746b60;
  --border: #d9cdbd;
  --primary: #a43b2b;
  --primary-strong: #84291f;
  --primary-soft: #f2dcd6;
  --gold: #b38a3e;
  --green: #456c56;
  --blue: #486a83;
  --warning: #a5641f;
  --danger: #a3312a;
  --shadow: 0 16px 45px rgba(61, 46, 31, 0.12);
  --shadow-sm: 0 6px 20px rgba(61, 46, 31, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 244px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
:focus-visible { outline: 3px solid rgba(164, 59, 43, 0.28); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 70px; display: flex; align-items: center; gap: 18px;
  padding: 0 24px; background: rgba(255, 253, 248, 0.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--primary), #7d241b); box-shadow: 0 8px 18px rgba(164,59,43,.23); }
.brand-title { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; font-weight: 700; line-height: 1.3; }
.brand-subtitle { font-size: 11px; color: var(--muted); margin-top: 2px; }
.topbar-spacer { flex: 1; }
.class-switcher { display: flex; align-items: center; gap: 8px; }
.class-switcher select { min-width: 190px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 999px; background: var(--surface-2); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-name { font-size: 13px; font-weight: 600; }
.user-role { color: var(--muted); font-size: 11px; }

.sidebar {
  position: fixed; top: 70px; bottom: 0; left: 0; width: var(--sidebar); padding: 18px 14px 24px;
  background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto;
}
.nav-section-label { margin: 9px 12px 8px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; transition: .18s ease; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.nav-item svg { width: 19px; height: 19px; }
.sidebar-task { margin-top: 20px; padding: 14px; border-radius: 13px; background: linear-gradient(145deg, #f7ebe5, #efe1d5); border: 1px solid #e3c9bc; }
.sidebar-task h4 { margin: 0 0 7px; font-family: serif; font-size: 14px; }
.sidebar-task p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.task-progress { height: 7px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.7); overflow: hidden; }
.task-progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

.main { margin-left: var(--sidebar); padding: 28px; min-height: calc(100vh - 70px); }
.page { max-width: 1500px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-eyebrow { color: var(--primary); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.page-title { margin: 5px 0 8px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.page-description { margin: 0; max-width: 760px; color: var(--muted); line-height: 1.75; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 650; font-size: 13px; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 7px 15px rgba(164,59,43,.18); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-secondary:hover { border-color: #baa998; background: #fff; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-small { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 38px; padding: 0; }
.btn svg { width: 17px; height: 17px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-body { padding: 20px; }
.card-title { margin: 0; font-family: serif; font-size: 18px; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 19px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -22px; top: -25px; width: 92px; height: 92px; border-radius: 50%; background: var(--primary-soft); opacity: .65; }
.stat-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.stat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); }
.stat-icon.green { color: var(--green); background: #e1eee5; }
.stat-icon.blue { color: var(--blue); background: #e2ecf2; }
.stat-icon.gold { color: #8a651d; background: #f1e8cf; }
.stat-value { margin-top: 18px; font-size: 30px; font-weight: 800; position: relative; z-index: 1; }
.stat-label { margin-top: 3px; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
.stat-note { margin-top: 8px; font-size: 11px; color: var(--green); position: relative; z-index: 1; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; }
.stage-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stage { padding: 17px; border-radius: 13px; background: var(--surface-2); border: 1px solid transparent; }
.stage.active { background: var(--primary-soft); border-color: #ddb7aa; }
.stage.complete { background: #e8f0e9; border-color: #c9ddce; }
.stage-number { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 12px; }
.stage h4 { margin: 12px 0 6px; font-size: 14px; }
.stage p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.activity-list { display: grid; gap: 12px; }
.activity-item { display: flex; gap: 10px; align-items: flex-start; }
.activity-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); flex: none; }
.activity-text { font-size: 13px; line-height: 1.55; }
.activity-time { color: var(--muted); font-size: 11px; margin-top: 2px; }

.artifact-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 18px; align-items: start; }
.sticky-panel { position: sticky; top: 92px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: #554d44; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: #fffdfa; color: var(--text); padding: 10px 11px; transition: .18s ease; }
.input, .select { min-height: 40px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(164,59,43,.12); }
.help { font-size: 11px; color: var(--muted); line-height: 1.5; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkbox-chip { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 12px; }
.checkbox-chip input { accent-color: var(--primary); }
.form-actions { display: flex; gap: 8px; margin-top: 16px; }

.filterbar { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 150px 150px; gap: 10px; margin-bottom: 16px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search-wrap .input { padding-left: 36px; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.artifact-card { overflow: hidden; transition: .2s ease; }
.artifact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.artifact-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-2); }
.artifact-content { padding: 15px; }
.artifact-title { margin: 0; font-family: serif; font-size: 17px; line-height: 1.4; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: #62594f; font-size: 10px; font-weight: 650; }
.badge.primary { background: var(--primary-soft); color: var(--primary-strong); }
.badge.green { background: #e5efe7; color: #3d654d; }
.badge.blue { background: #e6eef3; color: #43647b; }
.badge.gold { background: #f2ead4; color: #7e5d1e; }
.badge.status-published { background: #e2efe5; color: var(--green); }
.badge.status-draft { background: #f3e9d4; color: #86611e; }
.badge.status-offline { background: #e8e7e5; color: #67615b; }
.artifact-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 61px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; margin-top: 12px; border-top: 1px solid var(--border); }
.contributor { font-size: 11px; color: var(--muted); }
.card-actions { display: flex; gap: 5px; }
.empty-state { padding: 55px 24px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); background: rgba(255,255,255,.45); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 13px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }

.museum-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.museum-card { overflow: hidden; }
.museum-cover { position: relative; aspect-ratio: 16/8.5; background: linear-gradient(135deg,#6f2b23,#b85b45); overflow: hidden; }
.museum-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.museum-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(26,16,10,.72),transparent 70%); }
.museum-cover-title { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 14px; color: #fff; }
.museum-cover-title h3 { margin: 0; font-family: serif; font-size: 20px; }
.museum-cover-title p { margin: 5px 0 0; font-size: 11px; opacity: .85; }
.museum-card-body { padding: 16px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-track { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.progress-label { font-size: 11px; color: var(--muted); }
.museum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mini-stat { padding: 9px; border-radius: 9px; background: var(--surface-2); text-align: center; }
.mini-stat strong { display: block; font-size: 16px; }
.mini-stat span { color: var(--muted); font-size: 10px; }

.editor-shell { display: grid; grid-template-columns: 240px minmax(420px, 1fr) 340px; gap: 14px; align-items: start; }
.editor-panel { min-height: calc(100vh - 130px); }
.editor-outline { position: sticky; top: 90px; padding: 14px; }
.outline-head { padding: 8px 9px 13px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.outline-head strong { display: block; font-family: serif; }
.outline-head small { color: var(--muted); }
.outline-list { display: grid; gap: 4px; }
.outline-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--muted); font-size: 12px; }
.outline-item:hover { background: var(--surface-2); color: var(--text); }
.outline-item.active { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.outline-item.indent { padding-left: 28px; font-size: 11px; }
.outline-count { margin-left: auto; min-width: 23px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-2); font-size: 10px; }
.editor-center { padding: 22px; }
.editor-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.editor-title-row h2 { margin: 0; font-family: serif; font-size: 24px; }
.editor-right { position: sticky; top: 90px; overflow: hidden; }
.tabbar { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.tab { padding: 12px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.right-content { padding: 14px; max-height: calc(100vh - 180px); overflow-y: auto; }
.picker-list { display: grid; gap: 10px; margin-top: 12px; }
.picker-item { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.picker-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 7px; }
.picker-item h5 { margin: 0 0 3px; font-size: 12px; }
.picker-item p { margin: 0; color: var(--muted); font-size: 10px; }
.picker-item .btn { margin-top: 7px; }
.issue-list { display: grid; gap: 8px; }
.issue { display: flex; gap: 8px; padding: 9px; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.issue.error { background: #f7e2df; color: #852f28; }
.issue.ok { background: #e6f0e8; color: #3d654d; }
.exhibit-list { display: grid; gap: 10px; margin-top: 16px; }
.exhibit-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.exhibit-row img { width: 70px; height: 58px; object-fit: cover; border-radius: 8px; }
.exhibit-row h4 { margin: 0 0 4px; font-size: 13px; }
.exhibit-row p { margin: 0; font-size: 11px; color: var(--muted); }
.exhibit-actions { display: flex; gap: 4px; }

.exhibition-page { margin: -28px; background: #f8f4ec; min-height: calc(100vh - 70px); }
.exhibition-hero { min-height: 470px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #4d251e; color: #fff; }
.exhibition-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.exhibition-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(110deg,rgba(36,20,15,.85),rgba(36,20,15,.25) 65%,rgba(36,20,15,.6)); }
.exhibition-hero-content { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 58px; }
.exhibition-kicker { font-size: 12px; letter-spacing: .2em; opacity: .8; }
.exhibition-hero h1 { max-width: 850px; margin: 13px 0 12px; font-family: serif; font-size: clamp(38px, 6vw, 72px); line-height: 1.12; }
.exhibition-hero h2 { max-width: 720px; margin: 0; font-weight: 400; font-size: 18px; opacity: .86; }
.exhibition-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 12px; opacity: .85; }
.exhibition-hero-actions { display: flex; gap: 9px; margin-top: 24px; }
.exhibition-nav { position: sticky; top: 70px; z-index: 20; display: flex; justify-content: center; gap: 7px; padding: 10px 20px; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.exhibition-nav a { padding: 8px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.exhibition-nav a:hover { background: var(--surface-2); color: var(--primary); }
.exhibition-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.exhibition-intro { padding: 70px 0; display: grid; grid-template-columns: 220px 1fr; gap: 50px; }
.section-label { font-family: serif; font-size: 14px; color: var(--primary); letter-spacing: .15em; }
.exhibition-intro p { margin: 0; font-family: serif; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.9; color: #41372e; }
.exhibition-section { padding: 70px 0; border-top: 1px solid var(--border); }
.exhibition-section-head { display: grid; grid-template-columns: 220px 1fr; gap: 50px; margin-bottom: 38px; }
.exhibition-section-head h2 { margin: 0; font-family: serif; font-size: clamp(28px, 4vw, 46px); line-height: 1.25; }
.exhibition-section-head p { margin: 12px 0 0; color: var(--muted); line-height: 1.85; }
.exhibition-artifacts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.exhibition-artifact { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.exhibition-artifact img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.exhibition-artifact-body { padding: 22px; }
.exhibition-artifact h3 { margin: 0 0 8px; font-family: serif; font-size: 23px; }
.exhibition-artifact .artifact-base { color: var(--muted); font-size: 11px; }
.exhibition-artifact .interpretation { margin: 15px 0 0; line-height: 1.8; font-size: 13px; }
.exhibition-conclusion { margin: 50px auto 70px; padding: 50px; border-radius: 24px; color: #fff; background: linear-gradient(145deg,#7e2b20,#ae4a37); }
.exhibition-conclusion h2 { margin: 0 0 18px; font-family: serif; font-size: 34px; }
.exhibition-conclusion p { margin: 0; font-family: serif; font-size: 19px; line-height: 1.9; opacity: .94; }
.comment-section { padding: 65px 0 90px; border-top: 1px solid var(--border); }
.comment-layout { display: grid; grid-template-columns: 360px 1fr; gap: 26px; }
.comment-list { display: grid; gap: 13px; }
.comment { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.comment-author { font-weight: 700; font-size: 12px; }
.comment-time { margin-left: auto; color: var(--muted); font-size: 10px; }
.comment p { margin: 0; font-size: 13px; line-height: 1.7; }
.comment-reply { margin-top: 11px; padding: 10px; border-radius: 9px; background: var(--surface-2); font-size: 12px; }

.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.review-card { padding: 18px; }
.review-score { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 800; }
.review-fields { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }
.score-field { padding: 10px; border-radius: 9px; background: var(--surface-2); }
.score-field label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.score-field input { width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; }
th { background: var(--surface-2); color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(37,26,19,.58); backdrop-filter: blur(4px); }
.modal { position: relative; width: min(760px,100%); max-height: 92vh; overflow-y: auto; border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(35,20,12,.3); }
.modal.small { width: min(520px,100%); }
.modal.wide { width: min(1050px,100%); }
.modal-header { padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-family: serif; font-size: 24px; }
.modal-header p { margin: 7px 40px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-body { padding: 22px 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 1; }
.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.detail-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 13px; background: var(--surface-2); }
.detail-section { margin-top: 17px; }
.detail-section h4 { margin: 0 0 7px; font-size: 12px; color: var(--primary); }
.detail-section p { margin: 0; line-height: 1.75; font-size: 13px; }
.share-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; }
.qr-box { padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.share-link { display: flex; gap: 7px; }
.share-link .input { min-width: 0; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; min-width: 260px; max-width: 420px; padding: 13px 16px; border-radius: 11px; color: #fff; background: #342c25; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease; }
.toast.success { background: #385f47; }
.toast.error { background: #8b3029; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.mobile-nav { display: none; }
.mobile-menu-button { display: none; }

@media (max-width: 1200px) {
  .artifact-grid, .museum-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-shell { grid-template-columns: 210px minmax(380px,1fr); }
  .editor-right { grid-column: 1 / -1; position: static; min-height: auto; }
  .right-content { max-height: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .topbar { padding: 0 15px; }
  .brand { min-width: 0; flex: 1; }
  .brand-title { font-size: 14px; }
  .brand-subtitle { display: none; }
  .class-switcher { display: none; }
  .user-chip { display: none; }
  .sidebar { display: none; }
  .main { margin: 0; padding: 20px 15px 86px; }
  .mobile-nav { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: 9px; display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,253,248,.96); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
  .mobile-nav button { display: grid; place-items: center; gap: 3px; padding: 6px 2px; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
  .mobile-nav button.active { color: var(--primary); }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-menu-button { display: inline-flex; }
  .artifact-layout, .dashboard-grid, .comment-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .editor-shell { grid-template-columns: 1fr; }
  .editor-outline { position: static; min-height: auto; }
  .editor-panel { min-height: auto; }
  .exhibition-page { margin: -20px -15px -86px; }
  .exhibition-intro, .exhibition-section-head { grid-template-columns: 1fr; gap: 16px; }
  .exhibition-hero-content { width: calc(100% - 30px); }
  .exhibition-nav { top: 70px; justify-content: flex-start; overflow-x: auto; }
  .review-fields { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .page-header { flex-direction: column; }
  .stats-grid, .artifact-grid, .museum-grid, .review-grid, .exhibition-artifacts { grid-template-columns: 1fr; }
  .stage-timeline { grid-template-columns: 1fr; }
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar .search-wrap { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid, .share-layout { grid-template-columns: 1fr; }
  .detail-image { max-height: 280px; }
  .exhibition-hero { min-height: 520px; }
  .exhibition-conclusion { padding: 30px 24px; }
  .exhibition-container { width: calc(100% - 28px); }
  .modal-body, .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
}
.exhibition-nav button { padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.exhibition-nav button:hover { background: var(--surface-2); color: var(--primary); }
