/* =====================================================
 * idindoo 笔记助手 — 设计系统 v11
 *
 * 灵感:Halo 后台 / GitHub admin / Tailwind UI admin
 *
 * 核心原则(实用 admin 工具风,不是产品营销风):
 *   1. 暖灰底 (#f5f5f4 stone-100),不是冷白 zinc
 *   2. 圆角 4-6px(更小,不用 12-14)
 *   3. 字重 400-500(细),heading 不超过 500
 *   4. 卡片白底 + 1px 边 + 0 阴影(默认),只有 modal / dropdown 才有 shadow
 *   5. 主操作按钮深色实心(黑底白字),"次要"按钮 outline,"危险" 红色 outline
 *   6. 强调色小红书红 #fe2c55 只在最重要的 1-2 处:
 *      - 顶栏「登录」按钮
 *      - 主区「✨ 转换」按钮
 *      - 选中态侧边栏文章(active post-item 浅红底)
 *      其他位置全用中性灰,无任何蓝/紫/绿
 *   7. sidebar 分类小标题用 11px 大写灰字(halo 风)
 *   8. font stack 加 Inter
 *   9. 零渐变 / 零 shimmer / 零毛玻璃
 *  10. 数字 tabular-nums 统一
 * ===================================================== */

:root {
  /* ============== 暖灰中性色 (stone 11 阶) ============== */
  --c-bg:        #f5f5f4;  /* 页面底色(暖灰) */
  --c-card:      #ffffff;  /* 卡片 / 浮层底 */
  --c-subtle:    #fafaf9;  /* hover 极浅底 */
  --c-hover:     #f5f5f4;  /* hover 浅底 */
  --c-row-alt:   #fafaf9;  /* 斑马纹偶数行 */
  --c-border:    #e7e5e4;  /* 默认描边 */
  --c-border-2:  #d6d3d1;  /* hover 描边 */
  --c-text:      #1c1917;  /* 主文字 */
  --c-text-2:    #44403c;  /* 次文字 */
  --c-text-3:    #78716c;  /* 辅助文字 */
  --c-text-4:    #a8a29e;  /* 弱化文字 / placeholder */

  /* ============== 强调色(只 1-2 处用) ============== */
  --c-accent:        #fe2c55;  /* 小红书红 */
  --c-accent-hover:  #e91e47;
  --c-accent-active: #c91740;
  --c-accent-soft:   #fff0f3;  /* 浅红底 */
  --c-accent-fg:     #ffffff;

  /* ============== 深色实心按钮(替代 brand 红) ============== */
  --c-ink:           #1c1917;
  --c-ink-hover:     #292524;

  /* ============== 语义色(只用 1-2 处) ============== */
  --c-success:     #16a34a;
  --c-success-bg:  #f0fdf4;
  --c-danger:      #dc2626;
  --c-danger-bg:   #fef2f2;

  /* ============== 几何:小圆角 ============== */
  --r-xs: 3px;
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 8px;
  --r-pill: 999px;

  /* ============== 阴影(默认 0,只有 popover 用 1 档) ============== */
  --shadow-pop:   0 4px 12px -2px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-toast: 0 8px 20px -4px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.06);

  /* ============== 字号(7 档,heading ≤ 16) ============== */
  --fs-xs:   12px;  /* caption / hint / 小标题 */
  --fs-sm:   13px;  /* 按钮 / 标签 */
  --fs-base: 14px;  /* 正文 / 表格 */
  --fs-md:   15px;  /* 卡片标题 / 输入 */
  --fs-lg:   16px;  /* modal 标题 */
  --fs-xl:   20px;  /* 品牌大标题 */
  --fs-2xl:  24px;  /* hero(基本不用) */

  /* ============== 间距(6 档,8 进制) ============== */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;

  /* ============== 字体(加 Inter + 中文 fallback) ============== */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* ============== 动画 ============== */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 100ms;
  --d: 150ms;
}

/* =====================================================
 * 基础
 * ===================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: auto; min-height: 100%; }

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";  /* Inter 优化字形 */
  font-variant-numeric: tabular-nums;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }

/* =====================================================
 * 顶部栏(白底 + 1px 底边,无 backdrop)
 * ===================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4);
  height: 52px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; gap: 0; min-width: 0; line-height: 1.3; }
.brand-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--c-text-3);
  font-weight: 400;
  letter-spacing: 0;
}

.actions { display: flex; align-items: center; gap: 6px; }

/* =====================================================
 * 主布局(halo 风:sidebar 240px + main,各为独立卡片)
 * ===================================================== */
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* =====================================================
 * 侧边栏(独立卡片:白底 + 1px 4 边 + 圆角)
 * ===================================================== */
