﻿
/* ============================================================
   Q Island - Android-style flat UI (2015-2020 forum client)
   ============================================================ */
:root {
  --primary: #1F1F1F;
  --primary-dark: #101010;
  --primary-soft: #F0F0F0;
  --bg: #F1F1F1;
  --divider: #EDEDED;
  --text: #212121;
  --muted: #9E9E9E;
  --green: #1E8E4E;
  --blue: #1976D2;
  --red: #D32F2F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 Roboto, "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { border: 0; }
svg.ic { vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.big { font-size: 18px; }
.dot { margin: 0 6px; color: #D5D5D5; }
.serial { font-family: Consolas, Menlo, monospace; color: #9A9A9A; font-size: 12px; }
.time { color: #BDBDBD; font-size: 12px; }
.wrap { max-width: 560px; margin: 0 auto; }

/* ---------- App shell ---------- */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
}
@media (min-width: 601px) {
  .app { border-left: 1px solid #E0E0E0; border-right: 1px solid #E0E0E0; }
}
@media (max-width: 600px) {
  body { background: #fff; }
  .app { max-width: 100%; }
}
body.app-wide .app { max-width: 1000px; }
@media (min-width: 601px) {
  body.app-wide .app { border-left: 1px solid #E0E0E0; border-right: 1px solid #E0E0E0; }
}

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 55;
  background: var(--primary);
  color: #fff;
}
.ab-row {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 0 4px;
  position: relative;
}
.appbar-tall .ab-row { min-height: 72px; }
.ab-icon {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 0;
}
.ab-icon svg { width: 24px; height: 24px; }
.ab-center { flex: 1; min-width: 0; padding: 0 4px; }
.ab-title {
  font-size: 20px; font-weight: 500; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar-tall .ab-title { font-size: 23px; font-weight: 500; }
.ab-sub { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-actions { display: flex; align-items: center; flex: 0 0 auto; }
.ab-menu { position: relative; }
.ab-menu-panel {
  position: absolute; top: 50px; right: 6px; z-index: 90;
  min-width: 200px; max-width: 260px;
  background: #fff; color: #333;
  border: 1px solid #E8E8E8;
  box-shadow: 0 3px 14px rgba(0,0,0,.18);
  display: none;
}
.ab-menu-panel.open { display: block; }
.ab-menu-panel a, .ab-menu-panel button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 16px;
  background: none; border: 0; border-bottom: 1px solid #F2F2F2;
  font: inherit; font-size: 14px; color: #333; text-align: left;
  cursor: pointer;
}
.ab-menu-panel a:last-child, .ab-menu-panel button:last-child { border-bottom: 0; }
.ab-menu-panel a:hover, .ab-menu-panel button:hover { background: #F7F7F7; }
.ab-menu-panel .ic { color: #888; width: 20px; height: 20px; }

/* ---------- Notice ---------- */
.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--primary-soft); color: #1F1F1F;
  border-bottom: 1px solid #DDDDDD;
  padding: 10px 14px; font-size: 13px;
}
.notice button { background: none; border: 0; font-size: 16px; cursor: pointer; color: #111111; padding: 0 4px; }
.notice a { color: var(--primary-dark); font-weight: 600; margin-left: 8px; }

/* ---------- Flat list rows (replaces old cards) ---------- */
.card {
  background: #fff;
  border: 0; border-radius: 0; box-shadow: none;
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid var(--divider);
  position: relative;
}
.thread-card.pinned { border-left: 3px solid var(--primary); }
.empty { color: var(--muted); text-align: center; padding: 42px 20px; font-size: 14px; }
.page-title { font-size: 18px; font-weight: 500; padding: 14px; margin: 0; border-bottom: 1px solid var(--divider); }

/* ---------- Post meta row: name / no-or-board / time ---------- */
.pmeta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.pname { font-weight: 600; white-space: nowrap; }
.pname.anon { color: var(--muted); font-weight: 400; }
.pmid { color: #BDBDBD; font-family: Consolas, Menlo, monospace; font-size: 12px; white-space: nowrap; }
.ptime { margin-left: auto; color: #BDBDBD; font-size: 12px; flex: 0 0 auto; white-space: nowrap; }

/* ---------- Thread card (timeline / board / search) ---------- */
.tc-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.tc-title { font-size: 16.5px; font-weight: 500; color: var(--text); line-height: 1.45; word-break: break-word; }
.tc-title.no-title { color: var(--muted); font-weight: 400; }
.tc-content { font-size: 14.5px; color: #333; line-height: 1.7; word-break: break-word; }
.tc-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.tfoot-left { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.reply-count { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #757575; font-size: 12.5px; flex: 0 0 auto; }
.reply-count .ic { width: 16px; height: 16px; color: #BDBDBD; }
.reply-count b { font-weight: 600; }

/* ---------- Thread page ---------- */
.crumb { padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--divider); }
.crumb a { color: var(--muted); }
.p-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.p-title { font-size: 18px; font-weight: 500; line-height: 1.4; word-break: break-word; }
.p-content { font-size: 15px; color: var(--text); line-height: 1.8; word-break: break-word; }
.p-actions {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed #F0F0F0;
}
.p-actions .btn { font-size: 13px; color: #888; padding: 4px 8px; }
.p-actions .btn:hover { color: var(--primary); background: none; }
.op-card, .reply-card { }
.reply-card.highlight, .op-card.highlight { background: var(--primary-soft); transition: background .4s; }
.thread-info-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.thread-title { font-size: 17px; font-weight: 600; }
.thread-info-meta { margin-top: 4px; }
.thread-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.op-preview { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #EEE; font-size: 13.5px; color: #555; max-height: 190px; overflow: hidden; }
.op-preview-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* ---------- Badges (flat colored text) ---------- */
.badge { display: inline-block; font-size: 11px; line-height: 1.5; color: #8E8E8E; white-space: nowrap; }
.badge-admin { color: var(--red); font-weight: 700; }
.badge-mod { color: var(--blue); }
.badge-real { color: var(--green); }
.badge-banned { color: var(--red); }
.badge-pin { color: #B8860B; }
.badge-lock { color: #757575; }
.badge-sage { color: var(--green); }
.badge-op { color: var(--primary); font-weight: 600; }
.badge-mine { color: var(--green); }

/* ---------- Tag / filter chips (flat, no pill) ---------- */
.chip { display: inline-block; color: var(--primary); font-size: 12px; background: none; border: 0; padding: 0; }
.chips {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 0 14px; background: #fff;
  border-bottom: 1px solid var(--divider);
}
.chips .chip { padding: 12px 2px; font-size: 14px; color: #666; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.chips .chip.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.chips .chip:hover { color: var(--primary); }
.board-chip { color: var(--primary); font-size: 12.5px; }

/* ---------- Cookie name ---------- */
.cookie { font-weight: 600; font-size: 13.5px; }
.cookie.big { font-size: 16px; }
.cookie-short { font-size: 10px; color: #B7BCC4; margin-left: 3px; font-family: Consolas, monospace; }

/* ---------- Buttons (flat, Android text-button style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; background: none; color: var(--primary);
  border-radius: 0; padding: 8px 12px;
  font-size: 14px; font-family: inherit; line-height: 1.4;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: rgba(31,31,31,.07); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #9E9E9E; color: #fff; cursor: default; }
.btn-ghost { background: rgba(31,31,31,.08); color: var(--primary); }
.btn-ghost:hover { background: rgba(31,31,31,.14); }
.btn-link { color: var(--primary); padding: 4px 8px; font-size: 13px; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-lg { padding: 10px 24px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }
.danger-text { color: var(--red) !important; }
.fav-on { color: var(--primary); }

/* ---------- Forms (flat underline inputs) ---------- */
input[type=text], input[type=search], input[type=password], input[type=url], input[type=number],
textarea, select {
  font: inherit; color: var(--text);
  border: 0; border-bottom: 1px solid #DDD;
  border-radius: 0; background: #fff;
  padding: 10px 2px;
  outline: none; width: 100%;
}
input:focus, textarea:focus, select:focus { border-bottom-color: var(--primary); }
select { appearance: none; -webkit-appearance: none; background: transparent; }
textarea { resize: vertical; }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 2px; }
.field-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.form-title { font-size: 16px; font-weight: 500; margin: 0 0 10px; }
.cookie-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cookie-fields .cookie-select { width: 100%; }
.mini-input { width: auto; max-width: 220px; padding: 4px 2px; font-size: 13px; }

/* ---------- Editor page (reply / new thread) ---------- */
body.editor-page { background: #fff; }
body.editor-page .app { padding-bottom: 124px; }
body.editor-page.kao-open .app { padding-bottom: calc(124px + 38vh); }
.editor-wrap { display: flex; flex-direction: column; }
.editor-input {
  flex: 1; min-height: 46vh;
  border: 0; outline: 0; resize: none;
  background: #fff;
  font: inherit; font-size: 16px; line-height: 1.85; color: var(--text);
  padding: 14px 16px;
}
.editor-input::placeholder { color: #BDBDBD; }
.more-fields { border-bottom: 1px solid var(--divider); background: #fff; }
.more-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 0;
  padding: 15px 16px;
  font: inherit; font-size: 14px; color: #555;
  cursor: pointer;
}
.more-caret { color: #999; display: inline-flex; transition: transform .2s; }
.more-fields.open .more-caret { transform: rotate(180deg); }
.more-body { display: none; padding: 0 16px 16px; }
.more-fields.open .more-body { display: block; }
.editor-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; height: 58px;
  background: var(--primary);
  display: flex; align-items: center;
  padding: 0 10px 0 12px; z-index: 60;
}
body.app-wide .editor-bar { max-width: 1000px; }
.eb-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: none; border: 0; cursor: pointer;
}
.eb-btn svg { width: 24px; height: 24px; }
.eb-btn:hover { background: rgba(255,255,255,.14); }
.eb-send {
  margin-left: auto;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: none; border: 0; cursor: pointer; padding: 0;
}
.eb-send svg { width: 30px; height: 30px; }
.eb-send:hover { transform: scale(1.08); }
.kaomoji-panel {
  position: fixed; bottom: 58px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; max-height: 38vh; overflow-y: auto;
  background: #F2F3F5; border-top: 1px solid #E3E4E6;
  z-index: 59; display: none;
}
body.app-wide .kaomoji-panel { max-width: 1000px; }
.kaomoji-panel.open { display: block; }
.kaomoji-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.kaomoji-item {
  padding: 13px 4px; text-align: center;
  font-size: 13.5px; color: #222; white-space: nowrap; overflow: hidden;
  background: none; border: 0; cursor: pointer;
}
.kaomoji-item:nth-child(3n+2), .kaomoji-item:nth-child(3n) { border-left: 1px solid #E6E7E9; }
.kaomoji-item:active { background: #E4E6E8; }

/* ---------- Upload area ---------- */
.upload-area { margin-top: 12px; border: 1px dashed #DDD; padding: 12px; }
.upload-area.drag { background: var(--primary-soft); border-color: var(--primary); }
.upload-drop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; color: #666; font-size: 13.5px; }
.upload-icon { font-size: 18px; }
.upload-text { font-weight: 500; color: var(--primary); }
.upload-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.up-item { position: relative; }
.up-item img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--divider); display: block; }
.up-remove {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #333; color: #fff; border: 0; cursor: pointer;
  font-size: 13px; line-height: 1;
}

/* ---------- Images ---------- */
.imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.img-link { display: block; line-height: 0; border: 1px solid var(--divider); background: #FAFAFA; }
.img-link img { max-width: 190px; max-height: 170px; object-fit: cover; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lb-close { position: absolute; top: 10px; right: 16px; color: #fff; font-size: 28px; background: none; border: 0; cursor: pointer; }

/* ---------- Quote links & spoiler ---------- */
.qlink { color: var(--green); font-weight: 600; font-family: Consolas, Menlo, monospace; }
.qlink:hover { text-decoration: underline; }
.tlink { color: var(--blue); font-weight: 600; }
.tlink:hover { text-decoration: underline; }
.spoiler { background: #212121; color: transparent; padding: 0 5px; cursor: pointer; user-select: none; }
.spoiler.revealed { background: #F5F5F5; color: inherit; cursor: text; user-select: text; }

/* ---------- No. link popup ---------- */
.no-pop {
  position: fixed; z-index: 150;
  width: min(420px, calc(100vw - 24px));
  background: #fff; border: 1px solid #E0E0E0;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
  display: none;
}
.no-pop.show { display: block; }
.no-pop-head { padding: 12px 14px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.no-pop-title { color: var(--text); font-weight: 600; font-size: 15px; }
.no-pop-body { padding: 8px 14px; font-size: 14px; color: #333; max-height: 240px; overflow: auto; word-break: break-word; }
.no-pop-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 12px 12px; }
.no-pop-img img { max-width: 130px; margin: 8px 8px 0 0; border: 1px solid #EEE; }
.no-pop-loading { color: var(--muted); }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; padding: 14px; border-bottom: 1px solid var(--divider); }
.pg-btn {
  padding: 7px 14px; font-size: 13px; color: #555;
  border: 1px solid #DDD; background: #fff; margin: 0 0 -1px -1px;
  display: inline-block;
}
.pg-btn:first-child { margin-left: 0; }
.pg-btn:hover { color: var(--primary); }
.pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.pg-btn.disabled { color: #CCC; background: #FAFAFA; }

/* ---------- Drawers ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; display: none; }
.drawer-backdrop.show { display: block; }
.drawer {
  position: fixed; top: 0; bottom: 0;
  width: 280px; max-width: 84vw;
  background: #fff; z-index: 75;
  overflow-y: auto;
  transition: transform .22s ease;
}
.drawer-left { left: 0; transform: translateX(-102%); }
.drawer-right { right: 0; transform: translateX(102%); }
.drawer.show { transform: none; box-shadow: 0 0 26px rgba(0,0,0,.28); }
.drawer-head {
  background: var(--primary); color: #fff;
  padding: 16px 14px; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.icon-btn { background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; padding: 2px 6px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; color: #333; font-size: 14.5px;
  border-bottom: 1px solid #F2F2F2;
}
.drawer-nav a .ic { color: var(--primary); width: 20px; height: 20px; }
.drawer-nav a:hover { background: #F7F7F7; }
.drawer-cat { font-size: 12px; color: var(--muted); font-weight: 500; padding: 16px 16px 6px; margin: 0; }
.drawer-board {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; color: #333; font-size: 14px;
  border-bottom: 1px solid #F5F5F5;
}
.drawer-board:hover { background: #F7F7F7; color: var(--primary); }
.drawer-board-icon { font-size: 16px; width: 22px; text-align: center; flex: 0 0 auto; }
.drawer-board-top { font-weight: 600; }

/* ---------- Misc pages ---------- */
.search-form { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.search-form input { flex: 1; }
.stats-bar { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 14px; border-bottom: 1px solid var(--divider); font-size: 13px; color: #666; }
.stats-bar b { color: var(--primary); font-size: 15px; }
.cat-title { font-size: 13px; font-weight: 500; color: var(--primary); padding: 16px 14px 6px; margin: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.profile-post-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.latest-title { color: var(--text); font-weight: 500; flex: 1; min-width: 140px; word-break: break-word; }
.latest-title.no-title { color: var(--muted); font-weight: 400; }
.profile-reply { color: #555; font-size: 13.5px; flex: 1; min-width: 200px; }
.meta-right { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.meta-left { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.actions { display: flex; gap: 2px; }
.fav-card { padding: 0; }
.fav-card > .card { border: 0; }
.fav-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 14px 12px; flex-wrap: wrap; }
.cookie-manage-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid #F2F2F2; }
.cookie-manage-row:last-child { border-bottom: 0; }
.blocked-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F2F2F2; }
.blocked-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #F7F7F7; border-bottom: 1px solid var(--divider); font-size: 13px; color: #777; }
.blocked-hidden { display: none; }
.admin-mini { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #EEE; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.admin-mini[hidden] { display: none; }
.admin-toggle { color: var(--muted); font-size: 12px; }
.admin-punish { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.log-detail summary { cursor: pointer; color: var(--primary); font-size: 13px; margin-top: 4px; }
.log-snapshot { background: #F7F7F7; padding: 8px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; }
.announcement { padding: 14px; border-bottom: 1px solid var(--divider); }
.ann-title { font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.ann-body { white-space: pre-line; }
.board-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); border-bottom: 1px solid var(--divider); }
.board-card:hover { background: #F9F9F9; }
.board-icon { font-size: 24px; line-height: 1; }
.board-icon.lg { font-size: 32px; }
.board-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board-name { font-weight: 600; font-size: 15px; }
.board-desc { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-stats { color: var(--muted); font-size: 12px; white-space: nowrap; }
.board-stats b { color: var(--primary); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tabs { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.tab { padding: 6px 12px; color: #666; font-size: 13px; }
.tab.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); }

/* ---------- Tables (admin) ---------- */
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--divider); }
table.list td { padding: 9px 10px; border-bottom: 1px solid #F2F2F2; vertical-align: top; }

/* ---------- Login / error ---------- */
.login-card { max-width: 420px; margin: 40px auto; padding: 22px; border: 1px solid var(--divider); }
.error-card { padding: 46px 20px; text-align: center; }

/* ---------- Report dialog ---------- */
.report-dialog { border: 1px solid #DDD; box-shadow: 0 4px 22px rgba(0,0,0,.2); padding: 20px; min-width: 300px; max-width: 92vw; border-radius: 0; }
.report-dialog h3 { font-size: 16px; margin: 0 0 8px; }
.report-dialog select, .report-dialog textarea { width: 100%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 96px; left: 50%;
  transform: translate(-50%, 12px);
  background: rgba(33,33,33,.92); color: #fff;
  padding: 10px 18px; font-size: 14px; border-radius: 4px;
  opacity: 0; pointer-events: none;
  transition: all .22s; z-index: 300; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { padding: 18px 16px; text-align: center; color: #AAAAAA; font-size: 12px; border-top: 1px solid var(--divider); }
.site-footer a { color: #999; }

/* ---------- Cookie role colors ---------- */
.cookie.admin { color: var(--red); font-weight: 700; }
.cookie.mod { color: var(--blue); }
.cookie.anon { color: var(--muted); font-weight: 400; }

/* ---------- 账号 / 自定义饼干名 ---------- */
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.cookie-code { font-size: 11px; color: #999; margin-left: 4px; }
