:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --text: #1d211f;
  --muted: #79807a;
  --border: #e4e3db;
  --primary: #1f5c4a;
  --primary-hover: #15453a;
  --primary-soft: #e9efe9;
  --danger: #b5473e;
  --danger-soft: #f6ebea;
  --gold: #a8834d;
  --input-bg: #fbfbf9;
  --hover-bg: #f2f2ec;
  --hover-bg-2: #e7e7df;
  --soft-bg: #fafaf6;
  --btn-plain: #efefe9;
  --tip-bg: #faf6ec;
  --tip-border: #e8ddc0;
  --tip-text: #79642f;
  --toast-bg: #232925;
  --empty-icon: #b9bcb2;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(25, 32, 28, 0.05), 0 4px 14px rgba(25, 32, 28, 0.04);
  --menu-shadow: 0 6px 24px rgba(20, 26, 22, 0.16);
  --serif: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  --ink-gradient: linear-gradient(150deg, #17251e 0%, #1f4a3a 100%);
}

html[data-theme="dark"] {
  --bg: #131614;
  --card: #1b201d;
  --text: #e5e5dd;
  --muted: #8b9289;
  --border: #2b312c;
  --primary: #3e8a6c;
  --primary-hover: #4c9e7e;
  --primary-soft: #223429;
  --danger: #cf6a60;
  --danger-soft: #392523;
  --gold: #c2a06a;
  --input-bg: #151916;
  --hover-bg: #22271f;
  --hover-bg-2: #2b322b;
  --soft-bg: #171c19;
  --btn-plain: #262c27;
  --tip-bg: #262215;
  --tip-border: #423a20;
  --tip-text: #cbb277;
  --toast-bg: #e8e8e0;
  --empty-icon: #3d453f;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
  --menu-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] #toast { color: #1d211f; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
select option { background: var(--card); }

svg.ic { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }

/* ---------- 登录页 ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-gradient);
}
.login-card {
  background: var(--card);
  border-radius: 18px;
  padding: 48px 42px;
  width: 372px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.login-card .logo { text-align: center; color: var(--primary); }
.login-card h1 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 2px;
  text-align: center;
  margin: 10px 0 4px;
}
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 30px; letter-spacing: 1px; }
.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 14px;
  outline: none;
  background: var(--input-bg);
  transition: border 0.2s;
}
.login-card input:focus { border-color: var(--primary); }
.login-card button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 6px;
  transition: background 0.2s;
}
.login-card button:hover { background: var(--primary-hover); }
.login-error { color: var(--danger); font-size: 13px; text-align: center; margin-bottom: 12px; min-height: 18px; }
.login-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 20px; }

/* ---------- 主布局 ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 256px;
  min-width: 256px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 22px 18px 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.folder-list { flex: 1; overflow-y: auto; padding: 2px 8px; }
.folder-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  margin-bottom: 1px;
  transition: background 0.15s;
}
.folder-item:hover { background: var(--hover-bg); }
.folder-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.folder-item .chev {
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.folder-item .chev.open { transform: rotate(90deg); }
.folder-item .fic { color: var(--muted); display: flex; flex-shrink: 0; }
.folder-item.active .fic { color: var(--primary); }
.folder-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.folder-item .count { font-size: 11px; color: var(--muted); }
.folder-item .facts { display: none; align-items: center; gap: 2px; }
.folder-item:hover .facts { display: flex; }
.folder-item:hover .count { display: none; }
.folder-item .facts button {
  border: none;
  background: none;
  color: var(--muted);
  padding: 3px;
  display: flex;
  border-radius: 5px;
}
.folder-item .facts button:hover { background: var(--hover-bg-2); color: var(--text); }
.rename-input {
  flex: 1;
  min-width: 0;
  padding: 2px 6px;
  font-size: 14px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  outline: none;
  background: var(--card);
}

/* 右键式小菜单 */
.ctx-menu {
  position: fixed;
  z-index: 150;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--menu-shadow);
  padding: 5px;
  min-width: 130px;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
  color: var(--text);
}
.ctx-item:hover { background: var(--hover-bg); }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger:hover { background: var(--danger-soft); }

