.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card h1 {
  margin-bottom: 6px;
}

.login-card .sub {
  margin-bottom: 22px;
}

.login-card input {
  margin-bottom: 12px;
}

.login-card .btn {
  width: 100%;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge.open {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.closed {
  background: #f1f5f9;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mode-switch .mode-btn {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-weight: 600;
}

.mode-switch .mode-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.signer-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.signer-row input {
  flex: 1;
}

.signer-row .remove {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #94a3b8;
  font-size: 18px;
  background: #fff;
}

.signer-row .remove:hover {
  color: var(--red);
  border-color: #fecaca;
  background: var(--red-soft);
}

#uploadForm > .btn.primary {
  margin-top: 6px;
}

.task-list {
  display: grid;
  gap: 14px;
}

.empty {
  padding: 34px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.task {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  background: #fff;
}

.task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 650;
  font-size: 15px;
  word-break: break-all;
}

.task-meta {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signers {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.signer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8fafc;
  flex-wrap: wrap;
}

.signer-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
}

.signer-actions {
  display: flex;
  gap: 8px;
}

.signer-actions .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 7px;
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .container {
    padding: 18px 14px 50px;
  }

  .card {
    padding: 18px;
  }

  .task-actions .btn {
    flex: 1;
  }
}
