/* ============================================================
   小虎出餐助手 · 网页版 —— 样式（Element Plus 风格）
   ============================================================ */
:root {
  --primary: #409eff;
  --primary-l: #ecf5ff;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
  --info: #909399;
  --text: #303133;
  --text-2: #606266;
  --text-3: #909399;
  --line: #e4e7ed;
  --line-l: #ebeef5;
  --bg: #f0f2f5;
  --side-w: 200px;
  --side-w-fold: 64px;
  --head-h: 50px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 14px/1.6 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.mono { font-family: Consolas, Menlo, monospace; }
.sp { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 品牌标记 ---------------- */
.logo-badge {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #409eff 0%, #2b7cd3 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(64, 158, 255, .35);
}
.logo-badge.sm { width: 26px; height: 26px; font-size: 14px; border-radius: 6px; }

/* ================ 登录页 ================ */
#login {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2d3d 0%, #2b4a6f 55%, #409eff 130%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 6px; padding: 34px 40px 26px;
  box-shadow: 0 6px 30px rgba(0, 21, 41, .25);
}
.login-logo { display: flex; align-items: center; gap: 10px; justify-content: center; }
.login-logo h1 { font-size: 20px; font-weight: 600; color: var(--text); }
.login-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 8px 0 22px; }
.login-err {
  background: #fef0f0; color: var(--danger); border: 1px solid #fde2e2;
  border-radius: 4px; padding: 7px 12px; font-size: 13px; margin-bottom: 14px;
}
.login-tip {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--text-3); line-height: 1.9;
}
.login-tip code { background: var(--primary-l); color: var(--primary); border-radius: 3px; padding: 0 4px; }