.sidebar {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 0;
  height: fit-content;
  min-height: 480px;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px var(--s-3);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0;
}
.sidebar-header h2 {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0;
  margin: 0;
}

/* 分类小标题(halo 风:11px 灰字) */
.sidebar-section-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px var(--s-3) 4px;
  margin: 0;
}

.search {
  width: calc(100% - var(--s-4));
  margin: 0 var(--s-2) var(--s-2);
  padding: 5px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  background: var(--c-card);
  font-family: inherit;
  color: var(--c-text);
  transition: border-color var(--d) var(--ease);
}
.search:focus { outline: none; border-color: var(--c-text-3); }
.search::placeholder { color: var(--c-text-4); }

.post-list { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }
.post-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease);
  font-size: var(--fs-sm);
}
.post-item:hover { background: var(--c-hover); }
.post-item.active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 500;
}
.post-item .title {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item.active .title { color: var(--c-accent); font-weight: 500; }
.post-item .date {
  font-size: 11px;
  color: var(--c-text-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.sidebar-empty {
  padding: var(--s-2) var(--s-3);
  color: var(--c-text-3);
  font-size: 12px;
  line-height: 1.5;
}
.sidebar-empty-text { color: var(--c-text-3); }

/* =====================================================
 * 工作区
 * ===================================================== */
.workspace {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
  background: transparent;
}

/* =====================================================
 * 卡片(halo 风:白底 + 1px 边 + 6 圆角 + 0 阴影,默认)
 * ===================================================== */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
}
.card:last-child { margin-bottom: 0; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  gap: var(--s-3);
  min-height: 40px;
  background: var(--c-card);
}
.card-header h3 {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0;
}
.card-body { padding: 14px; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.meta {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 400;
}

/* =====================================================
 * 按钮(halo 风:深色实心 primary + outline secondary + ghost)
 * ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text);
  font-family: inherit;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Primary — 深色实心(halo 风:黑底白字) */
.btn-primary {
  background: var(--c-ink);
  color: white;
  border-color: var(--c-ink);
}
.btn-primary:hover:not(:disabled) { background: var(--c-ink-hover); border-color: var(--c-ink-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(0.5px); }

/* 特殊:小红书红实心(只用于"✨ 转换"主 CTA + 顶栏"登录") */
.btn-accent {
  background: var(--c-accent);
  color: var(--c-accent-fg);
  border-color: var(--c-accent);
}
.btn-accent:hover:not(:disabled) { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn-accent:active:not(:disabled) { background: var(--c-accent-active); transform: translateY(0.5px); }

/* Secondary — 白底 + 1px 边 */
.btn-secondary {
  background: var(--c-card);
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--c-hover);
  border-color: var(--c-border-2);
}

/* Ghost — 透明,hover 显底色 */
.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--c-hover);
  color: var(--c-text);
}

/* Danger — outline 红 */
.btn-danger {
  background: var(--c-card);
  color: var(--c-danger);
  border-color: var(--c-border);
}
.btn-danger:hover:not(:disabled) {
  background: var(--c-danger-bg);
  border-color: var(--c-danger);
}

/* 尺寸 */
.btn-sm  { padding: 3px 9px; font-size: 12px; }
.btn-lg  { padding: 7px 16px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

/* icon-only 按钮(26x26) */
.btn-icon {
  width: 26px; height: 26px;
  padding: 0;
  border-radius: var(--r-sm);
}

/* mini 紧凑小按钮 */
.btn-mini {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--r-xs);
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--d-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}
.btn-mini:hover:not(:disabled) {
  color: var(--c-text);
  border-color: var(--c-border-2);
  background: var(--c-hover);
}
.btn-mini:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-mini.active {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* =====================================================
 * 输入框 / 表单字段(halo 风:1px 边 + 4 圆角 + 浅 focus)
 * ===================================================== */
.pf-field {
  position: relative;
  margin-bottom: var(--s-3);
}
.pf-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 4px;
}
.pf-field input[type="text"],
.pf-field input[type="password"],
.pf-field input[type="email"],
.pf-field input[type="url"],
.pf-field input[type="number"],
.pf-field textarea,
.pf-field select,
input.text-input,
textarea.text-input,
select.text-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 400;
  font-family: inherit;
  background: var(--c-card);
  color: var(--c-text);
  transition: border-color var(--d) var(--ease), box-shadow var(--d) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.pf-field input:focus,
.pf-field textarea:focus,
.pf-field select:focus,
input.text-input:focus,
textarea.text-input:focus {
  outline: none;
  border-color: var(--c-text-3);
  box-shadow: 0 0 0 3px var(--c-hover);
}
.pf-field input::placeholder,
.pf-field textarea::placeholder { color: var(--c-text-4); }

.pf-field select,
select.text-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
  cursor: pointer;
}

.pf-hint {
  display: block;
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 3px;
  line-height: 1.5;
}
.pf-hint code {
  background: var(--c-hover);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-2);
}

