:root {
  --red: #8C1C13;
  --red-deep: #6E140E;
  --red-soft: #F7E5DF;
  --brand-red: #D91516;
  --brand-cream: #F1C7A4;
  --cream: #FBF7F0;
  --cream-2: #F2E9DB;
  --card: #FFFDF9;
  --on-red: #FBF1E6;
  --ink: #2B211B;
  --gray: #6E6055;
  --gray-light: #A2938779;
  --line: rgba(43, 33, 27, 0.12);
  --stage: #171110;
  --radius: 10px;
  --radius-lg: 18px;
}

/* 演示端深色主题 */
.theme-dark {
  --red: #D91516;
  --red-deep: #A80F10;
  --red-soft: rgba(217, 21, 22, 0.14);
  --cream: #171110;
  --cream-2: #241B17;
  --card: #1E1613;
  --on-red: #FFF6EA;
  --ink: #F4E9DC;
  --gray: #B3A294;
  --line: rgba(241, 199, 164, 0.18);
}

.theme-dark .entry-card { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

.theme-dark .field input::placeholder { color: #8B7A6C; }

.theme-dark .form-error {
  color: #FFB3A7;
  background: rgba(217, 21, 22, 0.16);
}

/* 品牌 LOGO */
.brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-logo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "SF Pro Text", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* ============ 入口页 ============ */
.entry-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background:
    linear-gradient(0deg, rgba(140, 28, 19, 0.03), rgba(140, 28, 19, 0.03)),
    var(--cream);
}

.entry-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px 26px;
  box-shadow: 0 22px 60px rgba(43, 33, 27, 0.1);
}

.seal {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border: 1px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
}

.entry-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.entry-sub {
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 18px;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.04em;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.field input:focus {
  background: var(--card);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 21, 22, 0.14);
}

.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}

.field textarea:focus {
  background: var(--card);
  border-color: var(--red);
}

.btn-primary {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--on-red);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn-primary:active { transform: scale(0.98); background: var(--red-deep); }

a.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--red-deep);
  background: var(--red-soft);
  border-radius: 8px;
}

.entry-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray);
}

.entry-foot a { color: var(--gray); text-decoration: none; }

.entry-foot.is-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.entry-privacy {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--gray);
  opacity: 0.78;
}

/* ============ 观看页 ============ */
body.viewer {
  position: fixed;
  inset: 0;
  background: var(--stage);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* 打印时隐藏 PDF 画面，避免"打印成 PDF"外传 */
@media print {
  body.viewer { display: none !important; }
}

#stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

/* 页面小于屏幕时居中；放大超出屏幕时左上对齐并可拖动 */
#canvasWrap {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  height: max-content;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdfCanvas {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  background: #fff;
  visibility: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* 翻页时保留的上一页快照，与新页交叉淡入 */
.page-ghost {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.page-ghost.is-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  #pdfCanvas, .page-ghost { transition: none; }
}

#watermark {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

#watermark span {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(140, 28, 19, 0.14);
  white-space: nowrap;
}

/* 切后台后的遮挡层 */
.privacy-mask {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage);
  color: #F4E9DC;
}

.privacy-mask[hidden] { display: none; }

.privacy-inner { text-align: center; }

.privacy-inner svg { color: #E7C9A9; }

.privacy-inner p {
  margin: 16px 0 6px;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.privacy-inner small {
  font-size: 12px;
  color: #B3A294;
  letter-spacing: 0.04em;
}

.page-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  padding: 5px 11px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: #F4E9DC;
  background: rgba(23, 17, 16, 0.56);
  border: 1px solid rgba(244, 233, 220, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 加载动画 */
.loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--stage);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(241, 199, 164, 0.18);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #B3A294;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

/* 启动页 */
#splash {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--stage);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { text-align: center; max-width: 460px; }

.splash-logo { margin-bottom: 26px; }

.splash-logo img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 250px;
  height: auto;
}

.splash-btn {
  min-width: 200px;
  height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #FBF1E6;
  font-size: 15px;
  letter-spacing: 0.2em;
  transition: transform 0.12s ease, background 0.15s ease;
}

/* 底部免责声明：小小字 */
.splash-disclaimer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0 24px;
  font-size: 11px;
  line-height: 17px;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(244, 233, 220, 0.5);
}

