/* AiBox 多维表格 · 样式表 */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #fbfbfc;
  --side: #f7f8fa;
  --text: #1f2329;
  --text-2: #5b6169;
  --text-3: #8a9099;
  --line: #e5e7eb;
  --line-2: #eef0f2;
  --brand: #1f5eff;
  --brand-weak: #eaf0ff;
  --danger: #d92d20;
  --danger-weak: #fdecea;
  --ok: #12a05c;
  --warn: #e8730c;
  --cell: #ffffff;
  --cell-head: #fafbfc;
  --hover: #f2f4f7;
  --overlay: rgba(15, 20, 30, 0.42);
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}
html[data-theme="dark"] {
  --bg: #101215;
  --panel: #171a1e;
  --panel-2: #1b1f24;
  --side: #14171b;
  --text: #e8eaed;
  --text-2: #a9b0b9;
  --text-3: #79808a;
  --line: #2a2f36;
  --line-2: #23282e;
  --brand: #4c86ff;
  --brand-weak: #1a2540;
  --danger: #ff6b5e;
  --danger-weak: #3a1f1d;
  --ok: #2fbf71;
  --warn: #f0954a;
  --cell: #171a1e;
  --cell-head: #1c2025;
  --hover: #22272d;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
.gb-boot { padding: 40px; color: var(--text-3); }

/* ---------------------------------------------------------------- 通用件 */
.gb-btn {
  height: 30px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.gb-btn:hover { background: var(--hover); }
.gb-btn.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.gb-btn.is-primary:hover { filter: brightness(1.08); }
.gb-btn.is-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.gb-btn:disabled { opacity: .55; cursor: not-allowed; }
.gb-icon-btn {
  width: 26px; height: 26px; border-radius: var(--radius-sm); border: none; background: transparent;
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.gb-icon-btn:hover { background: var(--hover); color: var(--text); }
.gb-icon-btn.danger:hover { background: var(--danger-weak); color: var(--danger); }
.gb-mini-btn {
  height: 24px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--panel); color: var(--text-2); font-size: 12px;
}
.gb-mini-btn:hover { background: var(--hover); color: var(--text); }
.gb-mini-btn.is-danger { color: var(--danger); border-color: var(--danger); }
.gb-input, .gb-select {
  height: 30px; width: 100%; padding: 0 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); outline: none;
}
textarea.gb-input { height: auto; padding: 7px 9px; resize: vertical; }
.gb-input:focus, .gb-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.gb-select { cursor: pointer; }
.gb-narrow { width: auto; min-width: 84px; }
.gb-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-spacer { flex: 1; }
.gb-hint { color: var(--text-3); font-size: 12px; line-height: 1.7; }
.gb-field { margin-bottom: 14px; }
.gb-field > label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12px; }
.gb-check-line { display: flex; align-items: center; gap: 7px; margin: 6px 0; font-size: 12px; color: var(--text-2); cursor: pointer; }
.gb-svg { width: 15px; height: 15px; display: block; }
.gb-muted-val { color: var(--text-3); }

