:root {
  --bg: #fbfbfc;
  --panel: #ffffff;
  --ink: #16181d;
  --ink-2: #575e6b;
  --ink-3: #9098a6;
  --line: #e7e9ee;
  --line-2: #f0f2f5;
  --accent: #4d6bfe;
  --accent-soft: #eef1ff;
  --green: #12a06a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 35, .04);
  --shadow: 0 6px 24px -8px rgba(20, 24, 35, .12), 0 1px 3px rgba(20, 24, 35, .05);
}

* { box-sizing: border-box; }

/* hidden 属性优先级最高，避免被 .class{display:...} 覆盖 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
textarea { resize: vertical; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; }
.logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.brand em {
  font-style: normal; font-size: 11px; font-weight: 500;
  color: var(--ink-3); padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 20px;
}
.tabs { display: flex; gap: 4px; margin-left: 6px; }
.tab {
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px;
  color: var(--ink-2); font-weight: 500; position: relative;
  transition: background .15s, color .15s;
}
.tab:hover { background: var(--line-2); color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; }
.dot {
  display: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); position: absolute; top: 6px; right: 7px;
}
.dot.on { display: block; }
.top-right { margin-left: auto; }

.ghost-btn {
  padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2);
  transition: all .15s;
}
.ghost-btn:hover { border-color: #d3d7e0; color: var(--ink); background: #fcfcfd; }
.primary-btn {
  padding: 8px 16px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 550;
  transition: opacity .15s;
}
.primary-btn:hover { opacity: .86; }
.primary-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 视图容器 ---------- */
.view { display: none; height: calc(100% - 58px); }
.view.active { display: flex; flex-direction: column; }

/* ---------- 对话页 ---------- */
#view-chat { position: relative; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 0 22px 8px; }
.chat-scroll > * { max-width: 860px; margin-inline: auto; }

