/* 墨语工作台 · 水墨主题 */
:root {
  --paper: #ede2c8; --paper-2: #e6d5a8; --paper-soft: #f5ead0; --rice-paper: #faf3e0;
  --moss: #5a7a5e; --moss-dark: #3d5a3f; --moss-light: #8aa58a;
  --moss-soft: #e8efe2;
  --ink: #2a2622; --ink-2: #4a3f2f; --ink-3: #8a7a5e; --ink-4: #b5a88a;
  --seal: #c14b3c; --seal-dark: #a8392b;
  --gold: #a88940;
  --line: #c4a96c; --line-soft: #d8c8a0; --line-faint: #e6dab8;
  --font-title: "STKaiti", "KaiTi", "楷体", "STSong", "SimSun", "宋体", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --font-deco: "STKaiti", "KaiTi", "楷体", "STSong", "Songti SC", "SimSun", serif;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
  --shadow-soft: 0 2px 14px rgba(74, 63, 47, 0.08);
  --shadow-card: 0 4px 20px rgba(74, 63, 47, 0.10);
  --shadow-deep: 0 10px 36px rgba(74, 63, 47, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.65; color: var(--ink);
  background:
    radial-gradient(ellipse 800px 500px at 20% 10%, rgba(255, 248, 220, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(220, 195, 145, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 90%, rgba(220, 200, 155, 0.3) 0%, transparent 60%),
    var(--paper);
  background-attachment: fixed;
  position: relative; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(74, 63, 47, 0.015) 0px, rgba(74, 63, 47, 0.015) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(74, 63, 47, 0.012) 0px, rgba(74, 63, 47, 0.012) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
}
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 200px;
  pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(122, 138, 110, 0.06) 30%, rgba(90, 122, 94, 0.10) 100%);
  clip-path: polygon(0% 100%, 0% 80%, 6% 70%, 12% 75%, 20% 60%, 28% 70%, 35% 55%, 45% 65%, 55% 50%, 65% 62%, 75% 48%, 85% 60%, 92% 52%, 100% 65%, 100% 100%);
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* 侧边栏 */
.sidebar {
  width: 220px; min-width: 220px;
  background: linear-gradient(180deg, #e6d8b4 0%, #d6c498 100%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  height: 100vh; position: sticky; top: 0; z-index: 10;
  box-shadow: 2px 0 14px rgba(74, 63, 47, 0.08);
}
.brand { padding: 26px 20px 22px; text-align: center; border-bottom: 1px solid var(--line-soft); position: relative; }
.brand-title { font-family: var(--font-title); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: 6px; margin-bottom: 2px; }
.brand-en { font-size: 10px; color: var(--ink-3); letter-spacing: 3px; text-transform: uppercase; }
.brand-seal {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px;
  background: var(--seal); color: #fff8e8; font-family: var(--font-title);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transform: rotate(-3deg); box-shadow: 0 2px 6px rgba(193, 75, 60, 0.4); border-radius: 4px; line-height: 1;
}
.brand-seal::before { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255, 248, 232, 0.5); border-radius: 3px; }
.nav { flex: 1; padding: 16px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  margin-bottom: 4px; cursor: pointer; user-select: none;
  transition: all 0.2s; position: relative;
}
.nav-item:hover { background: rgba(255, 248, 220, 0.5); color: var(--ink); }
.nav-item.active { background: var(--moss); color: #faf3e0; box-shadow: 0 4px 14px rgba(61, 90, 63, 0.3); }
.nav-item.active::before {
  content: "·"; position: absolute; left: 6px; top: 50%;
  transform: translateY(-50%); color: #faf3e0; font-size: 24px; line-height: 0.5;
}
.nav-ico { font-size: 16px; width: 22px; text-align: center; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.ai-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-3);
  padding: 6px 10px; background: rgba(255, 248, 220, 0.4); border-radius: 6px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-on  { background: #6ba673; box-shadow: 0 0 6px rgba(107, 166, 115, 0.6); }
.dot-off { background: var(--ink-4); }

/* 主区域 */
.main { flex: 1; padding: 30px 36px 60px; overflow-y: auto; max-width: 1280px; min-height: 100vh; }
.page { display: none; animation: inkFade 0.4s ease; }
.page.active { display: block; }
@keyframes inkFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-head { text-align: center; margin-bottom: 28px; position: relative; padding: 18px 0 24px; }
.page-head h1 {
  font-family: var(--font-title); font-size: 34px; font-weight: 700; color: var(--ink);
  letter-spacing: 8px; position: relative; display: inline-block; padding: 0 32px;
}
.page-head h1::before, .page-head h1::after {
  content: ""; display: inline-block; width: 36px; height: 1px;
  background: var(--ink-3); vertical-align: middle; margin: 0 16px; position: relative; top: -3px;
}
.page-head .sub { font-family: var(--font-deco); color: var(--ink-3); font-size: 14px; margin-top: 8px; letter-spacing: 4px; }

.seal {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--seal); color: #fff8e8; font-family: var(--font-title); font-weight: 700;
  border-radius: 4px; line-height: 1; transform: rotate(-2deg);
  box-shadow: 0 2px 6px rgba(193, 75, 60, 0.4); position: relative; text-align: center; letter-spacing: 0;
}
.seal::before { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255, 248, 232, 0.55); border-radius: 3px; }
.seal-md { width: 38px; height: 38px; font-size: 18px; }
.seal-sm { width: 24px; height: 24px; font-size: 12px; }
.seal-xl { width: 54px; height: 54px; font-size: 22px; }

/* 卡片 */
.card {
  background: var(--rice-paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  margin-bottom: 20px; overflow: hidden; position: relative;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1.5px solid var(--moss); pointer-events: none;
}
.card::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.card::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px dashed var(--line-soft);
  background: linear-gradient(180deg, rgba(245, 234, 208, 0.5) 0%, transparent 100%);
}
.card-head h3 {
  font-family: var(--font-title); font-size: 18px; font-weight: 600;
  color: var(--ink); letter-spacing: 3px; display: flex; align-items: center; gap: 8px;
}
.card-head h3::before { content: "❀"; color: var(--moss); font-size: 12px; }
.card-body { padding: 22px 24px; }
.head-actions { display: flex; align-items: center; gap: 8px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--moss); border-radius: 8px;
  padding: 9px 18px; font-size: 13.5px; cursor: pointer; transition: all 0.2s;
  font-weight: 500; background: var(--moss); color: #faf3e0;
  font-family: var(--font-body); position: relative; letter-spacing: 1px;
}
.btn:hover { background: var(--moss-dark); border-color: var(--moss-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61, 90, 63, 0.3); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--moss); border-color: var(--moss); color: #faf3e0; }
.btn-secondary { background: var(--seal); border-color: var(--seal); color: #fff8e8; }
.btn-secondary:hover { background: var(--seal-dark); border-color: var(--seal-dark); box-shadow: 0 4px 12px rgba(193, 75, 60, 0.3); }
.btn-ghost { background: transparent; border-color: var(--ink-3); color: var(--ink-2); }
.btn-ghost:hover { background: rgba(245, 234, 208, 0.6); color: var(--ink); border-color: var(--ink-2); box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 6px; border-width: 1.2px; }
.btn-block { width: 100%; }
.btn-danger-ghost { background: transparent; border-color: var(--line); color: var(--ink-3); }
.btn-danger-ghost:hover { background: rgba(193, 75, 60, 0.08); border-color: var(--seal); color: var(--seal); box-shadow: none; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.form-inline { display: flex; gap: 10px; align-items: center; }
.form-inline .grow { flex: 1; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.f-2 { grid-column: span 2; }
.f-field label { font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 2px; }
.f-field input, .f-field select, .f-field textarea, .search-box input, .form-inline input, .filter-bar select, .select-sm {
  border: 1px solid var(--line-soft); border-bottom: 1.5px solid var(--line);
  border-radius: 6px; padding: 9px 12px; font-size: 13.5px;
  background: #fffdf3; color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus, .search-box input:focus, .form-inline input:focus, .filter-bar select:focus {
  border-color: var(--moss); box-shadow: 0 0 0 3px rgba(90, 122, 94, 0.12);
}
.f-field textarea { resize: vertical; min-height: 56px; }
.f-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.search-box { min-width: 220px; }
.search-box input { padding: 7px 12px; font-size: 13px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar select { width: auto; padding: 6px 10px; font-size: 12.5px; }
.select-sm { width: auto; padding: 6px 10px; font-size: 12.5px; }
.idea-hint {
  margin-top: 10px; font-size: 12.5px; color: var(--ink-3);
  background: var(--paper-soft); padding: 10px 14px; border-radius: 6px;
  border-left: 3px solid var(--moss); font-family: var(--font-deco); letter-spacing: 1px;
}

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-item {
  background: var(--rice-paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.stat-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--moss); }
.stat-item.hot::before { background: var(--seal); }
.stat-item.soft::before { background: var(--moss-light); }
.stat-item.gold::before { background: var(--gold); }
.stat-item .ico { font-size: 18px; }
.stat-item .lbl { font-family: var(--font-title); font-size: 13px; color: var(--ink-2); letter-spacing: 2px; margin-top: 4px; }
.stat-item .num { font-family: var(--font-deco); font-size: 30px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.stat-item .num small { font-size: 14px; color: var(--ink-3); margin-left: 3px; font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.mat-list, .archive-list, .list-stack { display: flex; flex-direction: column; gap: 12px; }
.mat-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 16px 18px; background: #fffdf3; transition: all 0.2s; position: relative;
}
.mat-card:hover { box-shadow: var(--shadow-soft); border-color: var(--moss-light); }
.mat-card .mat-title { font-family: var(--font-title); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; letter-spacing: 1px; }
.mat-card .mat-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.mat-card .mat-meta b { color: var(--seal); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11.5px; background: var(--paper-soft); color: var(--ink-2); border: 1px solid var(--line-soft); }
.chip.red { background: rgba(193, 75, 60, 0.08); color: var(--seal-dark); border-color: rgba(193, 75, 60, 0.2); }
.chip.green { background: var(--moss-soft); color: var(--moss-dark); border-color: rgba(90, 122, 94, 0.25); }
.chip.gold { background: rgba(168, 137, 64, 0.1); color: var(--gold); border-color: rgba(168, 137, 64, 0.25); }

.break-box { margin-top: 10px; padding: 10px 14px; background: rgba(193, 75, 60, 0.04); border-left: 3px solid var(--seal); border-radius: 4px; font-size: 12.5px; line-height: 1.7; }
.break-box b { color: var(--seal-dark); font-family: var(--font-title); }
.break-box.green { border-left-color: var(--moss); background: var(--moss-soft); }
.break-box.green b { color: var(--moss-dark); }
.break-box.gold { border-left-color: var(--gold); background: rgba(168, 137, 64, 0.06); }
.break-box.gold b { color: var(--gold); }

.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: #fffdf3; transition: all 0.18s;
}
.list-item:hover { box-shadow: var(--shadow-soft); border-color: var(--moss-light); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 13.5px; font-weight: 600; }
.list-item .li-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.list-item .li-actions { display: flex; gap: 6px; flex-shrink: 0; }

.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; font-size: 13px; font-family: var(--font-deco); letter-spacing: 2px; }
.empty .big { font-size: 36px; display: block; margin-bottom: 10px; filter: grayscale(0.4); }

/* 生成结果 */
.version-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; background: #fffdf3; position: relative; }
.version-item::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.version-item .v-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v-tag { font-family: var(--font-title); font-size: 13px; font-weight: 600; padding: 3px 14px; border-radius: 14px; background: var(--moss-soft); color: var(--moss-dark); border: 1px solid rgba(90, 122, 94, 0.25); letter-spacing: 2px; }
.v-copy { cursor: pointer; color: var(--ink-3); font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.v-copy:hover { color: var(--moss); background: var(--moss-soft); }
.v-body { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; line-height: 1.85; }
.v-extra { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.v-extra b { color: var(--moss-dark); font-family: var(--font-title); }
.note-full { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; line-height: 1.85; }
.note-title-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.note-title-item { padding: 10px 16px; border: 1.5px dashed var(--seal); border-radius: 6px; background: rgba(193, 75, 60, 0.05); font-family: var(--font-title); font-weight: 600; font-size: 14px; color: var(--seal-dark); letter-spacing: 1.5px; }

/* 表格 */
.table-wrap { overflow-x: auto; padding: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--paper-soft); padding: 11px 14px; text-align: left; font-family: var(--font-title); font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 1.5px solid var(--line); letter-spacing: 2px; }
.data-table td { padding: 10px 14px; border-bottom: 1px dashed var(--line-faint); vertical-align: top; }
.data-table tbody tr:hover { background: rgba(245, 234, 208, 0.5); }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.scr-table th { background: var(--paper-soft); padding: 9px 12px; text-align: left; font-family: var(--font-title); font-weight: 600; color: var(--ink-2); border-bottom: 1.5px solid var(--line); white-space: nowrap; letter-spacing: 1px; }
.scr-table td { padding: 9px 12px; border-bottom: 1px dashed var(--line-faint); vertical-align: top; }
.scr-table tr:nth-child(even) td { background: rgba(245, 234, 208, 0.35); }

/* 提示词 */
.prompt-box { background: linear-gradient(135deg, #3d3a35 0%, #2a2622 100%); color: #f5ede2; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; position: relative; border: 1px solid var(--ink-2); }
.prompt-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--seal), var(--gold), var(--moss)); }
.prompt-box .pb-label { display: inline-block; font-family: var(--font-title); font-size: 12px; font-weight: 600; color: #ffb49a; letter-spacing: 3px; margin-bottom: 8px; }
.prompt-params { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(42, 38, 34, 0.55); display: none; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(3px); }
.modal-mask.open { display: flex; }
.modal { width: 500px; max-width: calc(100vw - 40px); background: var(--rice-paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-deep); animation: inkFade 0.25s ease; position: relative; }
.modal::before, .modal::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--moss); pointer-events: none; }
.modal::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.modal::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px dashed var(--line-soft); }
.modal-head h3 { font-family: var(--font-title); font-size: 18px; letter-spacing: 3px; }
.btn-close { border: 1px solid var(--line); background: transparent; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--ink-2); }
.btn-close:hover { background: var(--paper-soft); border-color: var(--ink-3); }
.modal-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-tip { font-size: 12.5px; color: var(--ink-2); background: var(--paper-soft); padding: 12px 14px; border-radius: 6px; border-left: 3px solid var(--moss); font-family: var(--font-deco); letter-spacing: 1px; line-height: 1.8; }
.ai-provider-tip { font-size: 12px; color: var(--ink-3); line-height: 1.9; border-top: 1px dashed var(--line-soft); padding-top: 12px; }
.ai-provider-tip code { background: var(--paper-soft); padding: 1px 7px; border-radius: 4px; font-size: 11.5px; border: 1px solid var(--line-soft); font-family: 'Consolas', 'Monaco', monospace; }

/* Toast */
.toast { position: fixed; top: 28px; left: 50%; transform: translateX(-50%) translateY(-100px); background: var(--ink); color: var(--rice-paper); padding: 12px 28px; border-radius: 30px; font-size: 13.5px; z-index: 200; opacity: 0; transition: all 0.35s ease; pointer-events: none; box-shadow: var(--shadow-deep); font-family: var(--font-title); letter-spacing: 2px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.muted { color: var(--ink-3); }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mb12 { margin-bottom: 12px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(122, 138, 110, 0.3); }

/* 首页大屏 */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-feature {
  background: var(--rice-paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow-card); position: relative; min-height: 160px; overflow: hidden;
}
.dash-feature::before, .dash-feature::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--moss); pointer-events: none; }
.dash-feature::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.dash-feature::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.dash-feature .df-title { font-family: var(--font-title); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: 4px; margin-bottom: 8px; }
.dash-feature .df-sub { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-deco); letter-spacing: 1px; margin-bottom: 14px; }
.dash-feature .df-deco { position: absolute; right: 20px; bottom: 18px; font-size: 56px; opacity: 0.13; filter: grayscale(0.3); }
.dash-feature .df-cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; background: var(--moss); color: var(--rice-paper); border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none; font-family: var(--font-title); letter-spacing: 2px; transition: all 0.2s; border: none; }
.dash-feature .df-cta:hover { background: var(--moss-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61, 90, 63, 0.3); }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }

@media (max-width: 1100px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { width: 72px; min-width: 72px; }
  .brand-title, .nav-item span:last-child, .ai-status span:last-child { display: none; }
  .brand-seal { display: none; }
  .main { padding: 18px 14px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .f-field.f-2 { grid-column: span 1; }
  .stat-grid, .dash-stats { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 24px; letter-spacing: 4px; }
  .page-head h1::before, .page-head h1::after { display: none; }
}