/* ================ 表单元素 ================ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 32px; padding: 0 10px; font-size: 13px; color: var(--text);
  border: 1px solid #dcdfe6; border-radius: 4px; outline: none; background: #fff;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { height: auto; min-height: 130px; padding: 8px 10px; line-height: 1.7; resize: vertical; font-family: inherit; }
input::placeholder { color: #a8abb2; }
input:disabled, select:disabled, textarea:disabled { background: #f5f7fa; cursor: not-allowed; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ================ 按钮 ================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 32px; padding: 0 15px; font-size: 13px; border-radius: 4px; border: 1px solid #dcdfe6;
  background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: all .12s; user-select: none;
}
.btn:hover { color: var(--primary); border-color: #c6e2ff; background: var(--primary-l); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.success:hover { background: #85cf60; border-color: #85cf60; color: #fff; }
.btn.warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn.warning:hover { background: #ebb563; border-color: #ebb563; color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #f78989; border-color: #f78989; color: #fff; }
.btn.danger-o { background: #fff; border-color: #fbc4c4; color: var(--danger); }
.btn.danger-o:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.link { border-color: transparent; background: none; color: var(--primary); padding: 0 6px; }
.btn.link:hover { background: none; text-decoration: underline; }
.note-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 12px; user-select: none;
}
.note-dot:hover { background: #66b1ff; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 3px; }
.btn.block { width: 100%; height: 38px; font-size: 15px; }

/* 开关 */
.sw { position: relative; display: inline-block; width: 40px; height: 20px; flex: none; cursor: pointer; vertical-align: middle; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #dcdfe6; border-radius: 10px; transition: background .2s; }
.sw span::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.sw input:checked + span { background: var(--primary); }
.sw input:checked + span::after { left: 22px; }
.sw input:disabled + span { opacity: .5; cursor: not-allowed; }
.sw.big { width: 44px; height: 22px; }
.sw.big span::after { width: 18px; height: 18px; }
.sw.big input:checked + span::after { left: 24px; }

/* ================ 布局骨架 ================ */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ---- 侧边栏 ---- */
.side {
  width: var(--side-w); flex: none; background: #fff; display: flex; flex-direction: column;
  border-right: 1px solid var(--line-l); transition: width .2s; overflow: hidden;
}
.side.folded { width: var(--side-w-fold); }
.side-head {
  height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px; flex: none;
  border-bottom: 1px solid var(--line-l); white-space: nowrap;
}
.side-head b { font-size: 15px; color: var(--text); overflow: hidden; }
.side.folded .side-head b, .side.folded .nav-label, .side.folded .nav-caret { display: none; }
.side.folded .side-head { justify-content: center; padding: 0; }
.side.folded .nav-item { justify-content: center; padding: 0 !important; }
.side.folded .subwrap { display: none !important; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0; }
.nav-item {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; margin: 2px 0;
  font-size: 14px; color: var(--text-2); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--primary-l); color: var(--primary); }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item.active .nav-ico { color: #fff; }
.nav-ico { width: 18px; display: inline-flex; justify-content: center; font-size: 14px; flex: none; }
.nav-caret { margin-left: auto; font-size: 11px; color: var(--text-3); transition: transform .2s; }
.nav-item.open .nav-caret { transform: rotate(180deg); }
.nav-item.open { color: var(--text); }
.subwrap { overflow: hidden; }
.subwrap .nav-item { padding-left: 42px; height: 40px; font-size: 13.5px; }
.side-fold {
  flex: none; height: 36px; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 14px; color: var(--text-3); cursor: pointer; font-size: 15px; user-select: none;
  border-top: 1px solid var(--line-l);
}
.side-fold:hover { color: var(--primary); }
.side.folded .side-fold { justify-content: center; padding: 0; }

/* ---- 顶部 ---- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--head-h); flex: none; background: #fff; border-bottom: 1px solid var(--line-l);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.crumb { font-size: 14px; color: var(--text-2); }
.crumb b { color: var(--text); font-weight: 600; }
.crumb .sep { margin: 0 7px; color: #c0c4cc; }
.teeth-box { font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 12px; }
.teeth-box b:last-child { color: var(--primary); font-size: 14px; }
.user-box { position: relative; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 4px 2px; }
.user-box .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none;
}
.user-box #userName { font-size: 13.5px; color: var(--text-2); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-box .caret { font-size: 11px; color: var(--text-3); }
.user-menu {
  position: absolute; top: 40px; right: 0; background: #fff; border: 1px solid var(--line-l);
  border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 21, 41, .12); min-width: 130px; z-index: 60; padding: 4px 0;
}
.u-item { padding: 8px 16px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.u-item:hover { background: var(--primary-l); color: var(--primary); }

/* 路由标签栏 */
.tagsbar { flex: none; background: #fff; border-bottom: 1px solid var(--line-l); padding: 5px 12px; }
.tags { display: flex; gap: 6px; overflow-x: auto; }
.rtag {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; font-size: 12px;
  border: 1px solid #d8dce5; border-radius: 3px; color: var(--text-2); cursor: pointer; white-space: nowrap;
  background: #fff; user-select: none;
}
.rtag:hover { color: var(--primary); border-color: #c6e2ff; }
.rtag.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.rtag .x { font-size: 13px; line-height: 1; opacity: .7; padding: 0 1px; border-radius: 2px; }
.rtag .x:hover { opacity: 1; background: rgba(0,0,0,.12); }

.content { flex: 1; overflow-y: auto; padding: 12px; }

/* ================ 卡片 ================ */
.card {
  background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 21, 41, .06);
  margin-bottom: 12px; overflow: hidden;
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-l); }
.card-head h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.card-head .sub { font-size: 12.5px; color: var(--text-3); }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.sec-title .sub { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.card-body { padding: 16px 18px; }

.grid { display: grid; gap: 12px; margin-bottom: 12px; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .grid.c2, .grid.c4 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.stat { background: #fff; border-radius: 4px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,21,41,.06); }
.stat .k { font-size: 13px; color: var(--text-3); }
.stat .v { font-size: 26px; font-weight: 600; color: var(--text); margin: 4px 0 2px; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat .f { font-size: 12px; color: var(--text-3); }
.stat.hl { background: linear-gradient(120deg, #409eff 0%, #3a8ee6 100%); }
.stat.hl .k, .stat.hl .v, .stat.hl .f, .stat.hl .v small { color: #fff; }

.hint {
  background: var(--primary-l); border: 1px solid #d9ecff; color: var(--text-2);
  border-radius: 4px; padding: 9px 13px; font-size: 13px; line-height: 1.85;
}
.hint.warn { background: #fdf6ec; border-color: #faecd8; }
.hint.err { background: #fef0f0; border-color: #fde2e2; }
.hint code, .hint .mono { background: rgba(64,158,255,.1); border-radius: 3px; padding: 0 4px; }

/* ================ 表格 ================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { border-bottom: 1px solid var(--line-l); padding: 10px 12px; text-align: center; vertical-align: middle; }
th { font-weight: 600; color: var(--text); background: #f7f8fa; white-space: nowrap; }
td { color: var(--text-2); }
tbody tr:hover { background: #f5f7fa; }
td.left, th.left { text-align: left; }
td .sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.empty { padding: 30px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* 门店位图 */
.plate {
  width: 34px; height: 34px; border-radius: 6px; margin: 0 auto;
  background: #f0f2f5; color: var(--text-2); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.plate.mt { background: #fff4d6; color: #e6a23c; }
.plate.mt_chain { background: #e8f3ff; color: #409eff; }
.plate.jd { background: #feeceb; color: #f56c6c; }

.tag { display: inline-block; font-size: 12px; border-radius: 3px; padding: 0 7px; line-height: 21px; white-space: nowrap; }
.tag.ok { background: #f0f9eb; color: var(--success); border: 1px solid #e1f3d8; }
.tag.warn { background: #fdf6ec; color: var(--warning); border: 1px solid #faecd8; }
.tag.err { background: #fef0f0; color: var(--danger); border: 1px solid #fde2e2; }
.tag.brand { background: var(--primary-l); color: var(--primary); border: 1px solid #d9ecff; }
.tag.info { background: #f4f4f5; color: var(--info); border: 1px solid #e9e9eb; }

/* ================ 筛选栏 / 页签 ================ */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 15px 18px; }
.filterbar .fitem { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.filterbar .fitem input, .filterbar .fitem select { width: 165px; }
.stabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 13px; }
.stab {
  font-size: 13px; padding: 3px 12px; border-radius: 3px; cursor: pointer; color: var(--text-2);
  border: 1px solid transparent; user-select: none; white-space: nowrap;
}
.stab b { font-weight: 600; margin-left: 3px; }
.stab:hover { color: var(--primary); }
.stab.active { background: var(--primary-l); color: var(--primary); border-color: #d9ecff; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 13px 18px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.pager select { width: 92px; height: 28px; }
.pg-btn {
  min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 3px; background: #fff;
  color: var(--text-2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.pg-btn.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager .goto input { width: 46px; height: 28px; }

/* ================ 日志 ================ */
.logbox {
  background: #1d1f24; color: #c8ccd4; border-radius: 4px; font: 12px/1.75 Consolas, Menlo, monospace;
  padding: 10px 14px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.logbox .l-err { color: #f78989; }
.logbox .l-warn { color: #e6a23c; }
.logbox .l-ok { color: #85cf60; }
.logbox .l-head { color: #66b1ff; font-weight: 600; }

.kv { display: grid; grid-template-columns: 100px 1fr; gap: 9px 14px; font-size: 13.5px; align-items: baseline; }
.kv .k { color: var(--text-3); text-align: right; }

/* ================ 弹窗 ================ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 11vh;
}
.modal {
  background: #fff; border-radius: 4px; width: 460px; max-width: calc(100vw - 40px); max-height: 78vh;
  display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0, 21, 41, .2);
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; padding: 15px 20px 8px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.modal-head .x { margin-left: auto; font-size: 17px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-head .x:hover { color: var(--primary); }
.modal-body { padding: 4px 20px 10px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }

/* ============================================================
   窄屏（手机 / 平板竖屏）：侧栏改抽屉，触控尺寸放大
   断点 900px —— 侧栏 200 + 内容最小 ~640 是能不挤的下限
   ============================================================ */
.mob-menu { display: none; }              /* 宽屏不显示汉堡 */
.side-mask { display: none; }

@media (max-width: 900px) {
  /* --- 侧栏变抽屉 --- */
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 120;
    width: 220px !important; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 2px 0 18px rgba(0, 21, 41, .18);
  }
  .side.open { transform: none; }
  .side.folded .nav-label, .side.folded .nav-caret, .side.folded .side-head b { display: inline; }
  .side.folded .nav-item { justify-content: flex-start; padding-left: 18px !important; }
  .side.folded .subwrap { display: block !important; }
  .side .side-fold { display: none; }      /* 抽屉模式不需要收起按钮 */

  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .side-mask.show { opacity: 1; pointer-events: auto; }

  .mob-menu {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-right: 4px; font-size: 18px; line-height: 1;
    background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--text-2); cursor: pointer;
  }
  .mob-menu:active { background: var(--primary-l); color: var(--primary); }

  /* --- 顶栏：紧凑、允许换行 --- */
  .topbar { height: auto; min-height: var(--head-h); padding: 7px 10px; gap: 8px; flex-wrap: wrap; }
  .crumb { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .teeth-box { font-size: 12px; padding: 2px 9px; }
  .user-box #userName { max-width: 84px; }
  .user-menu { position: fixed; right: 8px; top: calc(var(--head-h) + 4px); z-index: 130; }

  /* --- 内容区 --- */
  .content { padding: 9px; -webkit-overflow-scrolling: touch; }
  .card-head { padding: 12px 13px; flex-wrap: wrap; gap: 8px; }
  .card-body { padding: 12px 13px; }
  .filterbar { padding: 12px 13px; gap: 9px 12px; }
  .filterbar .fitem { flex: 1 1 46%; min-width: 140px; }
  .filterbar .fitem input, .filterbar .fitem select { width: 100%; flex: 1; }

  /* --- 表单与栅格 --- */
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 82px 1fr; }

  /* --- 触控友好：按钮与开关至少 32px --- */
  .btn { height: 34px; padding: 0 14px; }
  .btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .sw { width: 46px; height: 24px; }
  .sw span::after { width: 20px; height: 20px; }
  .sw input:checked + span::after { left: 24px; }

  /* --- 表格：横向滚动 + 单元格收紧 --- */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { font-size: 12.5px; min-width: 640px; }   /* 门店表列多，滚动比挤成一团好读 */
  th, td { padding: 8px 7px; }
  td .sub { font-size: 11.5px; }

  /* --- 弹窗：接近全屏、底部按钮并列 --- */
  .modal-mask { padding: 10px; align-items: center; }
  .modal { width: 100%; max-width: none; max-height: 86vh; }
  .modal-head { padding: 13px 15px 6px; font-size: 15px; }
  .modal-body { padding: 4px 15px 8px; }
  .modal-foot { padding: 10px 15px 14px; }
  .modal-foot .btn { flex: 1; height: 38px; }

  /* --- 标签栏横向滚动 --- */
  .tagsbar { padding: 5px 9px; }
  .rtag { height: 28px; padding: 0 11px; }

  /* 页面整体禁止横向滚动（表格自己滚） */
  body { overflow-x: hidden; }
}

/* 登录页在手机上也要撑满可视宽度 */
@media (max-width: 420px) {
  .login-card { width: calc(100vw - 28px); padding: 26px 20px 20px; }
}

/* 超窄屏（≤420px）：统计卡单列、字号再收一档 */
@media (max-width: 420px) {
  .stat .v { font-size: 22px; }
  .crumb { font-size: 12.5px; }
  .teeth-box { display: none; }            /* 虎牙数在「我的账号」里看 */
  .filterbar .fitem { flex: 1 1 100%; }
}

/* toast */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #fff; border-radius: 4px; padding: 9px 18px; font-size: 13.5px; color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 21, 41, .16); border-left: 3px solid var(--info); animation: pop .18s ease-out;
  max-width: 70vw;
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }

/* 登录器 */
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline input { flex: 1; background: #f7f8fa; font-size: 12.5px; }

/* ---- 连锁页 / 参考站样式补充 ---- */
.btn.success-o { background: #fff; border: 1px solid var(--success); color: var(--success); }
.btn.success-o:hover { background: #f0f9eb; color: var(--success); border-color: var(--success); }
.chain-tabs { display: flex; gap: 4px; margin-left: 14px; }
.chain-tabs .ctab { padding: 7px 14px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; user-select: none; }
.chain-tabs .ctab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.sublinks { margin-top: 3px; }
.sublinks a { color: var(--primary); font-size: 11px; cursor: pointer; margin-right: 7px; text-decoration: none; }
.sublinks a:hover { text-decoration: underline; }
.sublinks a.off { color: var(--text-3); cursor: not-allowed; }
a.lnk { cursor: pointer; }
a.lnk.err { color: var(--danger); font-size: 12px; }
.atoolbar { display: flex; align-items: center; padding: 2px 0 4px; }
.atoolbar input[type="text"] { height: 34px; }
