/* 神运碰碰开发者中心（ADR-0030）。公共样式在 /assets/base.css，这里只有开发者中心自己的部分。
   设计：和商户台同一套工作台；唯一醒目的是委托的「工期表」——还剩多少时间、是不是在平台手里暂停了。 */
:root { --act: #5b3fd6; --act-soft: #eeeafd; }
.btn.primary:hover { background: #4a30c0; }
.rail { background: #191527; }
.rail nav a:hover { background: #262038; }
.rail nav .sep, .rail .me { border-color: #2c2540; }

/* 状态点 */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); }
.st.warn { color: var(--warn); }
.st.bad { color: var(--bad); }
.st.act { color: var(--act); }
.st.off { color: var(--muted); }

/* 卡片网格 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; }
a.card:hover { border-color: #c4bdf0; }
.card b { font-size: 16px; line-height: 1.35; }
.card .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.card .money { font-size: 20px; font-weight: 700; color: var(--ink); }
.card .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats > div { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line2); }
.stats b { display: block; font-size: 22px; }
.stats span { color: var(--muted); font-size: 13px; }

.todo { display: flex; flex-direction: column; gap: 8px; }
.todo a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2); color: inherit; text-decoration: none; }
.todo a:hover { border-color: var(--act); }
.todo a .grow { flex: 1; }

/* 委托详情 */
.cm { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cm .body { white-space: pre-wrap; line-height: 1.75; }
.cm .imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cm .imgs img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); }
.clock { padding: 18px 20px; border-radius: var(--r); background: #191527; color: #d9d4ee; }
.clock .left { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.2; }
.clock .left.over { color: #ffb3b3; }
.clock .bar { height: 8px; border-radius: 4px; background: #2e2747; margin: 12px 0 8px; overflow: hidden; }
.clock .bar i { display: block; height: 100%; background: #8f7af0; }
.clock .bar i.over { background: #ff7b7b; }
.clock .small { color: #a79fc4; }
.clock .paused { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 10px; background: #3b3160; color: #fff; font-size: 12px; }
.stakes { display: flex; flex-direction: column; gap: 6px; }
.stakes > div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); }
.stakes .grow { flex: 1; min-width: 0; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline .ev { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 13px; }
.timeline .ev .t { color: var(--muted); }
.timeline .ev.msg .x { padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); }
.timeline .ev.sys .x { color: var(--ink2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.report { display: flex; flex-direction: column; gap: 8px; }
.report .it { padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); }
.report .it.error { border-left: 4px solid var(--bad); }
.report .it.warn { border-left: 4px solid var(--warn); }
.welcome { max-width: 560px; margin: 12vh auto; padding: 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); }
.welcome h1 { margin: 0 0 8px; }
.welcome code { padding: 2px 6px; border-radius: 5px; background: #f1eefc; }
@media (max-width: 1080px) { .cm { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid2 > .wide { grid-column: 1 / -1; }
table.t.compact td { padding: 8px 12px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