.splash-btn:active { background: var(--red-deep); transform: scale(0.98); }

/* 竖屏提示 */
#rotateMask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(23, 17, 16, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#rotateMask.show { display: grid; }

.rotate-inner { text-align: center; color: #F4E9DC; }

.rotate-inner svg {
  color: #E7C9A9;
  animation: tilt 2.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes tilt {
  0%, 30% { transform: rotate(0deg); }
  60%, 90% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rotate-inner svg { animation: none; transform: rotate(-90deg); }
}

.rotate-inner p {
  margin: 20px 0 6px;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.rotate-inner small { font-size: 12px; color: #B6A597; letter-spacing: 0.04em; }

/* 菜单按钮 */
#menuBtn {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 12;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 28, 19, 0.18);
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.94);
  color: var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#menuBtn.is-open { transform: rotate(90deg); }

/* 工具栏 */
#toolbar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 11;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100vw - 88px);
  padding: 5px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--red-deep);
  border: 1px solid rgba(241, 199, 164, 0.3);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

#toolbar::-webkit-scrollbar { display: none; }

#toolbar.is-open { transform: translate(-50%, 0); }

.tool-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 9px 0 4px;
  margin-right: 2px;
  border-right: 1px solid rgba(241, 199, 164, 0.22);
}

.tool-logo img {
  display: block;
  height: 24px;
  width: auto;
}

.tool {
  flex: 0 0 auto;
  width: 52px;
  padding: 5px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F1C7A4;
  transition: background 0.15s ease, transform 0.12s ease;
}

.tool:active { background: rgba(255, 247, 236, 0.16); transform: scale(0.96); }

@media (hover: hover) {
  .tool:hover { background: rgba(255, 247, 236, 0.1); }
}

.tool svg { width: 20px; height: 20px; }

.tool .icon-play { display: none; }

.tool.is-off .icon-play { display: block; }

.tool.is-off .icon-pause { display: none; }

.tool span {
  font-size: 11px;
  line-height: 13px;
  color: rgba(244, 233, 220, 0.75);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tool.is-off { color: rgba(244, 233, 220, 0.5); opacity: 1; }

.tool.is-off span { color: rgba(244, 233, 220, 0.5); }

/* 窄屏（多数手机横屏）进一步压缩，保证整条菜单不溢出 */
@media (max-width: 620px) {
  .tool { width: 46px; }
  .tool svg { width: 18px; height: 18px; }
  .tool span { font-size: 10px; }
  .tool-logo { padding: 0 7px 0 2px; }
  .tool-logo img { height: 18px; }
}

/* 提示 */
#toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  transform: translate(-50%, 12px);
  max-width: 80vw;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 18px;
  color: #F4E9DC;
  background: rgba(23, 17, 16, 0.9);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 空状态 */
.empty-state {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  line-height: 24px;
}

/* 弹窗 */
.modal {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 17, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal-card {
  width: 100%;
  max-width: 400px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 22px 20px 20px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(14px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-card { transform: translateY(0); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gray);
}

.modal-body .field input,
.modal-body .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  -webkit-appearance: none;
}

.modal-body .field textarea { resize: none; line-height: 22px; }

.modal-body .field input:focus,
.modal-body .field textarea:focus {
  background: #FFFDF9;
  border-color: var(--red);
}

.modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--gray);
}

.share-text {
  margin: 14px 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 21px;
  color: var(--ink);
  background: #FFFDF9;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-all;
}

.modal-again {
  display: block;
  margin: 14px auto 0;
  font-size: 12px;
}

/* ============ 后台控件统一（红色主题） ============ */
.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea {
  background: #FFFDF9;
  border: 1px solid rgba(140, 28, 19, 0.22);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  box-shadow: none;
}

.admin-page .field input,
.admin-page .field select {
  height: 46px;
  padding: 0 14px;
}

.admin-page .field textarea {
  padding: 12px 14px;
  line-height: 22px;
}

.admin-page .field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238C1C13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
}