.hero { padding: 74px 0 30px; text-align: center; }
.hero h1 { font-size: 25px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 10px; }
.hero p { color: var(--ink-2); margin: 0 0 26px; font-size: 14px; }
.chips { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 9px 15px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: all .16s;
}
.chip:hover { border-color: #c9cfdb; color: var(--ink); transform: translateY(-1px); }

.messages { padding-bottom: 12px; }
.msg { display: flex; gap: 12px; margin: 22px 0; }
.msg.user { justify-content: flex-end; }
.bubble-user {
  background: #f1f3f7; padding: 11px 15px; border-radius: 16px 16px 4px 16px;
  max-width: 78%; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.avatar {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 28px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}
.msg-body { flex: 1; min-width: 0; }
.msg-text { line-height: 1.7; color: var(--ink); }
.msg-text .muted { color: var(--ink-3); }

.steps { margin: 10px 0 0; padding: 0; list-style: none; }
.steps li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--ink-3); padding: 4px 0;
}
.steps li .sp {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.6px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; flex: 0 0 13px;
}
.steps li.done { color: var(--ink-2); }
.steps li.done .sp { border: none; animation: none; background: var(--green); position: relative; }
.steps li.done .sp::after {
  content: ""; position: absolute; left: 4px; top: 2px;
  width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 结果卡片 ---------- */
.result { margin-top: 16px; }
.result-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding: 13px 15px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.result-head .t { font-weight: 600; }
.result-head .s { font-size: 12.5px; color: var(--ink-3); }
.result-head .spacer { flex: 1; }

.slides { display: grid; gap: 14px; }
.slide-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.slide-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.slide-meta {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-bottom: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-3);
}
.slide-no {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2);
}
.tag {
  padding: 1px 7px; border-radius: 5px; background: var(--line-2);
  color: var(--ink-3); font-size: 10.5px;
}
.canvas {
  aspect-ratio: 16 / 9; padding: 26px 30px; position: relative;
  display: flex; flex-direction: column; overflow: hidden;
}
.canvas .kicker { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-bottom: 8px; }
.canvas.cover .kicker, .canvas.section .kicker, .canvas.closing .kicker { opacity: 1; }
.canvas h4 { margin: 0 0 12px; font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
.canvas ul { margin: 0; padding-left: 17px; }
.canvas li { font-size: 12.5px; line-height: 1.85; margin-bottom: 2px; }
.canvas .big { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; }
.canvas .lead { font-size: 15px; line-height: 1.6; margin: 0; }
.canvas .quote { font-size: 19px; line-height: 1.55; font-weight: 550; margin: 0; }
.canvas .by { font-size: 12px; opacity: .55; margin-top: 10px; }
.canvas .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.canvas .col h5 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.canvas .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.canvas .stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.canvas .stat span { font-size: 11.5px; opacity: .6; }
.canvas .tl { display: flex; gap: 0; margin-top: 14px; }
.canvas .tl .n { flex: 1; padding-right: 10px; }
.canvas .tl .n::before { content: ""; display: block; height: 2px; background: currentColor; opacity: .25; margin-bottom: 8px; }
.canvas .tl .n b { font-size: 12.5px; display: block; }
.canvas .tl .n span { font-size: 11px; opacity: .6; }
.canvas .notes {
  margin-top: auto; padding-top: 10px; font-size: 10.5px; opacity: .45;
  border-top: 1px dashed rgba(0, 0, 0, .12); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.canvas.cover, .canvas.closing { justify-content: center; align-items: flex-start; }
.canvas.section { justify-content: center; }
.canvas.section h4 { font-size: 26px; }

.empty-note { color: var(--ink-3); font-size: 13px; padding: 8px 0; }

/* ---------- 输入区 ---------- */
.composer-wrap {
  padding: 6px 22px 12px; background: linear-gradient(to top, var(--bg) 62%, rgba(251, 251, 252, 0));
}
.composer {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 10px 12px 9px;
  transition: border-color .16s, box-shadow .16s;
}
.composer:focus-within { border-color: #c8cfdd; box-shadow: 0 8px 28px -10px rgba(20, 24, 35, .16); }
.composer textarea {
  width: 100%; border: none; outline: none; background: transparent;
  padding: 6px 4px; min-height: 30px; max-height: 190px; line-height: 1.6;
  resize: none;
}
.composer textarea::placeholder { color: var(--ink-3); }
.attach-row { display: flex; gap: 7px; flex-wrap: wrap; }
.attach-row:not(:empty) { margin-bottom: 7px; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; background: var(--line-2); border-radius: 7px;
  font-size: 11.5px; color: var(--ink-2); max-width: 260px;
}
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip button { color: var(--ink-3); font-size: 14px; line-height: 1; padding: 0 1px; }
.attach-chip button:hover { color: var(--ink); }

.composer-bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.opts { display: flex; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-3);
  background: var(--line-2); border-radius: 8px; padding: 4px 6px 4px 9px;
}
.opt select {
  border: none; background: transparent; font-size: 12px; color: var(--ink-2);
  outline: none; cursor: pointer; padding-right: 2px;
}
.send-area { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 9px; color: var(--ink-3);
  font-size: 19px; display: grid; place-items: center; transition: all .15s;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.send-btn {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: opacity .15s;
}
.send-btn:hover { opacity: .85; }
.send-btn:disabled { opacity: .28; cursor: not-allowed; }
.tip { max-width: 860px; margin: 7px auto 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }

/* ---------- 档案页 ---------- */
.profile-scroll { flex: 1; overflow-y: auto; padding: 30px 22px 60px; }
.profile-scroll > * { max-width: 900px; margin-inline: auto; }
.profile-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.profile-head h2 { font-size: 21px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.01em; }
.profile-head p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; box-shadow: var(--shadow-sm);
}
.card header { display: flex; align-items: baseline; gap: 9px; margin-bottom: 11px; }
.card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.hint { font-size: 11.5px; color: var(--ink-3); }
.card textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 11px; line-height: 1.7; font-size: 13px; min-height: 104px;
  outline: none; background: #fcfcfd; transition: border-color .15s, background .15s;
}
.card textarea:focus { border-color: #c8cfdd; background: #fff; }
.card textarea::placeholder { color: #b3b9c4; }

.palette-row { display: flex; gap: 12px; margin-bottom: 11px; }
.color-field { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.color-field input[type="color"] {
  width: 52px; height: 30px; padding: 2px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer;
}
.line-input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 11px; font-size: 13px; outline: none; background: #fcfcfd;
}
.line-input:focus { border-color: #c8cfdd; background: #fff; }

.upload-zone {
  display: flex; align-items: center; gap: 11px;
  padding: 11px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fcfcfd; margin-bottom: 11px;
}
.upload-zone span { font-size: 11.5px; color: var(--ink-3); }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 11px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #fcfcfd;
}
.item .swatch { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px; border: 1px solid rgba(0,0,0,.06); }
.item .info { flex: 1; min-width: 0; }
.item .info b { font-size: 12.5px; font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .info small { font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
.item input.note {
  width: 100%; border: none; background: transparent; font-size: 11.5px;
  color: var(--ink-2); outline: none; margin-top: 4px; padding: 0;
}
.item input.note::placeholder { color: #b3b9c4; }
.item .del { color: var(--ink-3); font-size: 15px; padding: 0 2px; }
.item .del:hover { color: #d14343; }

.append-card textarea { min-height: 88px; }
.append-bar { display: flex; align-items: center; gap: 12px; margin-top: 11px; }
.append-bar .muted { flex: 1; font-size: 11.5px; color: var(--ink-3); }
.save-tip { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 22px; }

/* ---------- 弹窗 & toast ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18, 21, 28, .34);
  display: none; place-items: center; z-index: 60;
  backdrop-filter: blur(2px);
}
.modal-mask.on { display: grid; }
.modal {
  width: min(440px, 92vw); background: #fff; border-radius: 16px;
  padding: 22px; box-shadow: 0 20px 60px -12px rgba(20, 24, 35, .3);
}
.modal h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.modal p { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.modal code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.modal input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; outline: none; font-size: 13px; background: #fcfcfd;
}
.modal input:focus { border-color: #c8cfdd; background: #fff; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 16px; }
.demo-link { margin-right: auto; font-size: 12.5px; color: var(--accent); text-decoration: none; }
.demo-link:hover { text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 14px);
  background: var(--ink); color: #fff; padding: 10px 17px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .24s; z-index: 90;
  max-width: 80vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 登录层（浮层，可跳过） ---------- */
.auth-layer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 24, 29, .42);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  overflow-y: auto;
  animation: fadeIn .16s ease;
}
.auth-layer:not(.on) { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  position: relative;
  width: min(380px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 26px 20px; box-shadow: 0 24px 60px -18px rgba(20,24,35,.34);
  text-align: center;
}
.auth-close {
  position: absolute; right: 10px; top: 8px; width: 28px; height: 28px;
  font-size: 20px; line-height: 1; color: var(--ink-3); border-radius: 8px;
}
.auth-close:hover { background: var(--line-2); color: var(--ink); }
.auth-skip { margin: 14px 0 0; }
.auth-skip .link-btn { font-size: 12.5px; color: var(--ink-3); }
.auth-skip .link-btn:hover { color: var(--accent); }
.auth-brand {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650;
  font-size: 14px; margin-bottom: 20px;
}
.auth-card h2 { font-size: 19px; margin: 0 0 8px; font-weight: 650; letter-spacing: -.01em; }
.auth-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin: 0 0 20px; }
.qr-wrap { position: relative; width: 188px; height: 188px; margin: 0 auto 12px; }
.qr-box {
  width: 188px; height: 188px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center;
}
.qr-box img, .qr-box canvas { display: block; }
.qr-expired {
  position: absolute; inset: 0; background: rgba(255,255,255,.94); border-radius: 12px;
  display: grid; place-content: center; gap: 9px; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line);
}
.qr-expired button {
  padding: 6px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px;
}
.qr-tip { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }
.auth-divider { position: relative; margin: 0 0 14px; }
.auth-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2);
}
.auth-divider span { position: relative; background: #fff; padding: 0 10px; font-size: 11.5px; color: var(--ink-3); }
.link-btn { font-size: 13px; color: var(--accent); padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.pwd-form { display: grid; gap: 9px; margin-top: 14px; text-align: left; }
.pwd-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13.5px; outline: none; background: #fcfcfd;
}
.pwd-form input:focus { border-color: #c8cfdd; background: #fff; }
.primary-btn.block { width: 100%; padding: 11px; }
.pwd-hint { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: 2px 0 0; }
.auth-foot { font-size: 11.5px; color: var(--ink-3); margin-top: 16px; text-align: center; }

/* ---------- 游客提示条 ---------- */
.guest-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid #dfe5ff;
  border-radius: 11px; font-size: 12.5px; color: #3c4a80; line-height: 1.5;
}
.guest-bar b { font-weight: 600; }
.guest-bar .ghost-btn { margin-left: auto; flex-shrink: 0; }

/* ---------- 用户与菜单 ---------- */
.top-right { display: flex; align-items: center; gap: 8px; position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  border-radius: 100px; border: 1px solid var(--line); background: #fff; font-size: 13px;
  color: var(--ink-2); max-width: 160px;
}
.user-chip:hover { border-color: #d3d7e0; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uavatar {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.user-menu {
  position: absolute; right: 0; top: 42px; width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; z-index: 40;
}
.um-head { padding: 9px 10px 11px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }
.um-head b { display: block; font-size: 13px; font-weight: 600; }
.um-head small { font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
.user-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border-radius: 7px; font-size: 13px; color: var(--ink-2);
}
.user-menu button:hover { background: var(--line-2); color: var(--ink); }

/* ---------- 历史抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(18,21,28,.28); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: #fff; border-left: 1px solid var(--line); z-index: 55;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px -20px rgba(20,24,35,.25);
  transform: translateX(100%); transition: transform .22s ease;
}
.drawer.open { transform: translateX(0); }
.drawer header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2);
}
.drawer header h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.drawer-tabs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.dtab {
  padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2);
  background: var(--line-2);
}
.dtab.active { background: var(--ink); color: #fff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px; }
.hist-item {
  padding: 11px 12px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; margin-bottom: 4px;
}
.hist-item:hover { background: #fbfbfc; border-color: var(--line-2); }
.hist-item b { display: block; font-size: 13px; font-weight: 550; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-item small { font-size: 11.5px; color: var(--ink-3); }
.hist-empty { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 40px 10px; }

/* ---------- 弹窗字段 ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.field select, .field input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; outline: none; background: #fcfcfd; color: var(--ink);
}
.field select:focus, .field input:focus { border-color: #c8cfdd; background: #fff; }
.model-note { font-size: 11.5px; color: var(--ink-3); margin: -6px 0 12px; line-height: 1.55; }
.save-state { font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 760px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 22px; }
  .hero h1 { font-size: 21px; }
  .brand em { display: none; }
  .topbar { gap: 12px; padding: 0 14px; }
  .canvas .cols { grid-template-columns: 1fr; gap: 10px; }
}
