:root {
  --navy: #14324f;
  --teal: #17a08a;
  --gold: #c8973f;
  --bg: #f5f6f8;
  --line: #e3e6ea;
  --text: #1f2937;
  --muted: #6b7280;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.6;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }
header {
  background: var(--navy); color: #fff; padding: 18px 16px 16px;
  position: sticky; top: 0; z-index: 10;
}
header .brand { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
header .sub { font-size: 12px; opacity: .72; margin-top: 2px; }
.card {
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
button {
  border: 0; border-radius: 9px; padding: 10px 16px; font-size: 15px;
  background: var(--teal); color: #fff; font-weight: 500;
}
button:disabled { background: #c9ced6; }
button.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
button.gold { background: var(--gold); }
button.sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; background: #fff;
}
textarea { min-height: 72px; resize: vertical; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.task:last-child { border-bottom: 0; }
.ep {
  width: 44px; height: 44px; border-radius: 10px; background: #eef2f6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--navy); flex: 0 0 auto; font-size: 14px;
}
.ep.mine { background: var(--teal); color: #fff; }
.ep.taken { background: #f1f1f1; color: #aaa; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: #eef2f6; color: var(--muted); }
.tag.ok { background: #e6f6f2; color: var(--teal); }
.tag.warn { background: #fdf3e3; color: #a97724; }
.stat { display: flex; gap: 10px; }
.stat > div { flex: 1; background: #fff; border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--navy); }
.stat span { font-size: 12px; color: var(--muted); }
.bar { height: 6px; background: #e9edf2; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--teal); width: 0; }
.notice { background: #fff8e8; border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #7a5a1e; }
.empty { text-align: center; color: var(--muted); padding: 28px 0; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(20,50,79,.94); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; white-space: nowrap;
}
.toast.show { opacity: 1; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

/* 资产库 */
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.asset { text-decoration: none; color: inherit; display: block; }
.asset img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  border-radius: 10px; background: #eef2f6; border: 1px solid var(--line);
}
.asset span {
  display: block; font-size: 12px; color: var(--muted); margin-top: 4px;
  text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asset-file {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #eef2f6; color: var(--navy); font-weight: 600; font-size: 13px;
  border: 1px solid var(--line);
}
.asset-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.asset-row img {
  width: 46px; height: 46px; object-fit: cover; border-radius: 8px;
  background: #eef2f6; border: 1px solid var(--line); flex: 0 0 auto;
}
.asset-row .ph {
  width: 46px; height: 46px; border-radius: 8px; background: #eef2f6;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted);
  flex: 0 0 auto;
}