/* =====================================================
 * 复选框
 * ===================================================== */
.pf-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
  padding: 3px 0;
  font-weight: 400;
}
.pf-checkbox input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--c-accent);
  cursor: pointer;
}

/* =====================================================
 * Provider form modal
 * ===================================================== */
.provider-form-modal { max-width: 480px; }
.provider-form { display: flex; flex-direction: column; }
.provider-form-header { margin-bottom: var(--s-4); }
.provider-form-header h2 {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 2px;
  letter-spacing: 0;
}
.modal-tip {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.5;
}

.pf-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pf-cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
  background: var(--c-card);
  color: var(--c-text-2);
  user-select: none;
  transition: all var(--d-fast) var(--ease);
  font-weight: 400;
}
.pf-cap-chip:hover { border-color: var(--c-border-2); color: var(--c-text); }
.pf-cap-chip:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 500;
}
.pf-cap-chip input { display: none; }

/* 图库 provider 卡片(halo 风:白底 1px 边,选中黑底) */
.pf-block-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 6px;
}
.pf-block-label::after { content: " *"; color: var(--c-accent); }

.pf-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pf-provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-card);
  cursor: pointer;
  font-family: inherit;
  color: var(--c-text);
  transition: all var(--d-fast) var(--ease);
  gap: 2px;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}
.pf-provider-card:hover {
  border-color: var(--c-border-2);
  background: var(--c-hover);
}
.pf-provider-card.active {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: white;
}
.pf-provider-card.active .pf-provider-desc,
.pf-provider-card.active .pf-provider-rate,
.pf-provider-card.active .pf-provider-key {
  color: rgba(255, 255, 255, 0.7);
}
.pf-provider-card.active .pf-provider-key {
  background: rgba(255, 255, 255, 0.12);
}
.pf-provider-icon { font-size: 16px; line-height: 1; margin-bottom: 2px; }
.pf-provider-name { font-size: 13px; font-weight: 500; }
.pf-provider-desc { font-size: 12px; color: var(--c-text-3); }
.pf-provider-rate {
  font-size: 11px;
  color: var(--c-text-4);
  margin-top: 1px;
}
.pf-provider-key {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--c-hover);
  font-weight: 500;
  align-self: flex-start;
}
.pf-provider-key-free {
  color: var(--c-success);
  background: var(--c-success-bg);
}

@media (max-width: 480px) {
  .pf-provider-grid { grid-template-columns: 1fr; }
}

