/* 大屏待办一览表 —— 深色科技风 */
:root {
  --bg: #060c1c;
  --bg2: #0a1428;
  --panel: rgba(18, 32, 58, 0.72);
  --line: rgba(90, 140, 220, 0.22);
  --txt: #e8f0ff;
  --sub: #8fa6c8;
  --blue: #3d8ef7;
  --cyan: #35d0ff;
  --yellow: #ffcc00;
  --red: #ff3b30;
  --green: #22c55e;
  --brand: #1b6ef3;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(27, 110, 243, 0.28), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(53, 208, 255, 0.14), transparent 60%),
    linear-gradient(160deg, #060c1c 0%, #081428 55%, #050a16 100%);
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
[hidden] { display: none !important; }

.screen {
  height: 100vh;
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(20, 40, 76, 0.85), rgba(10, 20, 40, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--brand), #35d0ff);
  box-shadow: 0 6px 18px rgba(27, 110, 243, 0.45);
}
.brand-txt h1 { margin: 0; font-size: 22px; letter-spacing: 2px; }
.brand-txt p { margin: 2px 0 0; font-size: 12px; color: var(--sub); letter-spacing: 3px; }

.stats { display: flex; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.stat {
  min-width: 96px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 46, 0.7);
  text-align: center;
}
.stat b { display: block; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--sub); }
.stat.red b { color: var(--red); }
.stat.yellow b { color: var(--yellow); }
.stat.blue b { color: var(--cyan); }
.stat.warn b { color: #ff9f43; }

.clock { text-align: right; min-width: 150px; }
.clock-time { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.clock-date { font-size: 12px; color: var(--sub); }

.userbox { display: flex; align-items: center; gap: 10px; min-width: 210px; justify-content: flex-end; }
.user-chip {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3;
  font-size: 13px;
}
.user-chip b { font-size: 15px; }
.user-chip span { color: var(--sub); font-size: 11px; }
.mini-btn {
  border: 1px solid var(--line);
  background: rgba(27, 110, 243, 0.18);
  color: #cfe3ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.mini-btn:hover { background: rgba(27, 110, 243, 0.32); }

/* ---------- 预览板块 ---------- */
.board-wrap { flex: 7 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); flex-wrap: wrap; }
.legend em { font-style: normal; color: #6d84a6; margin-right: 10px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.lg-yellow { background: var(--yellow); }
.lg-blue { background: var(--blue); }
.lg-normal { background: #6b7f9e; }
.board-tip { font-size: 12px; color: #6d84a6; letter-spacing: 1px; }

.board {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  align-content: start;
  padding: 2px 6px 8px 2px;
}
.board::-webkit-scrollbar, .side-list::-webkit-scrollbar, .picker-list::-webkit-scrollbar,
.people-list::-webkit-scrollbar { width: 8px; }
.board::-webkit-scrollbar-thumb, .side-list::-webkit-scrollbar-thumb, .picker-list::-webkit-scrollbar-thumb,
.people-list::-webkit-scrollbar-thumb { background: rgba(90, 140, 220, 0.35); border-radius: 8px; }

.card {
  position: relative;
  border-radius: 12px;
  padding: 11px 13px 10px 16px;
  background: linear-gradient(160deg, rgba(24, 40, 70, 0.9), rgba(12, 22, 42, 0.9));
  border: 1px solid var(--line);
  border-left: 4px solid #6b7f9e;
  overflow: hidden;
  animation: cardIn .35s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.card.lvl-red {
  border-color: rgba(255, 59, 48, 0.55);
  border-left-color: var(--red);
  background: linear-gradient(160deg, rgba(92, 22, 24, 0.85), rgba(40, 12, 20, 0.9));
  animation: cardIn .35s ease both, blinkRed 1.1s ease-in-out infinite;
}
@keyframes blinkRed {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.85), 0 0 22px rgba(255, 59, 48, 0.42);
    filter: brightness(1.06);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.25), 0 0 6px rgba(255, 59, 48, 0.10);
    filter: brightness(0.92);
  }
}
.card.lvl-yellow {
  border-color: rgba(255, 204, 0, 0.45);
  border-left-color: var(--yellow);
  background: linear-gradient(160deg, rgba(80, 62, 12, 0.8), rgba(36, 28, 10, 0.9));
}
.card.lvl-blue {
  border-color: rgba(61, 142, 247, 0.45);
  border-left-color: var(--blue);
  background: linear-gradient(160deg, rgba(20, 48, 96, 0.85), rgba(10, 24, 48, 0.9));
}
.card.lvl-done { opacity: 0.45; border-left-color: var(--green); }

.card-top { display: flex; align-items: flex-start; gap: 8px; }
.seq {
  flex: none;
  min-width: 24px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #b9cdea;
}
.card.lvl-red .seq { background: rgba(255, 59, 48, 0.35); color: #fff; }
.card-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.tag-urg {
  flex: none;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.urg-重要紧急 { background: rgba(255, 59, 48, 0.22); color: #ff8a80; border-color: rgba(255, 91, 82, 0.45); }
.urg-重要不紧急 { background: rgba(255, 159, 67, 0.2); color: #ffbe76; border-color: rgba(255, 184, 108, 0.4); }
.urg-不重要紧急 { background: rgba(61, 142, 247, 0.18); color: #8fbaff; border-color: rgba(120, 170, 255, 0.35); }
.urg-不重要不紧急 { background: rgba(150, 160, 180, 0.18); color: #b4bfd2; border-color: rgba(180, 190, 210, 0.3); }

.card-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sub);
}
.chip {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(53, 208, 255, 0.12);
  color: #8fd9ff;
  border: 1px solid rgba(53, 208, 255, 0.25);
}
.chip.unassigned { background: rgba(255, 159, 67, 0.18); color: #ffc178; border-color: rgba(255, 159, 67, 0.4); }
.chip.done { background: rgba(34, 197, 94, 0.18); color: #6ee7a0; border-color: rgba(34, 197, 94, 0.4); }
.people-line {
  margin-top: 5px;
  font-size: 12px;
  color: #a9bdd9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.people-line b { color: #d7e5fa; font-weight: 600; }

.bar {
  margin-top: 9px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #6b7f9e;
  transition: width .6s ease;
}
.lvl-red .bar i { background: linear-gradient(90deg, #ff6b5e, var(--red)); box-shadow: 0 0 10px rgba(255, 59, 48, 0.7); }
.lvl-yellow .bar i { background: linear-gradient(90deg, #ffe066, var(--yellow)); }
.lvl-blue .bar i { background: linear-gradient(90deg, #74b3ff, var(--blue)); }

.card-foot {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.card-foot .left { color: #cfe0f7; }
.lvl-red .card-foot .left { color: #ff9b92; font-weight: 700; }
.lvl-yellow .card-foot .left { color: #ffe27a; }
.due { font-size: 12px; color: #93a9c8; }

.empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: #56709a;
  font-size: 16px;
  letter-spacing: 4px;
  border: 1px dashed rgba(90, 140, 220, 0.25);
  border-radius: 14px;
}

/* ---------- 发布板块 ---------- */
.publish {
  flex: 3 1 0;
  min-height: 0;
  display: flex;
  gap: 12px;
}
.pform {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 32, 60, 0.9), rgba(9, 18, 36, 0.9));
  padding: 11px 16px 13px;
}
.pform-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pform-head b { font-size: 15px; letter-spacing: 2px; }
.pform-head span { font-size: 12px; color: var(--sub); }
.pform-row {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 0.85fr 1.15fr 1fr auto auto;
  gap: 10px;
  align-items: end;
  align-content: center;
  flex: 0 1 auto;
  margin-top: auto;
}
.quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 12px;
  color: var(--sub);
}
.quick-label { color: #6d84a6; }
.quick {
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(90, 140, 220, 0.3);
  background: rgba(10, 22, 42, 0.8);
  color: #a9c4e6;
  font-size: 12px;
}
.quick:hover { border-color: var(--blue); color: #d5e7ff; }
.quick-tip { margin-left: auto; color: #6d84a6; }
.pform-note {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(90, 140, 220, 0.16);
  font-size: 11.5px;
  color: #5f7899;
  line-height: 1.6;
}
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: 12px; color: var(--sub); }
.f input, .f select, .picker-btn {
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(90, 140, 220, 0.3);
  background: rgba(8, 18, 34, 0.85);
  color: var(--txt);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.f input::placeholder { color: #5b7396; }
.f input:focus, .f select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(61, 142, 247, 0.18); }
.f select option { background: #0d1a30; }

.f-people { position: relative; }
.picker { position: relative; }
.picker-btn { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.picker-btn::after { content: "▾"; color: #7f96b8; font-size: 12px; }
.picker-btn.has { color: #9fd0ff; border-color: rgba(61, 142, 247, 0.6); }
.picker-btn:disabled { opacity: .45; cursor: not-allowed; }

.picker-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 330px;
  max-width: 88vw;
  z-index: 60;
  border-radius: 12px;
  border: 1px solid rgba(90, 140, 220, 0.45);
  background: #0b1830;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  padding: 10px;
}
#pickerSearch, #assignSearch {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(90, 140, 220, 0.3);
  background: rgba(6, 14, 28, 0.9);
  color: var(--txt);
  padding: 0 9px;
  font-size: 12px;
  outline: none;
}
#pickerSearch:focus, #assignSearch:focus { border-color: var(--blue); }
.picker-list {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}
.pick-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 12px;
  color: #c6d6ee;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.pick-item:hover { background: rgba(61, 142, 247, 0.14); }
.pick-item.on { background: rgba(61, 142, 247, 0.22); border-color: rgba(61, 142, 247, 0.45); color: #fff; }
.pick-item i {
  flex: none;
  width: 13px; height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(140, 175, 225, 0.55);
  display: grid; place-items: center;
  font-style: normal;
  font-size: 10px;
  color: transparent;
}
.pick-item.on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.pick-item em { font-style: normal; color: #7d94b6; font-size: 11px; margin-left: auto; }
.pick-item.leader b::after { content: "领导"; font-size: 10px; color: #ffc178; margin-left: 4px; }
.picker-foot {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(90, 140, 220, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sub);
}
.picker-foot button {
  border: 1px solid rgba(90, 140, 220, 0.35);
  background: transparent;
  color: #a9c4e6;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
}

.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px dashed rgba(90, 140, 220, 0.4);
  background: rgba(8, 18, 34, 0.55);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.chk input { width: 15px; height: 15px; accent-color: var(--brand); }
.chk span { display: flex; flex-direction: column; line-height: 1.25; }
.chk em { font-style: normal; font-size: 10px; color: #7d94b6; }
.chk.on { border-color: rgba(255, 159, 67, 0.7); background: rgba(255, 159, 67, 0.12); }
.chk.on span { color: #ffd39a; }

.submit {
  height: 36px;
  padding: 0 22px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #1b6ef3, #35c6ff);
  box-shadow: 0 8px 20px rgba(27, 110, 243, 0.35);
  white-space: nowrap;
}
.submit:hover { filter: brightness(1.08); }
.submit:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 待分配侧栏 ---------- */
.side {
  width: 400px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 32, 60, 0.9), rgba(9, 18, 36, 0.9));
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.side-tabs { display: flex; gap: 6px; margin-bottom: 7px; }
.side-tabs button {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 38, 0.7);
  color: #9db3d3;
  font-size: 12px;
}
.side-tabs button b { color: #ffb86b; margin-left: 2px; }
.side-tabs button.on { background: rgba(27, 110, 243, 0.24); border-color: rgba(61, 142, 247, 0.55); color: #dbe9ff; }
.side-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(10, 22, 42, 0.7);
  border: 1px solid rgba(90, 140, 220, 0.16);
}
.side-item .si-main { flex: 1; min-width: 0; }
.side-item .si-title {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-item .si-meta { font-size: 11px; color: var(--sub); margin-top: 2px; }
.side-item .si-meta em { font-style: normal; color: #ffb86b; }
.side-btn {
  flex: none;
  border: 1px solid rgba(61, 142, 247, 0.5);
  background: rgba(27, 110, 243, 0.2);
  color: #bfe0ff;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
}
.side-btn:hover { background: rgba(27, 110, 243, 0.4); }
.side-btn.green { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.16); color: #8ff0b3; }
.side-empty { padding: 18px 8px; text-align: center; font-size: 12px; color: #5b7396; line-height: 1.8; }

.pform-row2 { grid-template-columns: 1fr 1fr; margin-top: 8px; align-items: stretch; }
.f textarea {
  height: 100%;
  min-height: 52px;
  resize: none;
  border-radius: 9px;
  border: 1px solid rgba(90, 140, 220, 0.3);
  background: rgba(8, 18, 34, 0.85);
  color: var(--txt);
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  width: 100%;
}
.f textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(61, 142, 247, 0.18); }
.f textarea::placeholder { color: #5b7396; }

.file-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.file-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px dashed rgba(90, 140, 220, 0.45);
  background: rgba(10, 22, 42, 0.8);
  color: #a9c4e6;
  font-size: 12px;
}
.file-btn:hover { border-color: var(--blue); color: #d5e7ff; }
.file-hint { font-size: 11.5px; color: #5f7899; }
.file-list { display: flex; gap: 6px; flex-wrap: wrap; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 230px;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
  background: rgba(61, 142, 247, 0.16);
  border: 1px solid rgba(61, 142, 247, 0.4);
  font-size: 12px;
  color: #bfe0ff;
}
.file-chip .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fs { color: #7f9ab8; flex: none; }
.file-chip .x { flex: none; cursor: pointer; color: #ff8a80; font-weight: 700; padding: 0 4px; }

/* ---------- 待办详情 ---------- */
.card { cursor: pointer; }
.collab-line {
  margin-top: 5px;
  font-size: 12px;
  color: #ffd39a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collab-line b { font-weight: 600; }
.chip.att { background: rgba(34, 197, 94, 0.14); color: #9be8b5; border-color: rgba(34, 197, 94, 0.35); }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.detail-sec { border-left: 3px solid rgba(61, 142, 247, 0.5); padding: 2px 0 2px 10px; margin: 12px 0; }
.detail-sec h4 { margin: 0 0 4px; font-size: 13px; color: #8fd9ff; letter-spacing: 1px; }
.detail-sec p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d7e5fa;
  white-space: pre-wrap;
  word-break: break-word;
}
.att-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin: 5px 0;
  border-radius: 8px;
  background: rgba(10, 22, 42, 0.8);
  border: 1px solid rgba(61, 142, 247, 0.3);
  color: #bfe0ff;
  font-size: 13px;
  text-decoration: none;
}
.att-item:hover { border-color: var(--blue); color: #fff; }
.att-item .fs { color: #7f9ab8; font-size: 12px; margin-left: auto; flex: none; }
.detail-actions { justify-content: flex-end; }
.detail-level { margin-right: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-level.red { color: var(--red); }
.detail-level.yellow { color: var(--yellow); }
.detail-level.blue { color: var(--cyan); }
.detail-level.normal { color: #93a9c8; }
.detail-level.done { color: var(--green); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.74);
  backdrop-filter: blur(3px);
}
.modal-box {
  width: 460px;
  max-width: 92vw;
  border-radius: 16px;
  border: 1px solid rgba(90, 140, 220, 0.4);
  background: linear-gradient(160deg, #0e1e3a, #081426);
  padding: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}
.modal-box.small { width: 400px; }
.modal-box.wide { width: 720px; }
.modal-box h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 1px; }
.modal-sub { margin: 0 0 14px; font-size: 12px; color: var(--sub); line-height: 1.6; }
.ipt {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(90, 140, 220, 0.35);
  background: rgba(6, 14, 28, 0.9);
  color: var(--txt);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.ipt:focus { border-color: var(--blue); }
.modal-err { min-height: 18px; margin: 6px 0 2px; font-size: 12px; color: #ff7b72; }
.modal-tip { margin: 14px 0 0; font-size: 11.5px; color: #5f7899; line-height: 1.7; }
.btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid rgba(90, 140, 220, 0.4);
  background: rgba(10, 22, 42, 0.8);
  color: #c6d8f2;
  font-size: 13px;
}
.btn.primary { border: none; background: linear-gradient(135deg, #1b6ef3, #35c6ff); color: #fff; font-weight: 700; }
.btn.block { width: 100%; margin-top: 8px; }
.btn.ghost { background: transparent; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.picker-inline .picker-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
.people-list { max-height: 52vh; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 12px; padding-right: 4px; }
.people-row { display: flex; align-items: center; gap: 6px; }
.people-row .no { width: 34px; flex: none; font-size: 12px; color: #8fa6c8; text-align: right; }
.people-row input { height: 30px; border-radius: 7px; border: 1px solid rgba(90, 140, 220, 0.28); background: rgba(6, 14, 28, 0.85); color: var(--txt); font-size: 12px; padding: 0 8px; min-width: 0; outline: none; }
.people-row input.name { flex: 1; }
.people-row input.phone { flex: 1.2; }
.people-row input.job { flex: none; width: 78px; }
.people-row.leader .no { color: #ffc178; font-weight: 700; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(15, 32, 60, 0.96);
  border: 1px solid rgba(61, 142, 247, 0.5);
  color: #dce9ff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1500px) {
  .pform-row { grid-template-columns: 1.8fr .9fr .8fr 1.1fr .9fr auto auto; }
  .side { width: 340px; }
  .stats .stat { min-width: 82px; padding: 5px 10px; }
}
@media (max-width: 1280px) {
  body { overflow: auto; }
  .screen { height: auto; min-height: 100vh; }
  .board-wrap { min-height: 480px; }
  .publish { min-height: 300px; flex-wrap: wrap; }
  .side { width: 100%; min-height: 240px; }
  .pform-row { grid-template-columns: 1fr 1fr 1fr; }
  .f-people, .chk, .submit { grid-column: span 1; }
}

/* ================= 手机端适配（≤700px）：自然滚动 + 单列 + 触屏尺寸 ================= */
@media (max-width: 700px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; overflow-y: auto; }
  .screen {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  /* ---- 顶栏：品牌+时间 / 统计 4 列 / 用户操作 ---- */
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .brand { order: 1; flex: 1 1 0; min-width: 0; gap: 8px; }
  .logo { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
  .brand-txt h1 { font-size: 16px; letter-spacing: .5px; }
  .brand-txt p { display: none; }
  .clock { order: 2; flex: none; min-width: 0; margin-left: auto; text-align: right; }
  .clock-time { font-size: 19px; letter-spacing: 0; }
  .clock-date { display: none; }
  .stats {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    justify-content: stretch;
  }
  .stats .stat { min-width: 0; padding: 4px 3px 5px; border-radius: 8px; }
  .stat b { font-size: 16px; }
  .stat span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .userbox { order: 4; flex: 1 0 100%; min-width: 0; justify-content: flex-end; gap: 6px; }
  .user-chip { font-size: 11px; }
  .user-chip b { font-size: 12.5px; }
  .user-chip span { font-size: 10px; }
  .mini-btn { padding: 6px 9px; font-size: 11.5px; }

  /* ---- 预览区：整页滚动 + 单列卡片 ---- */
  .board-wrap { flex: none; min-height: 0; gap: 6px; }
  .board-head { padding: 0 2px; }
  .legend { font-size: 10.5px; gap: 5px 8px; line-height: 1.6; }
  .legend em { display: none; }
  .board-tip { display: none; }
  .board {
    flex: none;
    overflow: visible;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 2px 0 2px;
  }
  .card { padding: 10px 10px 9px 13px; border-radius: 10px; }
  .card-title { font-size: 15px; }
  .empty { padding: 40px 0; font-size: 14px; letter-spacing: 2px; }

  /* ---- 发布区：纵向堆叠、表单 2 列 ---- */
  .publish { flex: none; flex-direction: column; gap: 8px; }
  .pform { padding: 10px 11px 12px; border-radius: 12px; }
  .pform-head { margin-bottom: 6px; flex-wrap: wrap; gap: 4px 8px; }
  .pform-head b { font-size: 14px; letter-spacing: 1px; }
  .pform-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }
  .f-title { grid-column: 1 / -1; }
  .f-people { grid-column: 1 / -1; }
  .f-due { grid-column: 1 / -1; }
  .f-people .picker-btn { height: 40px; }
  .chk {
    grid-column: 1;
    height: auto;
    min-height: 40px;
    padding: 5px 9px;
    white-space: normal;
  }
  .chk em { font-size: 9px; }
  .submit { grid-column: 2; height: 40px; font-size: 15px; }
  .pform-row2 { grid-template-columns: 1fr; }
  .pform-row2 .f textarea { min-height: 62px; }
  .pform-note { display: none; }
  .quick-row { margin-top: 7px; gap: 6px; }
  .quick { height: 28px; font-size: 12px; }
  .quick-tip { margin-left: 0; flex-basis: 100%; }

  /* iOS 聚焦自动放大防护：所有可输入控件字号 ≥16px */
  .f input, .f select, .picker-btn, .f textarea,
  .ipt, #pickerSearch, #assignSearch, .people-row input { font-size: 16px; }
  .f > span { font-size: 12px; }
  .f input, .f select { height: 40px; }

  /* 协同人员面板：向下展开、贴合屏宽 */
  .picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    width: 100%;
    max-width: none;
  }
  .picker-list { max-height: 38vh; gap: 5px 6px; }
  .pick-item { padding: 8px 8px; font-size: 13px; }
  .picker-inline .picker-panel { position: static; }

  /* ---- 附件与快捷时间 ---- */
  .file-row { margin-top: 7px; gap: 7px; }
  .file-hint { display: none; }
  .file-chip { max-width: 100%; }

  /* ---- 侧栏 ---- */
  .side { width: 100%; min-height: 0; padding: 8px 9px; border-radius: 12px; }
  .side-tabs button { height: 34px; font-size: 13px; }
  .side-list { max-height: 300px; }
  .side-item { padding: 8px 9px; }
  .side-item .si-title { font-size: 13px; }
  .side-item .si-meta { font-size: 11px; }
  .side-btn { padding: 6px 10px; font-size: 12px; }

  /* ---- 弹窗：贴边宽度 + 内部滚动 ---- */
  .modal { align-items: flex-start; padding: 16px 0; overflow-y: auto; }
  .modal-box,
  .modal-box.small,
  .modal-box.wide {
    width: 100%;
    max-width: calc(100vw - 20px);
    margin: 0 10px;
    padding: 16px 13px;
    border-radius: 12px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
  .modal-box h2 { font-size: 16px; }
  .modal-sub { font-size: 11.5px; }
  .modal-actions { flex-wrap: wrap; gap: 8px; }
  .modal-actions .btn { flex: 1 1 96px; }
  .detail-actions { justify-content: space-between; }
  .detail-level { width: 100%; margin: 0 0 6px; }
  .detail-tags { gap: 6px; }
  .people-list { grid-template-columns: minmax(0, 1fr); max-height: 60dvh; }
  .people-row .no { width: 30px; }

  /* ---- 提示 ---- */
  .toast {
    bottom: 22px;
    max-width: calc(100vw - 28px);
    padding: 9px 16px;
    font-size: 13px;
  }
}