/* 状态档案：对话里的记录气泡、左栏"个性化"、开发者只读档案、资料类别标签。
   白纸、黑字，蓝色只指"可以点"和下一步；等你决定的地方只有一个提醒黄点。 */

.btn-xs { height: 26px; padding: 0 10px; font-size: var(--fs-caption); border-radius: var(--r-pill); }
/* 确认栏里的图标按钮：改成别的是笔，确认是对勾；圆形 30px（手机 40px），蓝底只给下一步，其余描边（btn-secondary） */
.btn.btn-act { width: 30px; height: 30px; padding: 0; border-radius: var(--r-pill); }
.btn-act .icon { width: 16px; height: 16px; pointer-events: none; }

/* ---------- 导师改动的写法（t-20261001-yh78；t-20261009-htuw 统一）：停靠卡、待确认块、聊天回执和计划卡同一种——
   旧值淡灰划掉 → 新值墨色加粗；红绿只留给真实的错与对。长文字照引用的样子，左边一条竖线 ---------- */
.diff-del,
.diff-ins { overflow-wrap: anywhere; }
.diff-del { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-ins { color: var(--ink); font-weight: 600; }
.diff-del + .diff-ins::before { content: '→'; display: inline-block; margin-right: 6px; color: var(--faint); font-weight: 400; }
.diff-hint { color: var(--faint); font-size: var(--fs-caption); }
.diff-txt-old,
.diff-txt-new { margin: 6px 0 0; padding: 1px 0 1px 10px; border-left: 3px solid var(--border-strong); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-txt-old { border-left-style: dashed; color: var(--faint); text-decoration: line-through; }
.diff-txt-new { color: var(--ink); }

/* 停靠卡里的一项：一行 = 字段名 · 旧 → 新 ……… 不改（字）· 改成别的（笔）· 确认（对勾）；长文字和就地修改换到下一行 */
.change-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 9px 14px; font-size: var(--fs-ui); line-height: 1.6; }
.change-item > :not(.change-field):not(.change-acts) { grid-column: 1 / -1; }
.change-item + .change-item { border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.change-item:focus { outline: none; }
.change-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.change-item .sr-error,
.change-item .sr-edit { margin-top: 8px; }
.change-field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.change-field__label { min-width: 6.5em; color: var(--muted); font-size: 13px; }
.change-acts { display: flex; flex: none; align-items: center; gap: 6px; grid-column: 2; grid-row: 1; }
.change-acts .btn-xs,
.plan-strip__acts .btn-xs { height: 30px; padding: 0 12px; font-size: 13px; }
.change-acts .link-btn { margin-left: auto; font-size: var(--fs-ui); }
/* 蓝色只给下一步：停靠卡第一项的「确认」；后面几项的确认是白底，处理完一项，蓝色落到下一项 */
.change-item:not(:first-child) .change-acts .btn-primary,
.change-dock:has(.sr-edit) .change-acts .btn-primary { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.change-item:not(:first-child) .change-acts .btn-primary:hover:not([disabled]),
.change-dock:has(.sr-edit) .change-acts .btn-primary:hover:not([disabled]) { border-color: var(--border-strong); background: var(--surface-subtle); }
/* 正在「改成别的」：这一项的保存是蓝色 */
.change-item .sr-edit button[type="submit"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.change-item .sr-edit button[type="submit"]:hover:not([disabled]) { border-color: var(--accent-strong); background: var(--accent-strong); }
@media (max-width: 719px) {
  .change-item { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .change-acts { grid-column: 1; grid-row: auto; justify-content: flex-end; }
  .change-acts .btn-xs,
  .plan-strip__acts .btn-xs { height: 36px; padding: 0 14px; font-size: var(--fs-ui); }
  .btn.btn-act { width: 40px; height: 40px; }
  .btn-act .icon { width: 18px; height: 18px; }
}

/* 聊天里的回执（t-20261009-htuw）：和「出处」同一种脚注小字，排在出处下面；不画框、不铺底。
   一行 = 行首 13px 小图标（只有它带一点状态色）+ 一句话（标签加粗、旧 → 新）+ › + 紧跟的笔形「改成别的」和文字「撤销」。
   单项一行；两项起收成一行「导师记下了 · 记到的几项」，点开逐项列出，每项各带改成别的 / 撤销。 */
.rcpt-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 720px; margin: 14px 0 0; color: var(--faint); font: 400 var(--fs-caption)/1.7 var(--font-sans); font-variant-numeric: tabular-nums; }
.msg-sources + .rcpt-group { margin-top: 2px; }
.rcpt { min-width: 0; border: 0; background: none; font: inherit; }
.rcpt__head { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; min-height: 22px; color: inherit; }
.rcpt__toggle { display: flex; flex: 0 1 auto; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; }
.rcpt__head.is-toggle .rcpt__toggle { cursor: pointer; }
.rcpt__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.rcpt__line { display: flex; align-items: baseline; min-width: 0; }
.rcpt__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt__text b { color: var(--muted); font-weight: 600; }
.rcpt__head.is-toggle:hover .rcpt__text b { color: var(--ink); }
.rcpt__val { color: var(--muted); }
.rcpt__sum { margin-left: 8px; }
.rcpt__sum i { margin: 0 6px; color: var(--border-strong); font-style: normal; }
.rcpt__note { flex: none; max-width: 45%; margin-left: 6px; overflow: hidden; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; }
.rcpt__note::before { content: '· '; }
.rcpt[data-open] > .rcpt__head .rcpt__text { white-space: normal; overflow-wrap: anywhere; }
.rcpt__icon,
.rcpt__chev { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* 唯一的颜色在行首：已经记进去是一枚淡绿小图标，撤销 / 没采用 / 被替换退成灰，等你确认是提醒黄点 */
.rcpt__icon { color: color-mix(in srgb, var(--success) 78%, var(--canvas)); }
.rcpt[data-status="undone"] .rcpt__icon,
.rcpt[data-status="declined"] .rcpt__icon,
.rcpt[data-status="superseded"] .rcpt__icon { color: var(--border-strong); }
.rcpt[data-status="undone"] .rcpt__text b,
.rcpt[data-status="declined"] .rcpt__text b,
.rcpt[data-status="superseded"] .rcpt__text b { color: var(--faint); font-weight: 400; }
.rcpt__chev { width: 12px; height: 12px; color: var(--faint); transition: transform 150ms ease; }
.rcpt[data-open] > .rcpt__head .rcpt__chev { transform: rotate(90deg); }
/* 等你确认：行首提醒黄点（同停靠卡头、计划卡尾），句尾写去处「输入框上方 ↓」 */
.rcpt__dot { flex: none; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 28%, transparent); }
.rcpt.is-wait { color: var(--muted); }
.rcpt__ptr { flex: none; color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
/* 改成别的（笔形图标）· 撤销（字）：紧跟在句子后面，平时淡灰，指到这一行变深，指到按钮本身是蓝字淡蓝底（同出处页码） */
.rcpt__acts { display: inline-flex; flex: none; align-items: center; gap: 2px; }
.rcpt__act { display: inline-flex; align-items: center; height: 22px; padding: 0 4px; border: 0; border-radius: var(--r-xs); background: none; color: var(--faint); font: inherit; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
/* 图标按钮点按区 28×28（手机 40×40），上下负外边距让它不撑高这一行脚注 */
.rcpt__act.is-icon { justify-content: center; width: 28px; height: 28px; margin: -3px 0; padding: 0; border-radius: var(--r-sm); }
.rcpt__act.is-icon .icon { width: 15px; height: 15px; pointer-events: none; }
.rcpt__head:hover .rcpt__act { color: var(--muted); }
.rcpt__act:hover,
.rcpt__act:focus-visible,
.rcpt__head:hover .rcpt__act:hover { background: var(--accent-soft); color: var(--accent-strong); }
.rcpt__act:focus { outline: none; }
.rcpt__act:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.rcpt__act:disabled,
.rcpt__head:hover .rcpt__act:disabled { background: none; color: var(--faint); opacity: .45; cursor: default; }
/* 触屏没有悬停：按钮常亮成辅助灰，点按区高 28px */
@media (hover: none) {
  .rcpt__act,
  .rcpt.is-row .rcpt__act { height: 28px; padding: 0 6px; color: var(--muted); }
}
/* 点开后：缩进到句子起点（图标 13 + 间距 6），没有框线；内容淡入 */
.rcpt__body { padding: 2px 0 6px 19px; }
.rcpt__body:not([hidden]) { animation: rcpt-open 150ms ease; }
@keyframes rcpt-open { from { opacity: 0; transform: translateY(-2px); } }
.rcpt__detail > * + * { margin-top: 4px; }
.rcpt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
/* 列表里的一项排成行内流：句子太长就换行，「改成别的」「撤销」紧跟在句尾，换行后仍从句子起点对齐（图标挂在左边距里）；
   节记下的句子、长文字的新旧两段、就地修改写在下面 */
.rcpt.is-row > .rcpt__head { position: relative; display: block; width: auto; padding-left: 19px; }
.rcpt.is-row .rcpt__toggle,
.rcpt.is-row .rcpt__line { display: inline; }
.rcpt.is-row .rcpt__icon { position: absolute; top: 5px; left: 0; }
.rcpt.is-row .rcpt__text { white-space: normal; overflow-wrap: anywhere; }
.rcpt.is-row .rcpt__note { white-space: normal; }
.rcpt.is-row .rcpt__acts { display: inline-flex; margin-left: 4px; vertical-align: top; }
.rcpt.is-row .rcpt__act { height: 20px; }
.rcpt.is-row .rcpt__act.is-icon { height: 28px; margin: -4px 0; padding: 0; }
@media (max-width: 719px) {
  .rcpt__act.is-icon,
  .rcpt.is-row .rcpt__act.is-icon { width: 40px; height: 40px; margin: -9px 0; }
  .rcpt.is-row .rcpt__act.is-icon { margin: -10px 0; }
}
.rcpt.is-row > .rcpt__detail { padding: 0 0 4px 19px; }
/* 回执里的旧 → 新退成脚注的灰：新值辅助灰，不加粗 */
.rcpt .diff-ins { color: var(--muted); font-weight: 400; }
.rcpt .diff-del + .diff-ins::before { margin: 0 5px; }
.rcpt .diff-txt-old,
.rcpt .diff-txt-new { margin-top: 2px; padding: 0 8px; border-left-width: 2px; font-size: var(--fs-caption); line-height: 1.7; }
.rcpt .diff-txt-new { color: var(--muted); }
.rcpt .sr-lines { margin: 2px 0 0; padding: 0 8px; border-left-color: var(--border); color: var(--muted); font-size: var(--fs-caption); line-height: 1.7; }
.rcpt .sr-more { gap: 12px; }
.rcpt .sr-edit { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .rcpt__chev,
  .rcpt__act { transition: none; }
  .rcpt__body:not([hidden]) { animation: none; }
}

/* 设置与个性化里的待确认块、回执里的节文字和就地编辑 */
.sr-change { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.sr-change .diff-del,
.sr-change .diff-ins { margin-right: 4px; }
.sr-label { color: var(--muted); }
.sr-label::after { content: '：'; }
html[lang="en-US"] .sr-label::after { content: ': '; }
.sr-new { color: var(--ink); font-weight: 400; }
.sr-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.sr-error { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: var(--fs-caption); }
.sr-lines {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 4px 10px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-size: var(--fs-ui);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sr-lines.is-old { border-left-style: dashed; color: var(--faint); }
.sr-more { grid-column: 1 / -1; display: flex; gap: 14px; }
.sr-more .link-btn { font-size: var(--fs-caption); }
.sr-edit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.sr-edit > .input { width: auto; flex: 1 1 200px; height: 32px; font-size: var(--fs-ui); }
.sr-edit > textarea.input { height: auto; min-height: 56px; padding: 6px 10px; line-height: 1.6; }

.archive-chips { display: grid; gap: 8px; flex: 1 1 100%; }
.archive-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.archive-chip-row .chip { height: 28px; font-size: var(--fs-ui); }
.archive-other-input.input { height: 32px; font-size: var(--fs-ui); }
.archive-hours { display: inline-flex; align-items: center; gap: 8px; }
.archive-hours .input { width: 96px; height: 32px; font-size: var(--fs-ui); }

/* ---------- 左栏"个性化" ---------- */
.reading-style-preference { margin: 2px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.reading-style-preference__head { margin-bottom: 10px; }
.reading-style-preference__head h3 { margin: 0; color: var(--ink); font-size: var(--fs-ui); line-height: 1.5; }
.reading-style-preference__head p { margin: 3px 0 0; color: var(--faint); font-size: var(--fs-caption); line-height: 1.55; }
.reading-style-picker { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.reading-style-option {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.reading-style-option:hover { border-color: var(--border-strong); background: var(--surface-subtle); }
.reading-style-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.reading-style-option:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); }
.reading-style-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reading-style-option__copy { display: grid; min-width: 0; gap: 1px; }
.reading-style-option__copy strong { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
.reading-style-option__copy small { color: var(--faint); font-size: 11px; line-height: 1.4; }
.reading-style-option__check { width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); }
.reading-style-option:has(input:checked) .reading-style-option__check { border: 4px solid var(--accent); }
.reading-style-option__preview {
  display: grid;
  align-content: center;
  gap: 4px;
  width: 46px;
  height: 40px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 42, 55, .05);
}
.reading-style-option__preview i { display: block; height: 3px; border-radius: 3px; }
.reading-style-option__preview i:nth-child(1) { width: 72%; }
.reading-style-option__preview i:nth-child(2) { width: 100%; }
.reading-style-option__preview i:nth-child(3) { width: 84%; }
.reading-style-option--qk .reading-style-option__preview i:nth-child(1) { height: 5px; background: #254f71; }
.reading-style-option--qk .reading-style-option__preview i:nth-child(2) { background: #d8d6e1; }
.reading-style-option--qk .reading-style-option__preview i:nth-child(3) { background: #f6e9b4; }
.reading-style-option--eink .reading-style-option__preview { background: #fbfaf5; }
.reading-style-option--eink .reading-style-option__preview i:nth-child(1) { height: 4px; background: #32312e; }
.reading-style-option--eink .reading-style-option__preview i:nth-child(2) { background: #a4a19a; }
.reading-style-option--eink .reading-style-option__preview i:nth-child(3) { height: 5px; background: linear-gradient(transparent 48%, #ead160 48%); }
@media (prefers-reduced-motion: reduce) { .reading-style-option { transition: none; } }

.sidebar-item .has-pending::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* 等你确认：和计划入口、停靠卡头同一个提醒黄点 */
  background: var(--marker);
  outline: 2px solid var(--canvas);
}
/* 待确认块：和输入框上方的停靠卡同一个样子（卡头提醒黄点 + 一项一行），按钮不抢停靠卡的蓝色。
   设置里放课程三项的提议，个性化里放其余字段的提议 */
.pz-pending { margin: 10px 0 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 13px; line-height: 1.6; }
.pz-pending__title { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent); color: var(--ink); font-size: 13px; font-weight: 600; }
.pz-pending__title::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 28%, transparent); }
/* 左栏窄：字段名一行、旧 → 新一行，按钮靠右放在下面，值不被按钮挤成两截 */
.pz-pending__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 12px; }
.pz-pending__row + .pz-pending__row { border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.pz-pending__row:focus { outline: none; }
.pz-pending__row .sr-change { color: var(--ink); }
.pz-pending__row .sr-label { display: block; color: var(--muted); font-size: var(--fs-caption); }
.pz-pending__row .sr-label::after { content: none; }
.pz-pending__row .sr-acts { flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
.pz-pending__row .sr-acts .btn-xs { height: 28px; padding: 0 10px; }
.pz-pending__row > .sr-error { grid-column: 1 / -1; }
.pz-notes { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--border); }
.pz-notes summary { color: var(--faint); font-size: var(--fs-caption); font-weight: 600; cursor: pointer; }
.pz-notes h4 { margin: 10px 0 0; font-size: var(--fs-ui); }
.pz-notes pre,
.archive-sec pre { margin: 2px 0 0; color: var(--muted); font: inherit; font-size: var(--fs-caption); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pz-notes pre.is-empty,
.archive-sec pre.is-empty { color: var(--faint); }

/* ---------- 资料类别标签 ---------- */
.material-list-item { position: relative; }
.file-row.is-openable { position: relative; }
.file-row.is-openable:hover { background: var(--surface-subtle); }
.file-open { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* 整行都能点开资料；类别标签浮在这层之上 */
.file-open::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-sm); }
.file-open:focus-visible { outline: none; }
.file-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.file-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.file-meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-use-tag {
  position: relative;
  z-index: 1;
  flex: none;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caption);
  line-height: 18px;
  cursor: pointer;
}
.material-use-tag:hover { border-color: var(--accent); }
.material-use-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.material-use-tag.is-empty { border-style: dashed; color: var(--faint); }
.use-menu {
  position: absolute;
  z-index: var(--z-menu);
  min-width: 208px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.use-menu__item { display: grid; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: var(--fs-ui); line-height: 1.45; text-align: left; cursor: pointer; }
.use-menu__item small { color: var(--faint); font-size: var(--fs-caption); }
.use-menu__item:hover,
.use-menu__item:focus-visible { outline: none; background: var(--surface-subtle); }
.use-menu hr { margin: 4px 0; border: 0; border-top: 1px solid var(--border); }

/* ---------- 开发者：三档档案 ---------- */
.archive-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-modal);
}
.archive-dialog::backdrop { background: var(--scrim); }
.archive-dialog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.archive-dialog__head h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.4; }
.archive-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.archive-col { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.archive-col > h3 { margin: 0 0 8px; font-size: var(--fs-ui); }
.archive-fields { display: grid; gap: 6px; margin: 0 0 12px; font-size: var(--fs-ui); }
.archive-fields > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.archive-fields dt { color: var(--muted); }
.archive-fields dd { margin: 0; overflow-wrap: anywhere; }
.archive-fields dd small { display: block; color: var(--faint); font-size: var(--fs-caption); }
.archive-sec { padding: 8px 0; border-top: 1px solid var(--surface-subtle); }
.archive-sec h4 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin: 0; font-size: var(--fs-ui); }
.archive-sec h4 small { color: var(--faint); font-size: var(--fs-caption); font-weight: 400; }
.archive-log { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: var(--fs-caption); }
.archive-log summary { padding: 8px 12px; color: var(--muted); cursor: pointer; }
.archive-log table { width: 100%; border-collapse: collapse; }
.archive-log th,
.archive-log td { padding: 5px 12px; border-top: 1px solid var(--surface-subtle); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.archive-log th { color: var(--faint); font-weight: 400; }
.archive-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 720px) {
  .sr-acts { justify-content: flex-start; }
  .archive-cols { grid-template-columns: minmax(0, 1fr); }
  .archive-dialog { padding: 16px; }
}