.pf-hint-dynamic {
  display: block;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid var(--c-border);
  background: var(--c-hover);
  color: var(--c-text-2);
}
.pf-hint-dynamic.mode-svg {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.pf-hint-dynamic.mode-bitmap {
  background: var(--c-hover);
  color: var(--c-text-2);
}

/* =====================================================
 * Toast
 * ===================================================== */
.toast {
  position: fixed;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: white;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-toast);
  z-index: 1000;
  max-width: 90vw;
  animation: toast-in var(--d) var(--ease);
  letter-spacing: 0;
}
.toast.success { background: var(--c-success); }
.toast.error   { background: var(--c-danger); }
.toast.hidden  { opacity: 0; pointer-events: none; transition: opacity var(--d); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =====================================================
 * 用户胶囊(下拉菜单)
 * ===================================================== */
.user-menu { position: relative; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 2px;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--d-fast) var(--ease);
  font-family: inherit;
  color: var(--c-text);
  -webkit-appearance: none;
  appearance: none;
}
.user-pill:hover { background: var(--c-hover); }
.avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-pill .name {
  font-size: 13px;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pill .caret {
  font-size: 9px;
  color: var(--c-text-3);
  margin-left: 1px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  min-width: 180px;
  padding: 4px;
  z-index: 100;
  animation: dropdown-in var(--d) var(--ease);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
  padding: 6px 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.user-dropdown-header .dd-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}
.user-dropdown-header .dd-sub {
  font-size: 11px;
  color: var(--c-text-3);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background var(--d-fast) var(--ease);
  font-weight: 400;
}
.user-dropdown-item:hover { background: var(--c-hover); }
.user-dropdown-item.danger { color: var(--c-danger); }
.user-dropdown-item.danger:hover { background: var(--c-danger-bg); }
.user-dropdown-divider {
  height: 1px;
  background: var(--c-border);
  margin: 4px 0;
}

/* =====================================================
 * Modal
 * ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--s-4);
  animation: modal-bg-in var(--d) var(--ease);
}
@keyframes modal-bg-in { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--c-card);
  border-radius: var(--r);
  padding: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
  position: relative;
  animation: modal-in var(--d) var(--ease);
  border: 1px solid var(--c-border);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-content h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--c-text);
  letter-spacing: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px; height: 24px;
  border: none;
  background: transparent;
  color: var(--c-text-3);
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all var(--d-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.modal-close:hover { background: var(--c-hover); color: var(--c-text); }

.modal-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}

/* =====================================================
 * Config Modal section
 * ===================================================== */
.config-modal { max-width: 600px; }
.config-modal-header { margin-bottom: var(--s-4); }
.config-modal-header h2 {
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.config-section {
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border);
}
.config-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.config-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.config-section-title h4 {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  flex: 1;
  letter-spacing: 0;
}
.config-section-title .icon { font-size: 14px; line-height: 1; }
.config-section-desc {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: var(--s-2);
  line-height: 1.5;
}
.config-section-desc code {
  background: var(--c-hover);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-2);
}

.badge-required, .badge-optional {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  letter-spacing: 0;
  text-transform: uppercase;
}
.badge-required {
  background: var(--c-ink);
  color: white;
}
.badge-optional {
  background: var(--c-hover);
  color: var(--c-text-3);
}

.config-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--s-2); }
.config-empty {
  padding: var(--s-3);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-sm);
  text-align: center;
  color: var(--c-text-3);
  font-size: 12px;
}
.config-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-card);
  transition: border-color var(--d-fast) var(--ease);
}
.config-item:hover { border-color: var(--c-border-2); }
.config-info { flex: 1; min-width: 0; }
.config-info strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 1px;
  flex-wrap: wrap;
}
.config-info .config-detail {
  font-size: 11px;
  color: var(--c-text-3);
  font-family: var(--font-mono);
}
.config-actions { display: flex; gap: 3px; flex-shrink: 0; }

.badge-default {
  display: inline-block;
  padding: 0 5px;
  background: var(--c-accent);
  color: white;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
}
.cap-badge {
  display: inline-block;
  padding: 0 5px;
  border-radius: var(--r-xs);
  font-size: 10px;
  background: var(--c-hover);
  color: var(--c-text-2);
  vertical-align: middle;
  font-weight: 500;
  line-height: 14px;
}
.cap-chat  { background: var(--c-hover); color: var(--c-text-2); }
.cap-image { background: var(--c-accent-soft); color: var(--c-accent); }
.cap-video { background: var(--c-hover); color: var(--c-text-2); }

/* =====================================================
 * mini-select
 * ===================================================== */
.mini-select {
  padding: 3px 24px 3px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 12px;
  background: var(--c-card);
  color: var(--c-text);
  cursor: pointer;
  font-family: inherit;
  max-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--d-fast) var(--ease);
  font-weight: 400;
}
.mini-select:hover { border-color: var(--c-border-2); }
.mini-select:focus { outline: none; border-color: var(--c-text-3); }

/* =====================================================
 * 控制条
 * ===================================================== */
.control-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 12px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.control-bar > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 400;
}
.control-bar .mini-select { max-width: 160px; }

/* =====================================================
 * 图片网格(halo 风:紧凑 4 列)
 * ===================================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .image-grid { grid-template-columns: repeat(2, 1fr); }
}
.image-slot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-card);
  transition: border-color var(--d-fast) var(--ease);
}
.image-slot:hover { border-color: var(--c-border-2); }
.slot-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
}
.slot-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--c-hover);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-4);
  font-size: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease);
  position: relative;
  border: 1px solid var(--c-border);
}
.slot-preview.empty { border-style: dashed; }
.slot-preview:hover { background: var(--c-border); }
.slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slot-actions { display: flex; gap: 3px; }
.slot-actions .btn-mini { flex: 1; padding: 3px 2px; justify-content: center; }

.prompt-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  font-size: 12px;
  font-family: inherit;
  background: var(--c-card);
  color: var(--c-text);
  transition: border-color var(--d-fast) var(--ease);
}
.prompt-input:focus { outline: none; border-color: var(--c-text-3); }
.prompt-input::placeholder { color: var(--c-text-4); }

/* =====================================================
 * Image mode indicator / badge
 * ===================================================== */