.new-folder-btn {
  margin: 10px 14px;
  padding: 9px;
  border: 1px dashed var(--border);
  background: none;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.new-folder-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 顶部导航栏 ---------- */
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.topbar-spacer { flex: 1; }
.tbtn {
  padding: 7px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.tbtn:hover { background: var(--hover-bg); color: var(--primary); }
.theme-btn {
  border: none;
  background: none;
  color: var(--muted);
  padding: 7px;
  border-radius: 7px;
  display: flex;
}
.theme-btn:hover { background: var(--hover-bg); color: var(--primary); }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.topbar-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.topbar-user .uname { font-weight: 600; font-size: 13px; }

/* ---------- 主区域 ---------- */
.main { flex: 1; overflow-y: auto; padding: 22px 28px; }
.main-empty {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--empty-icon);
  gap: 16px;
  font-size: 14px;
}

.main-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.main-header h2 { font-family: var(--serif); font-size: 23px; letter-spacing: 1px; flex: 1; }
.main-header .crumb { color: var(--muted); font-weight: 400; font-size: 15px; }
.hbtn {
  padding: 8px 15px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.hbtn:hover { border-color: var(--primary); color: var(--primary); }
.hbtn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.hbtn.primary:hover { background: var(--primary-hover); color: #fff; }

/* ---------- 录入面板 ---------- */
.entry-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.entry-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lang-pair { display: flex; align-items: center; gap: 6px; }
.lang-pair select {
  padding: 9px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  outline: none;
}
.lang-pair .arrow { color: var(--muted); font-size: 13px; }
.word-input-wrap { flex: 1; min-width: 220px; position: relative; display: flex; }
.word-input-wrap input {
  flex: 1;
  padding: 11px 86px 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 16px;
  outline: none;
  background: var(--input-bg);
  transition: border 0.2s;
}
.word-input-wrap input:focus { border-color: var(--primary); }
.mic-btn {
  position: absolute;
  right: 46px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.mic-btn:hover { filter: brightness(0.96); }
.mic-btn.recording { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(181,71,62,.45);} 50% { box-shadow: 0 0 0 8px rgba(181,71,62,0);} }
.clear-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none;
  background: none;
  color: var(--muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.clear-btn:hover { background: var(--hover-bg); }
.lookup-btn {
  padding: 11px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}
.lookup-btn:hover { background: var(--primary-hover); }
.lookup-btn:disabled { opacity: 0.6; cursor: wait; }
.entry-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- 查词结果 ---------- */
.result-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: var(--soft-bg);
}
.correct-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.correct-bar b { font-weight: 700; }
.correct-bar button {
  margin-left: auto;
  border: 1px solid var(--primary);
  background: none;
  color: var(--primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.correct-bar button:hover { background: var(--primary); color: #fff; }
.result-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-head .rword { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.result-head .rphon { color: var(--muted); font-size: 15px; }
.result-head .rpos {
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; padding: 2px 8px; border-radius: 5px;
}
.speak-btn {
  border: none; background: none; color: var(--muted);
  padding: 3px; border-radius: 5px;
  display: inline-flex; align-items: center;
}
.speak-btn:hover { color: var(--primary); background: var(--primary-soft); }
.result-field { margin-top: 12px; }
.result-field label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.result-field input, .result-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--card);
}
.result-field input:focus, .result-field textarea:focus { border-color: var(--primary); }
.result-field textarea { resize: vertical; min-height: 40px; }
.example-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.example-row .ex-texts { flex: 1; }
.example-row .ex-src { font-size: 14px; }
.example-row .ex-dst { font-size: 13px; color: var(--muted); margin-top: 2px; }
.example-row .ex-del {
  border: none; background: none; color: var(--muted);
  padding: 3px; border-radius: 5px; display: flex;
}
.example-row .ex-del:hover { color: var(--danger); background: var(--danger-soft); }
.gen-loading {
  color: var(--muted); font-size: 13px; padding: 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.more-ex-btn {
  padding: 6px 12px; font-size: 13px;
  border: 1px dashed var(--border); border-radius: 7px;
  background: none; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.more-ex-btn:hover { border-color: var(--primary); color: var(--primary); }
.tip-box {
  margin-top: 12px;
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--tip-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.tip-box .ic { margin-top: 1px; color: var(--gold); }
.result-actions { display: flex; gap: 10px; margin-top: 16px; }
.result-actions .save-btn {
  padding: 10px 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.result-actions .save-btn:hover { background: var(--primary-hover); }
.result-actions .ghost-btn {
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.result-actions .ghost-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 单词列表 ---------- */
.word-list { display: flex; flex-direction: column; gap: 10px; }
.word-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 15px 18px;
  transition: border-color 0.15s;
}
.word-card:hover { border-color: var(--muted); }
.wc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.wc-top .wword { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.wc-top .wphon { color: var(--muted); font-size: 13px; }
.wc-top .wpos { background: var(--primary-soft); color: var(--primary); font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.wc-top .wtrans { flex: 1; color: var(--text); font-size: 14px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.wc-detail .ex { margin-bottom: 8px; }
.wc-detail .ex .s { font-size: 14px; }
.wc-detail .ex .d { font-size: 13px; color: var(--muted); }
.wc-actions { display: flex; gap: 8px; margin-top: 10px; }
.wc-actions button {
  border: 1px solid var(--border);
  background: none;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.wc-actions button:hover { color: var(--primary); border-color: var(--primary); }
.wc-actions button.del:hover { color: var(--danger); border-color: var(--danger); }
.empty-words { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(10, 14, 12, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  width: 430px;
  max-width: calc(100vw - 40px);
  max-height: 85vh;
  overflow-y: auto;
}
.modal h3 { margin-bottom: 18px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.modal .field { margin-bottom: 14px; }
.modal .field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.modal .field input, .modal .field select, .modal .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--input-bg);
}
.modal .field input:focus, .modal .field textarea:focus { border-color: var(--primary); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-actions .btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-actions .btn.primary { background: var(--primary); color: #fff; }
.modal-actions .btn.primary:hover { background: var(--primary-hover); }
.modal-actions .btn.plain { background: var(--btn-plain); color: var(--text); }
.modal-actions .btn.danger { background: none; border: 1px solid var(--danger); color: var(--danger); }
.modal-actions .btn.danger:hover { background: var(--danger); color: #fff; }

/* ---------- 复习（闪卡） ---------- */
.flash-wrap { text-align: center; }
.flash-card {
  margin: 10px auto 18px;
  min-height: 230px;
  border-radius: 14px;
  background: var(--ink-gradient);
  color: #f2f1ea;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  cursor: pointer;
  user-select: none;
}
.flash-card .fw { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.flash-card .fp { opacity: 0.75; margin-top: 8px; font-size: 15px; }
.flash-card .ft { font-size: 20px; line-height: 1.5; }
.flash-card .fe { font-size: 14px; opacity: 0.85; margin-top: 14px; line-height: 1.7; }
.flash-card .hint { font-size: 12px; opacity: 0.45; margin-top: 18px; letter-spacing: 1px; }
.flash-nav { display: flex; gap: 10px; justify-content: center; align-items: center; }
.flash-nav button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: none;
  border-radius: 8px;
  font-size: 13px;
  display: flex; align-items: center; gap: 5px;
}
.flash-nav button:hover { border-color: var(--primary); color: var(--primary); }
.flash-nav .fidx { color: var(--muted); font-size: 13px; min-width: 52px; }

/* ---------- 用量管理面板 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.stat-card .sc-label { font-size: 12px; color: var(--muted); }
.stat-card .sc-value { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-top: 4px; }
.stat-card .sc-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.admin-section h4 {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 12px;
}
.admin-grid .admin-section { margin-bottom: 0; }
@media (max-width: 1100px) { .admin-grid { grid-template-columns: 1fr; } }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 88px; }
.chart .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}
.chart .bar {
  width: 100%;
  max-width: 36px;
  background: var(--primary);
  opacity: 0.85;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: opacity 0.15s;
}
.chart .bar-wrap:hover .bar { opacity: 1; }
.chart .bar-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.cfg-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: 13px; }
.cfg-row:last-child { margin-bottom: 0; }
.cfg-row label { font-size: 13px; color: var(--muted); min-width: 62px; }
.cfg-row input, .cfg-row select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input-bg);
  outline: none;
}
.cfg-row input:focus { border-color: var(--primary); }
.kv { font-size: 13px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: #fff;
  padding: 10px 22px;
  border-radius: 9px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--danger); color: #fff; }

@media (max-width: 760px) {
  .sidebar { width: 210px; min-width: 210px; }
  .main { padding: 16px; }
  .wc-top .wtrans { text-align: left; width: 100%; }
}