.admin-page .field input::placeholder,
.admin-page .field textarea::placeholder { color: #A29387; }

.admin-page .field input:focus,
.admin-page .field select:focus,
.admin-page .field textarea:focus {
  background-color: #FFFDF9;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(140, 28, 19, 0.12);
}

/* 文件上传 */
.file-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  background: #FFFDF9;
  border: 1px dashed rgba(140, 28, 19, 0.32);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input .file-btn {
  flex: 0 0 auto;
  padding: 5px 12px;
  background: var(--red);
  color: var(--on-red);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.file-input .file-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-input:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(140, 28, 19, 0.12);
}

/* 按钮与表格统一红色主题 */
.admin-page .btn-small {
  height: 42px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.admin-page .btn-small:active { transform: scale(0.97); background: var(--red-deep); }

.admin-page .btn-ghost {
  background: #FFFDF9;
  color: var(--red-deep);
  border-color: rgba(140, 28, 19, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-page .btn-ghost:hover { background: var(--red-soft); border-color: rgba(140, 28, 19, 0.45); }

.admin-page .btn-danger { color: var(--red-deep); border-color: rgba(140, 28, 19, 0.45); }

.admin-page thead th { background: rgba(140, 28, 19, 0.045); }

.admin-page code {
  padding: 2px 6px;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  color: var(--red-deep);
  background: var(--red-soft);
  border-radius: 4px;
}

.admin-page .pager a { color: var(--red-deep); border-color: rgba(140, 28, 19, 0.24); }

.admin-page .pager a:hover { background: var(--red-soft); }

/* ============ 管理页 ============ */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.admin-head h1 { margin: 0; font-size: 18px; letter-spacing: 0.06em; }

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  height: 34px;
  width: auto;
  padding: 6px 9px;
  background: var(--stage);
  border-radius: 8px;
}

.admin-head form { margin: 0; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.head-actions a {
  font-size: 12px;
  color: var(--red-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

.metric {
  padding: 14px 16px;
  background: var(--cream-2);
  border-radius: var(--radius);
}

.metric .k { font-size: 12px; color: var(--gray); letter-spacing: 0.04em; }

.metric .v {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}

.metric .v small {
  margin-left: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}

.range-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.range-tabs a {
  padding: 6px 14px;
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.range-tabs a.on {
  color: var(--red-deep);
  border-color: var(--red);
  background: var(--red-soft);
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.export-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--red-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
}

.pager a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gray);
  text-decoration: none;
}

.pager a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.row { display: flex; flex-wrap: wrap; gap: 12px; }

.row .field { flex: 1 1 200px; margin-bottom: 0; }

.grid-two { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 760px) {
  .grid-two { grid-template-columns: 1fr 1fr; }
}

.file-hint { font-size: 12px; color: var(--gray); margin: -4px 0 14px; }

.btn-small {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: #FBF1E6;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.btn-ghost {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-danger {
  color: var(--red-deep);
  border-color: rgba(140, 28, 19, 0.28);
}

.ops {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops form { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th { font-size: 12px; font-weight: 500; color: var(--gray); letter-spacing: 0.04em; }

tbody tr { transition: background 0.12s ease; }

tbody tr:hover { background: var(--cream-2); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--gray);
}

.tag-on { background: var(--red-soft); color: var(--red-deep); }

.note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 20px;
  color: var(--gray);
}

.notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red-deep);
}