.image-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 500;
  cursor: help;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-text-2);
}
.image-mode-indicator.mode-svg {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: var(--c-accent-soft);
}
.image-mode-indicator.mode-bitmap {
  background: var(--c-hover);
  color: var(--c-text-2);
  border-color: var(--c-border);
}

.mode-badge {
  display: inline-block;
  padding: 0 5px;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  background: var(--c-hover);
  color: var(--c-text-2);
}
.mode-badge-svg {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.mode-badge-bitmap {
  background: var(--c-hover);
  color: var(--c-text-2);
}

.mode-svg-provider { background: var(--c-accent-soft) !important; color: var(--c-accent) !important; }

/* =====================================================
 * AI 声明(法规强制,halo 风:浅红边)
 * ===================================================== */
.disclosure-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 12px;
  margin-top: var(--s-2);
}
.warn-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--c-accent);
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
  line-height: 14px;
}

/* =====================================================
 * Lightbox
 * ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  flex-direction: column;
  padding: var(--s-4);
  animation: lightbox-in var(--d) var(--ease);
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--d-fast) var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.20); }
.lightbox-download {
  position: absolute;
  top: var(--s-4); right: 56px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--d-fast) var(--ease);
}
.lightbox-download:hover { background: rgba(255, 255, 255, 0.20); }
.lightbox-label {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: var(--r-sm);
}
.lightbox-img {
  max-width: 96vw;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox-hint {
  position: absolute;
  bottom: var(--s-4);
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  letter-spacing: 0;
}

/* =====================================================
 * Free image modal
 * ===================================================== */
.freeimage-modal { max-width: 800px; }
.freeimage-search {
  display: flex;
  gap: 6px;
  margin: var(--s-3) 0;
}
.freeimage-search input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--c-card);
  color: var(--c-text);
  font-family: inherit;
  transition: border-color var(--d) var(--ease), box-shadow var(--d) var(--ease);
}
.freeimage-search input:focus {
  outline: none;
  border-color: var(--c-text-3);
  box-shadow: 0 0 0 3px var(--c-hover);
}
.freeimage-status {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: var(--s-2);
  min-height: 16px;
}
.freeimage-status strong { color: var(--c-text); font-weight: 500; }
.freeimage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 2px;
}
.freeimage-card {
  border: 1.5px solid transparent;
  border-radius: var(--r-xs);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-hover);
  transition: all var(--d-fast) var(--ease);
}
.freeimage-card:hover {
  border-color: var(--c-text-3);
}
.freeimage-card img {
  width: 100%; height: 100px;
  object-fit: cover; display: block;
}
.freeimage-meta { padding: 4px 6px; font-size: 11px; background: var(--c-card); }
.freeimage-source { font-weight: 500; color: var(--c-text-2); margin-bottom: 1px; font-size: 10px; }
.freeimage-author {
  color: var(--c-text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.freeimage-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) 0 0;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}
.freeimage-pagination .btn-mini { padding: 3px 9px; }
.freeimage-pagination .btn-mini:disabled { opacity: 0.4; }
.freeimage-page-info { font-size: 12px; color: var(--c-text-3); font-variant-numeric: tabular-nums; }

/* =====================================================
 * Howto modal
 * ===================================================== */
