/* 表单与交互补充样式 */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea { resize: vertical; line-height: 1.6; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }

/* 折叠式表单：点一下按钮展开，不用 JS */
details.inline-details { position: relative; }
details.inline-details > summary {
  list-style: none;
  cursor: pointer;
}
details.inline-details > summary::-webkit-details-marker { display: none; }
details.inline-details > summary::marker { display: none; }

details.inline-details > form,
details.inline-details > div {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin-top: 8px;
  min-width: 240px;
  max-width: 360px;
}

details[open] > summary.btn { background: #f4f5f7; }

/* 任务行里的操作区可以换行 */
.task .act { flex-wrap: wrap; justify-content: flex-end; }
