:root { --blue: #2563eb; --red: #dc2626; --ink: #111827; --mut: #6b7280; --bg: #f5f6f8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

nav { position: sticky; top: 0; display: flex; gap: 4px; padding: 10px 16px;
      background: #fff; box-shadow: 0 1px 0 #e5e7eb; z-index: 10; }
nav a { padding: 8px 12px; border-radius: 8px; color: var(--mut);
        text-decoration: none; font-weight: 600; }
nav a:hover { background: #f3f4f6; color: var(--ink); }
.nav-logout { margin-left: auto; }
.nav-logout button { border: 0; background: none; color: var(--mut);
                     font-weight: 600; padding: 8px 12px; font-size: 16px; }

main { max-width: 680px; margin: 0 auto; padding: 16px 16px 110px; }

h1 { font-size: 28px; margin: 0 0 4px; }
h2 { font-size: 15px; color: var(--mut); margin: 24px 0 10px; }
.sub { color: var(--mut); margin: 0 0 24px; }

.card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
        box-shadow: 0 1px 2px rgb(0 0 0 / .05); display: block; color: inherit; text-decoration: none; }
.card.overdue { border: 1.5px solid var(--red); }
.card .row { display: flex; align-items: center; gap: 10px; }
.card .dev { font-weight: 700; font-size: 17px; }
.card .grow { flex: 1; min-width: 0; }
.card .meta { color: var(--mut); font-size: 14px; margin-top: 4px; }
.card .thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.card .remark { margin-top: 8px; }

.badge { font-size: 12px; padding: 2px 10px; border-radius: 99px;
         background: #f3f4f6; color: var(--mut); white-space: nowrap; }
.badge.red { background: #fef2f2; color: var(--red); font-weight: 600; }
.badge.blue { background: #eff6ff; color: var(--blue); }

input, select, textarea { width: 100%; padding: 12px; font-size: 16px;
                          border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
label { display: block; font-size: 14px; color: var(--mut); margin: 14px 0 6px; }

.btn-primary { width: 100%; margin-top: 24px; padding: 14px; font-size: 17px; font-weight: 700;
               color: #fff; background: var(--blue); border: 0; border-radius: 12px;
               text-align: center; text-decoration: none; display: block; }
.btn-primary:active { background: #1d4ed8; }

.btn-fab { position: fixed; left: 50%; transform: translateX(-50%);
           bottom: calc(16px + env(safe-area-inset-bottom));
           width: calc(100% - 32px); max-width: 648px; padding: 16px; font-size: 18px; font-weight: 700;
           color: #fff; background: var(--blue); border-radius: 14px; text-align: center;
           text-decoration: none; box-shadow: 0 4px 12px rgb(37 99 235 / .4); z-index: 10; }

.code-row { display: flex; gap: 8px; margin-top: 14px; }
.code-row input { flex: 1; }
#send-btn { width: auto; padding: 0 14px; white-space: nowrap; font-size: 14px;
            border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 10px; }
#send-btn:disabled { color: var(--mut); border-color: #d1d5db; }

.alert { background: #fef2f2; color: var(--red); padding: 10px 14px;
         border-radius: 10px; margin-bottom: 12px; }
.login-wrap { margin-top: 48px; }
.dev-hint { font-size: 12px; color: var(--mut); margin-top: 16px; }
.empty { color: var(--mut); text-align: center; }

.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions a, .actions form { flex: 1; }
.actions a { text-align: center; padding: 10px; border-radius: 10px; text-decoration: none;
             font-weight: 600; border: 1px solid #d1d5db; background: #fff; color: var(--ink); }
.actions .danger { width: 100%; padding: 10px; border: 1px solid #fecaca; border-radius: 10px;
                   background: #fff; color: var(--red); font-weight: 600; }

table.detail { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.detail td { padding: 8px 0; border-bottom: 1px solid #f0f1f3; font-size: 15px; }
table.detail tr:last-child td { border-bottom: 0; }
table.detail td:first-child { color: var(--mut); width: 90px; }

.photo { width: 100%; border-radius: 12px; margin: 0 0 10px; background: #fff; }