.howto-modal { max-width: 640px; max-height: 90vh; }
.howto-section {
  background: var(--c-hover);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.howto-section h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--c-text);
}
.howto-section ol { margin: 0 0 0 18px; font-size: 12px; line-height: 1.65; }
.howto-section ol li { margin-bottom: 2px; color: var(--c-text-2); }
.howto-section code {
  background: var(--c-card);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
}
.howto-section a { color: var(--c-accent); text-decoration: none; }
.howto-section a:hover { text-decoration: underline; }
.howto-meta {
  font-size: 11px;
  color: var(--c-text-3);
  margin: 2px 0 0;
  font-style: normal;
}
.howto-tips {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin: 8px 0;
}
.howto-tips h4 { color: var(--c-text); margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.howto-tips ul { margin: 0 0 0 18px; font-size: 12px; line-height: 1.65; color: var(--c-text-2); }
.howto-tips strong { color: var(--c-text); }

/* =====================================================
 * Auth modal
 * ===================================================== */
.auth-modal { max-width: 360px; padding: 24px; }
.auth-logo {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: block;
  margin: 0 auto var(--s-2);
  object-fit: cover;
}
.auth-modal h2 {
  font-size: var(--fs-lg);
  font-weight: 500;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.auth-sub {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .pf-field { margin-bottom: 0; }

.auth-field {
  position: relative;
  margin-bottom: 0;
}
.auth-field input {
  width: 100%;
  padding: 14px 10px 5px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--c-card);
  color: var(--c-text);
  transition: border-color var(--d) var(--ease), box-shadow var(--d) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--c-text-3);
  box-shadow: 0 0 0 3px var(--c-hover);
}
.auth-field label {
  position: absolute;
  left: 10px;
  top: 12px;
  font-size: 13px;
  color: var(--c-text-4);
  pointer-events: none;
  transition: all var(--d) var(--ease);
  background: transparent;
  margin: 0;
  font-weight: 400;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  top: 3px;
  font-size: 10px;
  color: var(--c-text-3);
  font-weight: 500;
}

.auth-disclaimer {
  margin-top: var(--s-3);
  padding: 10px 12px;
  background: var(--c-hover);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.auth-disclaimer h4 {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--c-text);
  font-size: 12px;
}
.auth-disclaimer ol { margin: 0 0 0 18px; }
.auth-disclaimer ol li { margin-bottom: 2px; }
.auth-disclaimer strong { color: var(--c-text); }
.auth-confirm { margin-top: var(--s-2); }
.auth-confirm > p { font-size: 12px; color: var(--c-text-2); margin-bottom: 4px; }
.auth-confirm code {
  display: block;
  padding: 5px 8px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text);
  margin-bottom: 4px;
  user-select: all;
  word-break: break-all;
}

.auth-error {
  font-size: 12px;
  color: var(--c-danger);
  background: var(--c-danger-bg);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-danger);
  margin-top: 4px;
}
.auth-switch {
  text-align: center;
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--c-text-3);
}
.auth-switch a { color: var(--c-accent); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  padding: 8px 12px;
  background: var(--c-ink);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: var(--s-2);
  transition: background var(--d-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.btn-auth-submit:hover:not(:disabled) { background: var(--c-ink-hover); }
.btn-auth-submit:active:not(:disabled) { transform: translateY(0.5px); }
.btn-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* =====================================================
 * Spinner / Progress
 * ===================================================== */
.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid var(--c-border);
  border-top-color: var(--c-text-2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--c-text-3);
  font-size: 12px;
}
.status-progress .progress-text { color: var(--c-text); font-weight: 500; }

.progress-dots::after {
  content: "";
  display: inline-block;
  width: 12px;
  text-align: left;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: var(--c-ink);
  border-radius: var(--r-pill);
  animation: progress-slide 1.4s ease-in-out infinite;
}
@keyframes progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.status.success { color: var(--c-success); background: var(--c-success-bg); }
.status.error   { color: var(--c-danger);  background: var(--c-danger-bg); }

/* =====================================================
 * 杂项
 * ===================================================== */
.text-link {
  color: var(--c-accent);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.text-link:hover { text-decoration: underline; }

.empty {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  color: var(--c-text-3);
  font-size: 13px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 4px;
  margin-top: var(--s-2);
}
.field-label:first-child { margin-top: 0; }

.original-content {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--c-text-2);
  background: var(--c-hover);
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  max-height: 320px;
  overflow-y: auto;
}

.result-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--c-card);
  color: var(--c-text);
  resize: vertical;
  margin-bottom: var(--s-2);
  transition: border-color var(--d) var(--ease), box-shadow var(--d) var(--ease);
}
.result-input:focus {
  outline: none;
  border-color: var(--c-text-3);
  box-shadow: 0 0 0 3px var(--c-hover);
}
.result-input.content-textarea {
  min-height: 280px;
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 13px;
}

.char-count {
  font-size: 11px;
  color: var(--c-text-3);
  text-align: right;
  margin-top: -4px;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}

.original-meta {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.btn-add {
  width: 100%;
  padding: 6px;
  border: 1px dashed var(--c-border-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--d-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.btn-add:hover {
  border-color: var(--c-text-3);
  color: var(--c-text);
  background: var(--c-hover);
}

.pf-field.pf-hidden,
.pf-checkbox.pf-hidden,
.modal-actions.pf-hidden { display: none !important; }

.file-input { display: none; }
