/* ============ Components ============ */
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap; user-select: none;
}
.btn:hover { border-color: #C9D6EA; background: #F8FAFD; color: var(--ink); }
.btn:active { transform: translateY(.5px); }
.btn .icon { flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(31, 107, 255, .25); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-soft { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.btn-soft:hover { background: #E3EDFF; border-color: #C9DAFF; color: var(--brand-600); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: #F2F5FA; color: var(--ink); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn-danger-soft { background: var(--red-bg); border-color: var(--red-line); color: var(--red-600); }
.btn-danger-soft:hover { background: #FEE4E2; border-color: #FDA29B; color: var(--red-600); }
.btn-sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 5px; gap: 4px; }
.btn-lg { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-icon { width: 32px; padding: 0; border-color: transparent; background: transparent; color: var(--ink-3); }
.btn-icon:hover { background: #F2F5FA; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-loading .icon { animation: spin 1s linear infinite; }
.link-btn {
  display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 0 2px;
  color: var(--brand); font-size: 12.5px; cursor: pointer; border-radius: 3px; white-space: nowrap;
}
.link-btn:hover { color: var(--brand-600); text-decoration: underline; }
.link-btn.danger { color: var(--red); }
.link-btn.danger:hover { color: var(--red-600); }
.link-btn.muted { color: var(--ink-3); }
.link-btn.muted:hover { color: var(--ink-2); }
.table-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px;
  border-radius: var(--r-xs); font-size: 11.5px; font-weight: 500; line-height: 1;
  white-space: nowrap; border: 1px solid transparent; vertical-align: middle;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.tag-blue { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }
.tag-red { color: var(--red-600); background: var(--red-bg); border-color: var(--red-line); }
.tag-orange { color: var(--orange-600); background: var(--orange-bg); border-color: var(--orange-line); }
.tag-green { color: var(--green-600); background: var(--green-bg); border-color: var(--green-line); }
.tag-gray { color: var(--ink-3); background: #F2F4F7; border-color: var(--line); }
.tag-purple { color: var(--purple); background: var(--purple-bg); border-color: #D9D6FE; }
.tag-cyan { color: #0E7090; background: var(--cyan-bg); border-color: #A5F0FC; }
.tag-lg { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 5px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.1px; }
.card-title .icon { color: var(--brand); }
.card-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.card-body { padding: 14px 18px 18px; }
.card-foot { padding: 11px 18px; border-top: 1px solid var(--line-2); }
.card-hover { transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base); }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: #D8E2F2; transform: translateY(-1px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.section-title .icon { color: var(--brand); }
.section-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Page Head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head-left { min-width: 0; }
.page-title { font-size: 20px; font-weight: 650; letter-spacing: -.3px; color: var(--ink); line-height: 1.3; }
.page-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; align-items: center; gap: 2px; background: #EEF2F8; padding: 3px; border-radius: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-3);
  font-size: 12.5px; font-weight: 500; cursor: pointer; transition: .15s; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab-count {
  min-width: 18px; height: 17px; padding: 0 5px; border-radius: 9px; background: #E4EAF4;
  color: var(--ink-3); font-size: 10.5px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.tab.active .tab-count { background: var(--brand-50); color: var(--brand); }
.tabs-line { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: none; padding: 0; border-radius: 0; }
.tabs-line .tab { height: 38px; padding: 0 1px; border-radius: 0; background: none; box-shadow: none; font-size: 13px; position: relative; }
.tabs-line .tab.active { color: var(--brand); font-weight: 600; box-shadow: none; }
.tabs-line .tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px 2px 0 0; }
.tabs-line .tab-count { background: #EEF2F8; }
.tabs-line .tab.active .tab-count { background: var(--brand-50); color: var(--brand); }

/* ---------- Form ---------- */
.input, .select, .textarea {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; padding: 0 10px; color: var(--ink); font-size: 13px;
  transition: border-color .16s, box-shadow .16s; outline: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: #C9D6EA; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 107, 255, .12); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; cursor: pointer; }
.search-box {
  position: relative; display: flex; align-items: center; gap: 6px; height: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px;
  transition: border-color .16s, box-shadow .16s; min-width: 200px;
}
.search-box .icon { color: var(--ink-4); }
.search-box input { border: 0; background: none; outline: none; flex: 1; min-width: 0; height: 100%; font-size: 12.5px; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-4); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 107, 255, .12); }
.search-box .clear { border: 0; background: none; color: var(--ink-4); cursor: pointer; padding: 0; display: inline-flex; }
.search-box .clear:hover { color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.field-label .req { color: var(--red); }
.field-hint { font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.checkbox { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.radio-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.radio-line label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.switch { position: relative; display: inline-flex; width: 34px; height: 19px; border-radius: 999px; background: #D0D5DD; cursor: pointer; transition: .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--brand); }
.switch.on::after { left: 17px; }

/* ---------- Table ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-xs); overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.table-toolbar .search-box { width: 230px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.tool-btn .icon { color: var(--ink-3); }
.tool-btn:hover { background: #F2F5FA; color: var(--ink); }
.tool-btn:hover .icon { color: var(--ink-2); }
.tool-btn.active { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.tool-btn.active .icon { color: var(--brand); }
.tool-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; flex: none; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.data-table th {
  position: relative; background: #F8FAFC; color: var(--ink-3); font-size: 12px; font-weight: 500;
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
  user-select: none; height: 40px;
}
.data-table th .th-inner { display: inline-flex; align-items: center; gap: 4px; }
.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: var(--ink); }
.data-table th .sort-icon { color: var(--ink-4); display: inline-flex; }
.data-table th .sort-icon.asc, .data-table th .sort-icon.desc { color: var(--brand); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; vertical-align: middle; color: var(--ink-2); }
.data-table tbody tr { transition: background .13s; cursor: pointer; }
.data-table tbody tr:hover { background: var(--hover-blue); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr.selected { background: var(--brand-50); }
.data-table .cell-strong { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.data-table .cell-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.col-resize { position: absolute; right: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 2; }
.col-resize:hover, .col-resize.active { background: rgba(31, 107, 255, .3); }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 12px; flex-wrap: wrap; gap: 8px; }
.table-foot .foot-info b { color: var(--ink-2); font-weight: 600; }
.pager { display: flex; align-items: center; gap: 3px; }
.pager-btn {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 5px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.pager-btn:hover { background: #F2F5FA; }
.pager-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager-btn[disabled] { opacity: .4; pointer-events: none; }
.empty-state { padding: 52px 20px; text-align: center; color: var(--ink-3); }
.empty-state .empty-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-state h4 { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.empty-state p { font-size: 12px; margin-top: 4px; }
.inline-empty { padding: 22px 10px; text-align: center; color: var(--ink-4); font-size: 12px; }

/* ---------- Avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; font-weight: 600; flex: none; font-size: 11px; letter-spacing: .2px;
  background: var(--brand); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  user-select: none; overflow: hidden;
}
.avatar-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(31, 107, 255, .18); }
.user-inline { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.user-inline .u-name { font-weight: 500; color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.user-inline .u-dept { font-size: 11px; color: var(--ink-4); white-space: nowrap; }

/* ---------- Progress ---------- */
.progress { height: 6px; background: #EEF2F8; border-radius: var(--r-pill); overflow: hidden; position: relative; width: 100%; }
.progress > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--brand); transition: width .55s var(--ease-out); }
.progress.tone-green > i { background: var(--green); }
.progress.tone-orange > i { background: var(--orange); }
.progress.tone-red > i { background: var(--red); }
.progress.tone-purple > i { background: var(--purple); }
.progress-sm { height: 4px; }
.progress-lg { height: 8px; }
.progress-row { display: flex; align-items: center; gap: 8px; }
.progress-row .progress { flex: 1; }
.progress-row .pct { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; min-width: 34px; text-align: right; }

/* ---------- Dropdown / Popover ---------- */
.dropdown-menu {
  position: fixed; z-index: var(--z-dropdown); min-width: 168px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 5px; animation: popIn .16s var(--ease-out);
}
.dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px;
  border: 0; background: transparent; border-radius: 5px; color: var(--ink-2);
  font-size: 12.5px; cursor: pointer; text-align: left; white-space: nowrap;
}
.dropdown-item .icon { color: var(--ink-3); }
.dropdown-item:hover { background: #F4F7FC; color: var(--ink); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger .icon { color: var(--red); }
.dropdown-item.danger:hover { background: var(--red-bg); }
.dropdown-item .item-sub { margin-left: auto; font-size: 10.5px; color: var(--ink-4); }
.dropdown-divider { height: 1px; background: var(--line-2); margin: 4px 2px; }
.popover {
  position: fixed; z-index: var(--z-dropdown); background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 10px; animation: popIn .16s var(--ease-out);
  min-width: 190px;
}
.popover-title { font-size: 11px; color: var(--ink-4); font-weight: 500; padding: 1px 4px 6px; }
.popover .check-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 4px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.popover .check-row:hover { background: #F4F7FC; }
.popover .check-row .checkbox { width: 14px; height: 14px; }
.filter-group { padding: 3px 2px 8px; }
.filter-group + .filter-group { border-top: 1px solid var(--line-2); padding-top: 9px; }
.filter-group-label { font-size: 11px; color: var(--ink-4); padding: 0 4px 5px; }
.filter-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-chip {
  height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 11.5px; cursor: pointer; transition: .14s;
}
.filter-chip:hover { border-color: #C9D6EA; background: #F8FAFD; }
.filter-chip.active { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); font-weight: 500; }

/* ---------- Drawer ---------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .42); z-index: var(--z-mask);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); backdrop-filter: blur(1px);
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(1040px, 94vw); background: #fff;
  z-index: var(--z-drawer); transform: translateX(102%); transition: transform .4s var(--ease-drawer);
  display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(16, 24, 40, .18);
  will-change: transform;
}
.drawer.is-open { transform: none; }
.drawer.fullscreen { width: 100vw; }
.drawer-head { flex: none; padding: 15px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; }
.drawer-head-main { flex: 1; min-width: 0; }
.drawer-title { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.drawer-sub .meta-item { display: inline-flex; align-items: center; gap: 4px; }
.drawer-head-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; background: #FBFCFE; }
.drawer-foot { flex: none; padding: 11px 22px; border-top: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.drawer-section { background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.drawer-section + .drawer-section { margin-top: 12px; }
.drawer-section-head { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-section-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.drawer-section-title .icon { color: var(--brand); }
.drawer-section-body { padding: 14px 16px; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .18s var(--ease-out); backdrop-filter: blur(1px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 520px; max-width: 100%; max-height: calc(100vh - 48px); background: #fff;
  border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: modalIn .22s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.modal-head-main { flex: 1; min-width: 0; }
.modal-title { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.1px; }
.modal-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.modal-close { border: 0; background: none; color: var(--ink-4); cursor: pointer; padding: 2px; border-radius: 4px; display: inline-flex; }
.modal-close:hover { color: var(--ink-2); background: #F2F5FA; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.modal-foot .foot-left { margin-right: auto; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--green); border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 9px 14px; font-size: 12.5px; color: var(--ink-2); min-width: 190px; max-width: 380px;
  animation: toastIn .22s var(--ease-out); pointer-events: auto;
}
.toast .icon { color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.error .icon { color: var(--red); }
.toast.info { border-left-color: var(--brand); }
.toast.info .icon { color: var(--brand); }
.toast.warning { border-left-color: var(--orange); }
.toast.warning .icon { color: var(--orange); }
.toast.leaving { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Misc ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
  border-radius: 5px; background: #F4F6FA; color: var(--ink-3); font-size: 11.5px;
}
.chip b { color: var(--ink-2); font-weight: 600; }
.kv-list { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 12.5px; }
.kv-list dt { color: var(--ink-3); font-weight: 400; display: flex; align-items: center; gap: 4px; }
.kv-list dd { margin: 0; color: var(--ink); min-width: 0; word-break: break-word; }
.snapshot-note { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-4); }
.alert {
  display: flex; gap: 8px; padding: 10px 12px; border-radius: 7px; font-size: 12px; line-height: 1.55;
  border: 1px solid var(--line); background: #F8FAFC; color: var(--ink-2);
}
.alert .icon { flex: none; margin-top: 1px; }
.alert.info { border-color: var(--brand-100); background: var(--brand-50); color: #1D4F9C; }
.alert.info .icon { color: var(--brand); }
.alert.warn { border-color: var(--orange-line); background: var(--orange-bg); color: #8A4B00; }
.alert.warn .icon { color: var(--orange); }
.alert.danger { border-color: var(--red-line); background: var(--red-bg); color: #912018; }
.alert.danger .icon { color: var(--red); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #F7F9FC; border: 1px dashed var(--line); border-radius: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.copy-row .link-btn { margin-left: auto; }
.lock-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-4); }