/* 彩色标签 */
.gb-chip {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 11px;
  font-size: 12px; border: 1px solid transparent; white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.gb-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.gb-avatar {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-weak); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none;
}
.gb-person { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.gb-date-val { font-variant-numeric: tabular-nums; }
.gb-num-val { font-variant-numeric: tabular-nums; }
.gb-cell-empty { color: transparent; }
.gb-error-val { color: var(--danger); cursor: help; }
.gb-link-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-pre-wrap { white-space: pre-wrap; }
.gb-check {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.gb-check.on { background: var(--brand); border-color: var(--brand); }
.gb-check-edit { cursor: pointer; }
.gb-star { color: var(--line); font-size: 13px; }
.gb-star.on { color: #f4a11b; }
.gb-rating-edit .gb-star { cursor: pointer; }
.gb-progress { display: inline-flex; align-items: center; gap: 7px; width: 100%; }
.gb-progress-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; min-width: 40px; }
.gb-progress-fill { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.gb-progress-txt { color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.gb-progress-edit { display: inline-flex; align-items: center; gap: 7px; width: 100%; }
.gb-range { flex: 1; accent-color: var(--brand); }
.gb-imgs { display: inline-flex; gap: 4px; align-items: center; }
.gb-img img { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; display: block; }
.gb-filechip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  background: var(--hover); font-size: 12px;
}
.gb-linkchip {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 11px;
  background: var(--brand-weak); color: var(--brand); font-size: 12px; cursor: pointer;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gb-linkchip:hover { filter: brightness(0.96); }

/* ---------------------------------------------------------------- 登录页 */
.gb-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.gb-login-card {
  width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px; box-shadow: var(--shadow); text-align: center;
}
.gb-login-logo {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px;
}
.gb-login-title { font-size: 18px; margin: 0 0 4px; font-weight: 600; }
.gb-login-sub { color: var(--text-3); font-size: 12px; margin-bottom: 20px; }
.gb-login-card .gb-field { text-align: left; }
.gb-login-err { color: var(--danger); font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.gb-login-btn { width: 100%; height: 34px; justify-content: center; margin-top: 6px; }
.gb-login-tip { color: var(--text-3); font-size: 11px; margin-top: 16px; line-height: 1.7; }

/* ---------------------------------------------------------------- 布局 */
.gb-app { display: flex; height: 100vh; overflow: hidden; }
.gb-sidebar {
  width: 232px; flex: none; background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.gb-brand { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.gb-brand-logo {
  width: 24px; height: 24px; border-radius: 6px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.gb-brand-name { font-weight: 600; font-size: 14px; }
.gb-side-scroll { flex: 1; overflow: auto; padding: 4px 8px 12px; }
.gb-table-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-2); font-weight: 500;
}
.gb-table-item:hover { background: var(--hover); }
.gb-table-item.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.gb-ti-icon { font-size: 13px; }
.gb-ti-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-ti-more, .gb-vi-more {
  border: none; background: transparent; color: var(--text-3); padding: 0 2px; border-radius: 4px;
  opacity: 0; line-height: 1;
}
.gb-table-item:hover .gb-ti-more, .gb-view-item:hover .gb-vi-more { opacity: 1; }
.gb-view-list { padding: 2px 0 6px 14px; }
.gb-view-item {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-2); font-size: 12.5px;
}
.gb-view-item:hover { background: var(--hover); }
.gb-view-item.on { background: var(--brand-weak); color: var(--brand); font-weight: 500; }
.gb-vi-icon { font-size: 11px; }
.gb-vi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-view-add, .gb-table-add {
  padding: 6px 8px; color: var(--text-3); cursor: pointer; border-radius: var(--radius-sm); font-size: 12.5px;
}
.gb-view-add:hover, .gb-table-add:hover { background: var(--hover); color: var(--text); }
.gb-table-add { margin-top: 6px; }
.gb-side-foot { border-top: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.gb-side-btn {
  text-align: left; border: none; background: transparent; color: var(--text-2);
  padding: 6px 8px; border-radius: var(--radius-sm); font-size: 12.5px;
}
.gb-side-btn:hover { background: var(--hover); color: var(--text); }
.gb-current-user {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: var(--radius-sm);
  cursor: pointer; margin-top: 4px;
}
.gb-current-user:hover { background: var(--hover); }
.gb-role-tag {
  margin-left: auto; font-size: 10px; color: var(--text-3); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 8px;
}
.gb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.gb-topbar {
  height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.gb-top-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.gb-table-icon { font-size: 15px; }
.gb-table-name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.gb-tabs { display: flex; gap: 2px; overflow-x: auto; }
.gb-tab {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-2); font-size: 12.5px; white-space: nowrap;
}
.gb-tab:hover { background: var(--hover); }
.gb-tab.on { background: var(--brand-weak); color: var(--brand); font-weight: 500; }
.gb-top-right { display: flex; align-items: center; gap: 6px; }
.gb-search-wrap {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); width: 210px;
}
.gb-search { border: none; background: transparent; outline: none; width: 100%; }
.gb-toolbar {
  height: 42px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.gb-view-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.gb-vs-btn {
  width: 30px; height: 26px; border: none; background: var(--panel); color: var(--text-3);
  border-right: 1px solid var(--line-2);
}
.gb-vs-btn:last-child { border-right: none; }
.gb-vs-btn:hover { background: var(--hover); }
.gb-vs-btn.on { background: var(--brand-weak); color: var(--brand); }
.gb-tool-group { display: flex; gap: 2px; }
.gb-tool-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border: none; background: transparent; color: var(--text-2); border-radius: var(--radius-sm); font-size: 12.5px;
}
.gb-tool-btn:hover { background: var(--hover); color: var(--text); }
.gb-row-count { color: var(--text-3); font-size: 12px; }
.gb-readonly-tag { color: var(--warn); font-size: 12px; }
.gb-view-host { flex: 1; overflow: hidden; position: relative; }

/* ---------------------------------------------------------------- 表格视图 */
.gb-grid-wrap { height: 100%; }
.gb-grid-scroll { height: 100%; overflow: auto; position: relative; background: var(--cell); }
.gb-row { display: flex; border-bottom: 1px solid var(--line-2); }
.gb-row-head {
  position: sticky; top: 0; z-index: 6; background: var(--cell-head);
  border-bottom: 1px solid var(--line);
}
.gb-grid-head { position: sticky; top: 0; z-index: 6; background: var(--cell-head); }
.gb-cell {
  flex: none; display: flex; align-items: center; gap: 5px; padding: 0 8px;
  border-right: 1px solid var(--line-2); overflow: hidden; min-width: 0; position: relative;
}
.gb-cell > * { min-width: 0; }
.gb-row-head .gb-cell { height: 36px; color: var(--text-2); font-weight: 500; }
.gb-cell-sel {
  width: 40px; min-width: 40px; justify-content: center; padding: 0;
  background: var(--cell); position: sticky; z-index: 4;
}
.gb-row-head .gb-cell-sel { background: var(--cell-head); z-index: 7; }
.gb-sel-box {
  width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
}
.gb-cell-sel.on .gb-sel-box { background: var(--brand); border-color: var(--brand); }
.gb-cell-head { justify-content: flex-start; }
.gb-fhicon { color: var(--text-3); font-size: 11px; }
.gb-fhname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-fhmenu { border: none; background: transparent; color: var(--text-3); opacity: 0; padding: 0 2px; }
.gb-cell-head:hover .gb-fhmenu { opacity: 1; }
.gb-col-grip {
  position: absolute; right: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 3;
}
.gb-col-grip:hover { background: var(--brand-weak); }
.gb-cell-addcol { width: 44px; min-width: 44px; justify-content: center; color: var(--text-3); cursor: pointer; }
.gb-cell-addcol:hover { background: var(--hover); color: var(--brand); }
.gb-cell-primary { font-weight: 500; }
.gb-row-expand {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: none; border-radius: 4px; background: transparent;
  color: var(--text-3); opacity: 0; font-size: 11px;
}
.gb-row:hover .gb-row-expand { opacity: 1; }
.gb-row-expand:hover { background: var(--hover); color: var(--brand); }
.gb-cell-ops {
  width: 34px; min-width: 34px; justify-content: center; color: var(--text-3); cursor: pointer;
  border-right: none; opacity: 0;
}
.gb-row:hover .gb-cell-ops { opacity: 1; }
.gb-cell-ops:hover { background: var(--hover); color: var(--text); }
.gb-frozen { position: sticky; z-index: 3; background: var(--cell); }
.gb-row-head .gb-frozen { z-index: 7; background: var(--cell-head); }
.gb-cell.editing { padding: 0 3px; background: var(--cell); z-index: 5; }
.gb-cell-input {
  width: 100%; height: 26px; border: 2px solid var(--brand); border-radius: 4px;
  padding: 0 6px; outline: none; background: var(--panel); color: var(--text);
}
textarea.gb-cell-input { height: auto; padding: 4px 6px; resize: none; }
input.gb-cell-input[type="date"], input.gb-cell-input[type="datetime-local"] { padding: 0 3px; }
.gb-cell-pickbtn {
  width: 100%; text-align: left; border: 2px solid var(--brand); border-radius: 4px;
  background: var(--panel); padding: 3px 6px; height: 26px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: var(--text);
}
.gb-cell-multi { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 2px 0; }
.gb-chip-pick { cursor: pointer; opacity: .5; }
.gb-chip-pick.on { opacity: 1; }
.gb-attach-edit { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.gb-attach-item {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--panel-2); font-size: 11px; max-width: 150px;
}
.gb-attach-item img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; }
.gb-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-addrow {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; color: var(--text-3);
  cursor: pointer; border-bottom: 1px solid var(--line-2);
}
.gb-addrow:hover { background: var(--hover); color: var(--brand); }
.gb-grid-empty { padding: 60px 20px; text-align: center; }
.gb-grid-more { padding: 12px; text-align: center; color: var(--text-3); font-size: 12px; }
.gb-group-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--panel-2);
  border-bottom: 1px solid var(--line-2); cursor: pointer; position: sticky; top: 36px; z-index: 5;
}
.gb-group-head:hover { background: var(--hover); }
.gb-group-arrow { color: var(--text-3); width: 10px; }
.gb-group-name { font-weight: 500; }
.gb-group-count { color: var(--text-3); font-size: 12px; }
.gb-bulkbar {
  display: none; position: sticky; bottom: 0; z-index: 8; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--panel); border-top: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gb-bulkbar.on { display: flex; }
.gb-bulk-count { font-weight: 500; }
.gb-bulk-edit { padding: 4px 0; }

/* ---------------------------------------------------------------- 视图空态 */
.gb-view-empty { padding: 70px 20px; text-align: center; color: var(--text-2); }
.gb-view-empty-ico { font-size: 32px; color: var(--text-3); margin-bottom: 10px; }
.gb-view-empty-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.gb-view-empty-sub { color: var(--text-3); font-size: 12px; margin-bottom: 14px; }
.gb-gantt-pickers { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* ---------------------------------------------------------------- 看板 */
.gb-kanban { display: flex; gap: 12px; padding: 14px; height: 100%; overflow: auto; align-items: flex-start; }
.gb-kan-col {
  width: 268px; flex: none; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; max-height: 100%;
}
.gb-kan-col.drag-over { border-color: var(--brand); background: var(--brand-weak); }
.gb-kan-head { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-bottom: 1px solid var(--line-2); }
.gb-kan-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gb-kan-name { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-kan-count { color: var(--text-3); font-size: 11px; }
.gb-kan-add { border: none; background: transparent; color: var(--text-3); font-size: 14px; }
.gb-kan-add:hover { color: var(--brand); }
.gb-kan-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 40px; }
.gb-kan-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 10px; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.gb-kan-card:hover { border-color: var(--brand); }
.gb-kan-card.dragging { opacity: .45; }
.gb-kan-cover { margin: -9px -10px 2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; }
.gb-kan-cover img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gb-kan-title { font-weight: 500; line-height: 1.4; }
.gb-kan-row { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.gb-kan-label { color: var(--text-3); flex: none; min-width: 46px; }

/* ---------------------------------------------------------------- 日历 */
.gb-cal { height: 100%; display: flex; flex-direction: column; padding: 12px; }
.gb-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gb-cal-title { font-size: 14px; font-weight: 600; margin: 0 6px; }
.gb-cal-fieldname { color: var(--text-3); font-size: 12px; }
.gb-cal-grid {
  flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 22px repeat(6, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto;
}
.gb-cal-wd { background: var(--cell-head); color: var(--text-2); font-size: 11px; text-align: center; padding: 4px 0; }
.gb-cal-cell {
  background: var(--cell); padding: 4px 5px; display: flex; flex-direction: column; gap: 3px;
  min-height: 74px; overflow: hidden;
}
.gb-cal-cell.muted { background: var(--panel-2); }
.gb-cal-cell.muted .gb-cal-day { color: var(--text-3); }
.gb-cal-cell.today .gb-cal-day {
  background: var(--brand); color: #fff; border-radius: 50%; width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.gb-cal-day { font-size: 11px; color: var(--text-2); }
.gb-cal-items { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.gb-cal-item {
  font-size: 11px; padding: 1px 5px; border-radius: 3px; background: var(--brand-weak); color: var(--brand);
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gb-cal-item:hover { filter: brightness(0.95); }
.gb-cal-more { font-size: 10px; color: var(--text-3); padding-left: 4px; }

/* ---------------------------------------------------------------- 画廊 */
.gb-gallery {
  height: 100%; overflow: auto; padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
  align-content: start;
}
.gb-gallery.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gb-gallery.large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gb-gal-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.gb-gal-card:hover { border-color: var(--brand); }
.gb-gal-cover { height: 130px; overflow: hidden; background: var(--panel-2); }
.gb-gal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-gal-cover-gen {
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 600;
}
.gb-gal-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.gb-gal-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-gal-fields { display: flex; flex-direction: column; gap: 4px; }
.gb-gal-row { display: flex; gap: 6px; font-size: 12px; align-items: center; }
.gb-gal-label { color: var(--text-3); flex: none; min-width: 48px; }

/* ---------------------------------------------------------------- 甘特 */
.gb-gantt { height: 100%; display: flex; overflow: hidden; }
.gb-gantt-left { width: 230px; flex: none; border-right: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.gb-gantt-lhead {
  height: 46px; display: flex; align-items: center; padding: 0 12px; font-weight: 500;
  border-bottom: 1px solid var(--line); background: var(--cell-head);
}
.gb-gantt-lrow {
  height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-2); font-size: 12px;
}
.gb-gantt-lrow:hover { background: var(--hover); }
.gb-gantt-lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-gantt-ldate { color: var(--text-3); font-size: 10px; }
.gb-gantt-right { flex: 1; overflow: auto; }
.gb-gantt-scale { display: flex; height: 24px; position: sticky; top: 0; z-index: 3; background: var(--cell-head); }
.gb-gantt-month {
  flex: none; border-right: 1px solid var(--line); font-size: 11px; color: var(--text-2);
  display: flex; align-items: center; padding-left: 6px;
}
.gb-gantt-days { display: flex; height: 22px; border-bottom: 1px solid var(--line); }
.gb-gantt-day {
  flex: none; font-size: 10px; color: var(--text-3); text-align: center; border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.gb-gantt-day.weekend { background: var(--panel-2); }
.gb-gantt-day.today { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.gb-gantt-wd { font-size: 8px; }
.gb-gantt-rbody { position: relative; }
.gb-gantt-bars { position: relative; }
.gb-gantt-bar {
  position: absolute; height: 22px; border-radius: 4px; background: var(--brand); color: #fff;
  font-size: 11px; display: flex; align-items: center; padding: 0 8px; cursor: pointer;
  overflow: hidden; white-space: nowrap; z-index: 2;
}
.gb-gantt-bar:hover { filter: brightness(1.1); }
.gb-gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 1; opacity: .7; }

/* ---------------------------------------------------------------- 抽屉 */
.gb-drawer-mask { position: fixed; inset: 0; background: transparent; z-index: 60; opacity: 0; transition: opacity .2s; }
.gb-drawer-mask.in { background: rgba(15, 20, 30, .18); opacity: 1; }
.gb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw; background: var(--panel);
  border-left: 1px solid var(--line); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow);
}
.gb-drawer.in { transform: none; }
.gb-drawer-head {
  height: 46px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12px;
}
.gb-drawer-body { flex: 1; overflow: auto; padding: 16px; }
.gb-drawer-title {
  width: 100%; font-size: 18px; font-weight: 600; border: none; outline: none; background: transparent;
  padding: 4px 0 14px; color: var(--text);
}
.gb-drawer-title.readonly { pointer-events: none; }
.gb-drawer-row { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.gb-drawer-label {
  width: 108px; flex: none; color: var(--text-3); font-size: 12px; padding-top: 4px;
  display: flex; gap: 5px; align-items: center;
}
.gb-dl-ico { font-size: 11px; }
.gb-drawer-value { flex: 1; min-width: 0; padding: 3px 6px; border-radius: var(--radius-sm); min-height: 24px; }
.gb-drawer-value.editable:hover { background: var(--hover); cursor: text; }
.gb-drawer-foot {
  flex: none; border-top: 1px solid var(--line); padding: 9px 16px; color: var(--text-3); font-size: 11px;
  display: flex; flex-direction: column; gap: 3px;
}

/* ---------------------------------------------------------------- 弹层 */
.gb-overlay {
  position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; padding: 20px;
}
.gb-overlay.in { opacity: 1; }
.gb-modal {
  background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); max-width: 94vw;
  max-height: 88vh; display: flex; flex-direction: column; border: 1px solid var(--line);
}
.gb-modal-head {
  height: 48px; flex: none; display: flex; align-items: center; padding: 0 10px 0 18px;
  border-bottom: 1px solid var(--line);
}
.gb-modal-title { flex: 1; font-weight: 600; font-size: 14px; }
.gb-modal-body { flex: 1; overflow: auto; padding: 18px; }
.gb-modal-foot {
  flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.gb-confirm-msg { line-height: 1.7; color: var(--text-2); }
.gb-menu {
  position: fixed; z-index: 100; min-width: 156px; max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 4px; opacity: 0; transform: translateY(-3px);
  transition: opacity .12s, transform .12s;
}
.gb-menu.in { opacity: 1; transform: none; }
.gb-menu-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12.5px; color: var(--text);
}
.gb-menu-item:hover { background: var(--hover); }
.gb-menu-item.is-danger { color: var(--danger); }
.gb-menu-item.is-danger:hover { background: var(--danger-weak); }
.gb-menu-item.is-disabled { opacity: .45; cursor: default; }
.gb-menu-ico { width: 15px; text-align: center; color: var(--text-3); font-size: 12px; }
.gb-menu-item.is-danger .gb-menu-ico { color: var(--danger); }
.gb-menu-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-menu-hint { color: var(--text-3); font-size: 11px; }
.gb-menu-div { height: 1px; background: var(--line); margin: 4px 6px; }
.gb-toasts {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.gb-toast {
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 8px 14px; font-size: 12.5px; color: var(--text);
  opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; max-width: 460px;
}
.gb-toast.in { opacity: 1; transform: none; }
.gb-toast.is-error { border-color: var(--danger); color: var(--danger); }
.gb-toast.is-warn { border-color: var(--warn); color: var(--warn); }
.gb-toast.is-info { border-color: var(--brand); color: var(--brand); }

/* ---------------------------------------------------------------- 字段配置 */
.gb-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.gb-type-item {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--text-2); font-size: 12.5px;
  text-align: left;
}
.gb-type-item:hover { border-color: var(--brand); color: var(--text); }
.gb-type-item.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); font-weight: 500; }
.gb-ti-ico { width: 15px; text-align: center; }
.gb-opt-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.gb-choices { display: flex; flex-direction: column; gap: 6px; }
.gb-choice-row { display: flex; align-items: center; gap: 8px; }
.gb-choice-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; cursor: pointer; }
.gb-choice-name { flex: 1; }
.gb-choice-add { align-self: flex-start; }
.gb-color-grid { display: grid; grid-template-columns: repeat(6, 20px); gap: 6px; padding: 4px; }
.gb-color-dot { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.gb-color-dot.on { border-color: var(--text); }
.gb-formula-input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 9px;
  background: var(--panel-2); outline: none; resize: vertical; font-family: "Cascadia Mono", Consolas, monospace;
}
.gb-formula-input:focus { border-color: var(--brand); }
.gb-formula-tools { display: flex; gap: 6px; margin: 7px 0; }
.gb-formula-status { font-size: 11.5px; color: var(--text-3); min-height: 16px; }
.gb-formula-status.is-ok { color: var(--ok); }
.gb-formula-status.is-error { color: var(--danger); }
.gb-formula-preview { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }
.gb-func-list { max-height: 320px; overflow: auto; padding: 4px 6px; min-width: 300px; }
.gb-func-cat { font-size: 11px; color: var(--text-3); margin: 7px 0 4px; }
.gb-func-names { display: flex; flex-wrap: wrap; gap: 4px; }
.gb-func-name {
  font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: var(--panel-2);
  border: 1px solid var(--line); cursor: pointer; font-family: Consolas, monospace;
}
.gb-func-name:hover { border-color: var(--brand); color: var(--brand); }
.gb-field-form { padding: 2px 0; }

/* ---------------------------------------------------------------- 条件编辑器 */
.gb-cond-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gb-cond-list { display: flex; flex-direction: column; gap: 8px; }
.gb-cond-row { display: flex; align-items: center; gap: 7px; }
.gb-cond-row .gb-select { width: auto; min-width: 120px; }
.gb-cond-idx { width: 16px; color: var(--text-3); font-size: 11px; text-align: center; }
.gb-op-select { min-width: 92px; }
.gb-cond-value { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.gb-value-input, .gb-value-pick { flex: 1; }
.gb-value-pick { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- 字段列表 / 成员 */
.gb-field-list, .gb-user-list { display: flex; flex-direction: column; gap: 2px; }
.gb-field-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: var(--radius-sm); }
.gb-field-row:hover { background: var(--hover); }
.gb-field-row.is-hidden { opacity: .5; }
.gb-fr-ico { width: 15px; text-align: center; color: var(--text-3); font-size: 11px; }
.gb-fr-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.gb-user-info { flex: 1; min-width: 0; }
.gb-user-name { font-weight: 500; }
.gb-user-sub { color: var(--text-3); font-size: 11px; }
.gb-tabs2 { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.gb-tab2 {
  padding: 7px 12px; border: none; background: transparent; color: var(--text-2);
  border-bottom: 2px solid transparent; font-size: 12.5px;
}
.gb-tab2.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.gb-pick-list { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gb-pick-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12.5px;
}
.gb-pick-row:hover { background: var(--hover); }
.gb-pick-row.on { background: var(--brand-weak); }
.gb-empty-hint { padding: 24px; text-align: center; color: var(--text-3); }

/* ---------------------------------------------------------------- 菜单分组标题 */
.gb-menu-head {
  padding: 7px 12px 4px; font-size: 11px; color: var(--text-3); letter-spacing: .4px;
  border-top: 1px solid var(--line-2); margin-top: 4px;
}
.gb-menu-head:first-child { border-top: none; margin-top: 0; }
.gb-menu-hint { color: var(--text-3); font-size: 11px; margin-left: auto; padding-left: 14px; }
.gb-btn-sm { padding: 3px 9px; font-size: 12px; }
.gb-btn.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }

/* ---------------------------------------------------------------- 表单视图 */
.gb-formview { flex: 1; min-height: 0; overflow: auto; background: var(--bg); }
.gb-form-tools {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.gb-form-tools .gb-spacer { flex: 1; }
.gb-form-card {
  max-width: 640px; margin: 26px auto 60px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gb-form-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line-2); }
.gb-form-title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.gb-form-desc { margin-top: 8px; color: var(--text-2); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; }
.gb-form-items { padding: 6px 26px 2px; }
.gb-form-foot { padding: 16px 26px 22px; }
.gb-form-note { padding: 0 26px 20px; color: var(--text-3); font-size: 11.5px; }

.gb-fm-item { padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.gb-fm-item:last-child { border-bottom: none; }
.gb-fm-item.has-error .gb-fm-ctrl .gb-fm-input,
.gb-fm-item.has-error .gb-fm-ctrl .gb-fm-select,
.gb-fm-item.has-error .gb-fm-ctrl .gb-fm-textarea { border-color: var(--danger); }
.gb-fm-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.gb-fm-req { color: var(--danger); margin-left: 3px; }
.gb-fm-help { color: var(--text-3); font-size: 11.5px; margin-top: 5px; }
.gb-fm-ctrl { display: block; }
.gb-fm-input, .gb-fm-select, .gb-fm-textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); outline: none;
}
.gb-fm-input:focus, .gb-fm-select:focus, .gb-fm-textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak);
}
.gb-fm-textarea { min-height: 76px; resize: vertical; line-height: 1.7; }
.gb-fm-select { cursor: pointer; }
.gb-fm-err { color: var(--danger); font-size: 11.5px; margin-top: 5px; }

.gb-fm-switch-wrap { display: inline-flex; align-items: center; gap: 9px; }
.gb-fm-switch-txt { color: var(--text-2); font-size: 12.5px; }
.gb-fm-switch {
  display: inline-flex; align-items: center; width: 40px; height: 22px; padding: 2px;
  border: none; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .16s;
}
.gb-fm-switch .gb-fm-knob {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .16s; transform: translateX(0);
}
.gb-fm-switch.on { background: var(--brand); }
.gb-fm-switch.on .gb-fm-knob { transform: translateX(18px); }

.gb-fm-stars { display: inline-flex; gap: 2px; }
.gb-fm-star { font-size: 19px; line-height: 1; color: var(--line); cursor: pointer; background: none; border: none; padding: 0 1px; }
.gb-fm-star.on { color: #f5a623; }
.gb-fm-rating-num { margin-left: 10px; color: var(--text-3); font-size: 11.5px; }
.gb-fm-range { flex: 1; }
.gb-fm-range-txt { color: var(--text-2); font-size: 12px; margin-left: 8px; white-space: nowrap; }
.gb-fm-progress { display: flex; align-items: center; }
.gb-fm-progress-val { color: var(--text-2); font-size: 12px; margin-left: 8px; }

.gb-fm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gb-fm-chip {
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); cursor: pointer; font-size: 12.5px; color: var(--text-2);
}
.gb-fm-chip:hover { border-color: var(--brand); color: var(--brand); }
.gb-fm-chip.on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.gb-fm-empty-opt { color: var(--text-3); font-size: 12px; }

.gb-fm-upload {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); cursor: pointer; font-size: 12.5px; color: var(--text-2);
}
.gb-fm-upload:hover { border-color: var(--brand); color: var(--brand); }
.gb-fm-upload.is-busy { opacity: .6; cursor: progress; }
.gb-fm-files { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.gb-fm-file {
  display: flex; align-items: center; gap: 8px; padding: 5px 9px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 12px;
}
.gb-fm-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-fm-file-size { color: var(--text-3); font-size: 11px; }
.gb-fm-file-ico { color: var(--text-3); }
.gb-fm-file-thumb { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; }
.gb-fm-file-del {
  border: none; background: none; color: var(--text-3); padding: 0 3px; font-size: 12px; line-height: 1;
}
.gb-fm-file-del:hover { color: var(--danger); }
.gb-fm-label-txt { vertical-align: middle; }

.gb-form-submit {
  width: 100%; padding: 10px 16px; border: none; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 500;
}
.gb-form-submit:hover { filter: brightness(1.07); }
.gb-form-submit:disabled { opacity: .6; cursor: not-allowed; }

/* 表单设置对话框 */
.gb-form-cfg { max-height: 62vh; overflow: auto; }
.gb-form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gb-form-grid2 .gb-field-row { flex-direction: column; align-items: stretch; gap: 3px; }
.gb-fmcfg-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.gb-fmcfg-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.gb-fmcfg-row:last-child { border-bottom: none; }
.gb-fmcfg-row:hover { background: var(--hover); }
.gb-fmcfg-ico { width: 16px; text-align: center; color: var(--text-3); }
.gb-fmcfg-name { flex: 0 0 auto; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-fmcfg-label { flex: 1; min-width: 90px; padding: 3px 7px; }
.gb-fmcfg-req { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 11.5px; cursor: pointer; }
.gb-fmcfg-move { display: flex; gap: 2px; }
.gb-fmcfg-rest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.gb-fmcfg-add {
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--text-2); font-size: 12px;
}
.gb-fmcfg-add:hover { border-color: var(--brand); color: var(--brand); }
.gb-qcol-row { cursor: pointer; }

/* ---------------------------------------------------------------- 查询视图 */
.gb-qview { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.gb-q-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.gb-q-ico { color: var(--text-3); }
.gb-q-input {
  flex: 1; min-width: 0; max-width: 440px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); outline: none;
}
.gb-q-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.gb-q-meta {
  display: flex; align-items: center; gap: 10px; padding: 7px 18px;
  color: var(--text-3); font-size: 12px; background: var(--panel-2);
  border-bottom: 1px solid var(--line-2);
}
.gb-q-count { color: var(--text-2); }
.gb-q-readonly { margin-left: auto; color: var(--text-3); }
.gb-q-body { flex: 1; min-height: 0; overflow: auto; padding: 0 0 20px; }
.gb-q-scroll { overflow: auto; }
.gb-q-table { width: 100%; border-collapse: collapse; background: var(--cell); }
.gb-q-table th, .gb-q-table td {
  border: 1px solid var(--line); padding: 7px 10px; text-align: left;
  font-size: 12.5px; vertical-align: top;
}
.gb-q-table th { background: var(--cell-head); font-weight: 500; color: var(--text-2); position: sticky; top: 0; z-index: 1; }
.gb-q-table tbody tr:hover td { background: var(--hover); }

/* ---------------------------------------------------------------- 分享对话框 */
.gb-share-status {
  padding: 9px 12px; border-radius: var(--radius-sm); background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; line-height: 1.7;
  margin-bottom: 14px;
}
.gb-share-status.on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand); }
.gb-share-line { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.gb-share-link { flex: 1; min-width: 0; font-size: 12px; }
.gb-share-qr { display: flex; justify-content: center; padding: 16px 0 6px; }
.gb-share-qr img { width: 168px; height: 168px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.gb-share-qr-ph {
  width: 168px; height: 168px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px; color: var(--text-3); font-size: 12px; line-height: 1.7;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.gb-share-foot { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ---------------------------------------------------------------- 免登录页 */
.gb-pub { min-height: 100%; }
.gb-pub-wrap { max-width: 760px; margin: 0 auto; padding: 26px 16px 50px; }
.gb-pub-brand { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; margin-bottom: 16px; }
.gb-pub-logo { color: var(--brand); font-size: 16px; }
.gb-pub-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.gb-pub-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line-2); }
.gb-pub-title { font-size: 17px; font-weight: 600; }
.gb-pub-sub { margin-top: 7px; color: var(--text-2); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; }
.gb-pub .gb-form-items { padding: 4px 22px 2px; }
.gb-pub .gb-form-foot { padding: 16px 22px 20px; }
.gb-pub .gb-form-note { padding: 0 22px 18px; }
.gb-pub .gb-q-bar, .gb-pub .gb-q-meta { padding-left: 22px; padding-right: 22px; }
.gb-pub-foot { text-align: center; color: var(--text-3); font-size: 11.5px; margin-top: 18px; }
.gb-pub-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gb-pub-fail { padding: 34px 22px; text-align: center; }
.gb-pub-fail-ico { font-size: 30px; color: var(--warn); margin-bottom: 10px; }
.gb-pub-fail .gb-pub-sub { margin-top: 8px; }
.gb-pub-done:not(:empty) { padding: 30px 22px; }
.gb-pub-done-inner { text-align: center; }
.gb-pub-done-ico {
  width: 52px; height: 52px; line-height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--brand-weak); color: var(--ok); font-size: 26px;
}
.gb-pub-done-title { font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.gb-pub-boot { padding: 60px 20px; text-align: center; color: var(--text-3); }

/* ---------------------------------------------------------------- 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(130, 138, 148, .35); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(130, 138, 148, .6); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 860px) {
  .gb-sidebar { width: 190px; }
  .gb-search-wrap { width: 140px; }
}
