/* 资质（app/f_cert.py）。类名 fcert- 开头。颜色只用 tokens.css 里的 */
.fcert-left { font-family: var(--num); font-size: 12px; }
.fcert-cnt { justify-content: flex-start; margin: 0 0 10px; }
.fcert-cnt span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--mute); }
.fcert-cnt span b { color: var(--ink); margin-left: 4px; font-family: var(--num); }
.fcert-cnt span.bad { border-color: var(--red-line); color: var(--red); }
.fcert-cnt span.bad b { color: var(--red); }
.fcert-cnt span.ok { border-color: var(--green-line); color: var(--green); }
.fcert-cnt span.ok b { color: var(--green); }
.fcert-tabs { margin: 0 0 12px; }
.fcert-find { margin: 0 0 12px; padding: 6px 6px 6px 14px; flex-wrap: wrap; }
.fcert-find .in { flex: 1 1 180px; border: 0; font-size: 14px; padding: 6px 0; }
.fcert-files a { text-decoration: underline; margin-right: 10px; overflow-wrap: anywhere; }
/* 「续好了」弹出来的小表：一栏一行 */
details.cant form.fcert-pop { display: grid; gap: 8px; width: 300px; }
.fcert-pop label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.fcert-pop label small { font-weight: 400; color: var(--weak); margin-left: 4px; }
.fcert-pop .in, .fcert-one .in { width: 100%; font-size: 13px; padding: 6px 10px; }
.fcert-pop input[type=file], .fcert-one input[type=file] { padding: 5px 6px; font-size: 12px; }
/* 改一项的页 */
.fcert-one .form textarea.in { min-height: 64px; resize: vertical; }
.fcert-pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 6px 10px; background: #fff;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; font-weight: 400; }
.fcert-pick label { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: 12px; overflow-wrap: anywhere; }
.fcert-log { margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--mute); }
.fcert-log li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.fcert-log li:first-child { border-top: 0; }
.fcert-log b { color: var(--ink); font-weight: 600; }
.fcert-danger { border-color: var(--red-line); }
/* 11/17 修：「续好了」「改」那一栏自己占一列（以前那一列算成 0 宽，按钮压在描述的尾巴上：「…往后 365 天)」「· 曾烨负责」被盖住） */
.td:has(> .fcert-left) > .acts { min-width: max-content; max-width: none; width: auto; flex-direction: column; align-items: stretch; gap: 6px; }
.td:has(> .fcert-left) > .acts > details.cant > summary.btn, .td:has(> .fcert-left) > .acts > .btn { display: block; text-align: center; }
@container main (max-width: 640px) {
  details.cant form.fcert-pop { width: min(300px, 74vw); }
}
